-
Notifications
You must be signed in to change notification settings - Fork 1
/
.eslintrc
44 lines (42 loc) · 1.01 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
{
"root": true,
"env": {
"browser": true,
"es6": true,
"mocha": 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",
"arrow-parens": ["error", "as-needed"],
"max-len": "error",
"react/jsx-filename-extension": [1, { "extensions": [".js"] }],
"react/require-default-props": 1,
"jsx-a11y/href-no-hash": 0,
"prettier/prettier": [
"error",
{
"useTabs": false,
"printWidth": 100,
"tabWidth": 2,
"singleQuote": true,
"trailingComma": "all",
"jsxBracketSameLine": false
}
]
}
}