-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
48 lines (48 loc) · 1.13 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
{
"env": {
"browser": true,
"commonjs": true,
"node": true,
"es6": true
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"jsx": true,
"modules": true
}
},
"extends": [
"eslint:recommended",
"react-app",
"plugin:react/recommended",
"plugin:prettier/recommended",
"plugin:jsx-a11y/recommended"
],
"parser": "babel-eslint",
"plugins": ["react", "prettier", "jsx-a11y"],
"settings": {
"react": {
"pragma": "React",
"version": "16.8.2"
}
},
"rules": {
"no-console": "off",
"strict": ["error", "global"],
"curly": "error",
"no-else-return": "error",
"no-unneeded-ternary": "error",
"no-useless-return": "error",
"jsx-a11y/img-has-alt": [0],
"react/prop-types": ["off"],
"react/display-name": ["off"],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"react/jsx-uses-react": 2,
"react/jsx-uses-vars": 2,
"react/no-find-dom-node": "warn",
"react/react-in-jsx-scope": 2,
"prettier/prettier": ["error", {"singleQuote": true, "parser": "flow"}]
}
}