forked from Corvimae/split-decision
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
68 lines (68 loc) · 1.75 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
{
"parserOptions": {
"ecmaVersion": 2018,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true
}
},
"env": {
"browser": true,
"es6": true
},
"extends": [
"airbnb",
"airbnb/hooks",
"plugin:@typescript-eslint/recommended",
"plugin:import/errors",
"plugin:import/warnings",
"plugin:import/typescript"
],
"settings": {
"react": {
"version": "detect"
},
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx", ".d.ts"]
}
},
"rules": {
"react/prop-types": "off",
"max-len": "off",
"import/prefer-default-export": "off",
"import/extensions": [
"error",
"ignorePackages",
{
"js": "never",
"mjs": "never",
"jsx": "never",
"ts": "never",
"tsx": "never"
}
],
"object-curly-newline": ["error", { "consistent": true }],
"no-use-before-define": "off",
"@typescript-eslint/no-unused-vars": ["error", { "argsIgnorePattern": "^_" }],
"arrow-parens": ["error", "as-needed"],
"no-confusing-arrow": "off",
"no-trailing-spaces": ["error", { "skipBlankLines": true }],
"no-console": ["error", { "allow": ["warn", "error", "info" ] }],
"no-bitwise": "off",
"quotes": ["error", "single"],
"newline-per-chained-call": "off",
"react/jsx-filename-extension": ["error", { "extensions": [".tsx", ".jsx"] }],
"react/no-array-index-key": "off",
"react/jsx-one-expression-per-line": "off",
"react/jsx-props-no-spreading": "off",
"react/function-component-definition": "off",
"react/require-default-props": "off",
"jsx-a11y/label-has-associated-control": [
"error",
{
"assert": "htmlFor"
}
],
"jsx-a11y/anchor-is-valid": "off"
}
}