-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
83 lines (83 loc) · 2.18 KB
/
.eslintrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
},
"ecmaVersion": 2020,
"sourceType": "module"
},
"plugins": [
"@typescript-eslint",
"simple-import-sort",
"unicorn",
"prettier",
"license-header"
],
"env": {
"browser": true,
"node": true,
"commonjs": true,
"jest": true
},
"extends": [
"plugin:@typescript-eslint/recommended",
"eslint:recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript",
"plugin:prettier/recommended",
"plugin:unicorn/recommended",
"prettier",
"prettier/unicorn"
],
"rules": {
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-empty-function": "off",
"@typescript-eslint/no-unused-vars": [
"error",
{ "varsIgnorePattern": "^_$", "argsIgnorePattern": "^_+$" }
],
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/ban-types": "off",
"no-console": "warn",
"no-empty-function": "off",
"no-undef": "off",
"no-unused-vars": [
"error",
{ "varsIgnorePattern": "^_$", "argsIgnorePattern": "^_+$" }
],
"license-header/header": [ "error", "./license.ts" ],
"prettier/prettier": "error",
"simple-import-sort/exports": "error",
"simple-import-sort/imports": "error",
"import/no-named-as-default": "off",
"unicorn/consistent-function-scoping": [
"error",
{
"checkArrowFunctions": false
}
],
"unicorn/explicit-length-check": "off",
"unicorn/filename-case": [
"error",
{
"cases": {
"camelCase": true,
"pascalCase": true
},
"ignore": ["next-env.d.ts"]
}
],
"unicorn/no-array-callback-reference": "off",
"unicorn/no-array-for-each": "off",
"unicorn/no-array-reduce": "off",
"unicorn/no-fn-reference-in-iterator": "off",
"unicorn/no-null": "off",
"unicorn/no-reduce": "off",
"unicorn/no-useless-undefined": "off",
"unicorn/prefer-ternary": "off",
"unicorn/prevent-abbreviations": "off",
"unicorn/prefer-spread": "off"
}
}