-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc.json
106 lines (104 loc) · 2.64 KB
/
.eslintrc.json
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
{
"env": {
"browser": true,
"es6": true
},
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"jsx": true
},
"ecmaVersion": 2018,
"sourceType": "module"
},
"plugins": ["react", "@typescript-eslint", "prettier"],
"extends": [
"plugin:react/recommended",
"airbnb",
"plugin:prettier/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
"prettier/flowtype",
"prettier/react",
"prettier/standard",
"prettier/@typescript-eslint"
],
"rules": {
"no-shadow": "off",
"react/require-default-props": "off",
"no-unused-vars": [
"error",
{
"argsIgnorePattern": "^[I\\w+|_]",
"varsIgnorePattern": "^[I\\w+|_]"
}
],
"@typescript-eslint/explicit-module-boundary-types": "warn",
"@typescript-eslint/naming-convention": [
"error",
{
"selector": "interface",
"format": ["PascalCase"],
"custom": {
"regex": "^I[A-Z]",
"match": true
}
}
],
"react/jsx-filename-extension": [
2,
{
"extensions": [".tsx"]
}
],
"prettier/prettier": "off",
"block-scoped-var": "error",
"eqeqeq": "error",
"no-var": "error",
"prefer-const": "error",
"eol-last": "error",
"no-warning-comments": "off",
"react/jsx-props-no-spreading": "off",
"react/prop-types": "off",
"jsx-a11y/anchor-is-valid": "off",
"react/no-unused-prop-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-use-before-define": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/camelcase": "off",
"node/no-missing-import": "off",
"node/no-unsupported-features/es-syntax": "off",
"node/no-missing-require": "off",
"node/shebang": "off",
"no-dupe-class-members": "off",
"import/no-unresolved": "off",
"no-irregular-whitespace": "off",
"import/prefer-default-export": "off",
"jsx-a11y/click-events-have-key-events": "off",
"jsx-a11y/no-static-element-interactions": "off",
"react/jsx-one-expression-per-line": "off",
"import/extensions": [
"error",
"never",
{
"ts": "never",
"tsx": "never",
"json": "always"
}
]
},
"overrides": [
{
"files": ["*.tsx"],
"rules": {
"@typescript-eslint/explicit-module-boundary-types": ["off"]
}
}
]
}