-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy path.eslintrc
60 lines (56 loc) · 1.63 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
{
"root": true,
"env": {
"browser": true,
"es6": true
},
"extends": ["react-app", "airbnb", "prettier", "prettier/react"],
"parser": "babel-eslint",
"parserOptions": {
"ecmaFeatures": {
"experimentalObjectRestSpread": true,
"jsx": true,
"modules": true
},
"sourceType": "module"
},
"plugins": ["import", "jsx-a11y", "react", "prettier"],
"rules": {
"indent": ["error", 2, { "SwitchCase": 1 }],
"quotes": ["error", "single"],
"no-console": "warn",
"semi": ["error", "always"],
"radix": "off",
"array-callback-return": "off",
"consistent-return": "off",
"arrow-parens": ["error", "as-needed"],
"no-unused-expressions": "off",
"max-len": "error",
"class-methods-use-this": "error",
"no-mixed-operators": "off",
"function-paren-newline": "off",
"react/jsx-filename-extension": [1, { "extensions": [".js"] }],
"react/no-array-index-key": "off",
"react/forbid-prop-types": 0,
"react/require-default-props": 0,
"import/no-webpack-loader-syntax": "off",
"import/no-unresolved": "off",
"jsx-a11y/no-static-element-interactions": "off",
"jsx-a11y/no-noninteractive-tabindex": "off",
"jsx-a11y/no-noninteractive-element-interactions": "off",
"jsx-a11y/label-has-for": "off",
"jsx-a11y/href-no-hash": "off",
"jsx-a11y/anchor-is-valid": ["warn", { "aspects": ["invalidHref"] }],
"prettier/prettier": [
"error",
{
"useTabs": false,
"printWidth": 100,
"tabWidth": 2,
"singleQuote": true,
"trailingComma": "all",
"jsxBracketSameLine": false
}
]
}
}