-
Notifications
You must be signed in to change notification settings - Fork 7
/
.eslintrc
86 lines (80 loc) · 2.85 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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaFeatures": {
"legacyDecorators": true
}
},
"extends": [
"airbnb",
"plugin:flowtype/recommended",
"plugin:@typescript-eslint/recommended",
"prettier",
"plugin:react-hooks/recommended"
],
"plugins": ["@babel", "@typescript-eslint", "flowtype", "module-resolver", "import"],
"rules": {
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-inferrable-types": "off",
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"@typescript-eslint/no-use-before-define": ["error", { "variables": false }],
"@typescript-eslint/no-shadow": ["error"], // to deal with Enums properly
"flowtype/space-after-type-colon": "off",
"flowtype/no-types-missing-file-annotation": "off",
"module-resolver/use-alias": 0,
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"import/prefer-default-export": "off",
"import/no-cycle": [2, { "maxDepth": 1 }],
"jsx-a11y/anchor-is-valid": ["warn", { "aspects": ["invalidHref"] }],
"jsx-a11y/href-no-hash": "off",
"jsx-a11y/accessible-emoji": "off",
"react/jsx-filename-extension": [
1,
{
"extensions": [".js", ".jsx", ".tsx"]
}
],
"react/jsx-indent-props": [1, 4],
"react/jsx-indent": ["error", 4],
"react/prop-types": ["warn", { "skipUndeclared": true }],
"react/require-default-props": "off",
"react/jsx-props-no-spreading": "off",
"arrow-body-style": "off",
"arrow-parens": ["error", "as-needed"],
"quote-props": "off",
"no-console": "off",
"no-continue": "off",
"no-confusing-arrow": ["error", { "allowParens": false }],
"no-mixed-operators": "off", // to avoid conflicts with with Prettier
"no-restricted-globals": "off", // works oddly with TypeScript
"no-unused-expressions": "off",
"no-unused-vars": "off",
"no-use-before-define": "off",
"no-shadow": "off", // to deal with enums properly
"object-curly-newline": "off",
"operator-linebreak": "off",
"prefer-arrow-callback": ["error", { "allowNamedFunctions": true }]
},
"settings": {
"import/resolver": {
"babel-module": {},
"typescript": {}
}
},
"env": {
"browser": true,
"node": true,
"jest": true
}
}