forked from FormidableLabs/victory
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
44 lines (44 loc) · 1.2 KB
/
.eslintrc.js
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
module.exports = {
settings: {
react: {
version: "detect"
},
"import/resolver": {
node: {
extensions: [".js", ".tsx"]
}
}
},
extends: ["formidable/configurations/es6-react", "prettier"],
rules: {
"react/sort-comp": "off",
"import/no-unresolved": [2, { ignore: ["victory*"] }],
"max-statements": 0,
complexity: ["error", { max: 16 }],
"no-magic-numbers": ["error", { ignore: [-1, 0, 0.5, 1, 2, 90, 180, 270, 360] }]
},
overrides: [
{
files: ["*.ts", "*.tsx"],
extends: [
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:@typescript-eslint/recommended-requiring-type-checking"
],
parser: "@typescript-eslint/parser",
parserOptions: {
project: "./tsconfig.json",
tsconfigRootDir: __dirname
},
plugins: ["@typescript-eslint"],
rules: {
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"no-magic-numbers": "off",
"import/no-duplicates": "off",
"react/no-multi-comp": "off",
"react/sort-comp": "off"
}
}
]
};