-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.eslintrc.js
57 lines (57 loc) · 1.34 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
45
46
47
48
49
50
51
52
53
54
55
56
57
module.exports = {
extends: ["airbnb", "react-app", "react-app/jest", "plugin:import/typescript", "prettier"],
plugins: ["react", "prettier"],
settings: {
propWrapperFunctions: ["forbidExtraProps"],
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
node: {
extensions: [".js", ".jsx", ".ts", ".tsx"]
}
},
react: {
version: "999.999.999"
}
},
rules: {
"import/extensions": [
"error",
"ignorePackages",
{
js: "never",
jsx: "never",
ts: "never",
tsx: "never"
}
],
quotes: [2, "double", { allowTemplateLiterals: true }],
complexity: [2, 5],
"comma-dangle": 0,
indent: "off",
"@typescript-eslint/indent": ["error", 2, { SwitchCase: 1 }],
"arrow-body-style": 0,
"prefer-arrow-callback": 0,
"no-console": 0,
"react/jsx-filename-extension": [1, { extensions: [".jsx", ".tsx"] }],
"react/jsx-wrap-multilines": ["error", { declaration: false, assignment: false }],
"react/forbid-prop-types": 1,
"prettier/prettier": [
"error",
{
printWidth: 100,
arrowParens: "always",
trailingComma: "none"
}
]
},
overrides: [
{
files: ["**/*.tsx"],
rules: {
"react/prop-types": "off"
}
}
]
};