-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.eslintrc.json
43 lines (43 loc) · 1.29 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
{
"extends": ["airbnb", "plugin:@typescript-eslint/recommended", "prettier", "prettier/@typescript-eslint"],
"parser": "@typescript-eslint/parser",
"env": {
"browser": true,
"jest": true
},
"plugins": ["@typescript-eslint", "jest"],
"rules": {
"max-len": ["error", { "code": 120 }],
"comma-dangle": "off",
"operator-linebreak": "off",
"implicit-arrow-linebreak": "off",
"function-paren-newline": "off",
"object-curly-newline": "off",
"import/no-extraneous-dependencies": "off",
"react/state-in-constructor": [1, "never"],
"react/require-default-props": [1, { "forbidDefaultForRequired": false }],
"react/default-props-match-prop-types": [1, { "allowRequiredDefaults": true }],
"react/static-property-placement": [1, "static public field"],
"react/jsx-props-no-spreading": [
1,
{
"html": "ignore"
}
],
"react/jsx-filename-extension": [1, { "extensions": ["tsx", "ts", ".js", ".jsx"] }],
"@typescript-eslint/no-unused-vars": [1, { "ignoreRestSiblings": true }],
"@typescript-eslint/explicit-function-return-type": [
1,
{
"allowExpressions": true
}
]
},
"settings": {
"import/resolver": {
"node": {
"extensions": [".js", ".jsx", ".ts", ".tsx"]
}
}
}
}