-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc
35 lines (35 loc) · 1.11 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
{
"extends": "eslint:recommended",
"rules": {
"no-unused-vars": ["error", { "varsIgnorePattern": "React" }],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx", ".tsx"] }]
},
"overrides":[
{
"files": ["build/*/*.js"],
"rules": {
"import/no-commonjs": "off"
}
}, {
"files": ["**/*.ts","**/*.tsx"],
"parser": "typescript-eslint-parser",
"plugins": ["react", "typescript"],
"rules": {
"no-undef": 0,
"no-unused-vars": 0,
"no-eval":"error",
"prefer-const":"error",
"typescript/class-name-casing": 2,
"class-methods-use-this": "off",
"prefer-rest-params": "off",
"arrow-body-style": "warn",
"no-restricted-globals": [true, "name", "length", "event", "id"],
"react/jsx-filename-extension": [
2,
{ "extensions": [".js", ".jsx", ".ts", ".tsx"] }
],
"taro/custom-component-children": "off"
}
}
]
}