-
Notifications
You must be signed in to change notification settings - Fork 54
/
Copy path.eslintrc
33 lines (33 loc) · 827 Bytes
/
.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
{
"extends": [
"@wsmd/eslint-config/typescript",
"@wsmd/eslint-config/react",
"@wsmd/eslint-config/prettier",
"@wsmd/eslint-config/jest"
],
"globals": {
"__DEV__": false
},
"rules": {
"getter-return": "off",
"consistent-return": "off",
"@typescript-eslint/no-explicit-any": "off",
"no-console": ["error", { "allow": ["warn", "error"] }],
"no-underscore-dangle": ["error", { "allow": ["__DEV__"] }]
},
"overrides": [
{
"files": ["**/*.js"],
"parser": "babel-eslint"
},
{
"files": ["test/**/*.js"],
"rules": {
"react/jsx-props-no-spreading": "off",
"react/jsx-filename-extension": "off",
"jsx-a11y/control-has-associated-label": "off"
}
}
],
"ignorePatterns": ["test/types.tsx", "rollup.config.js"]
}