-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
45 lines (45 loc) · 1.29 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
{
"extends": [
"react-app",
"eslint:recommended",
"plugin:react/recommended"
],
// "env": {
// "browser": true,
// "commonjs": true,
// "node": true,
// "es6": true
// },
// "parser": "babel-eslint",
// "parserOptions": {
// "ecmaVersion": 6,
// "sourceType": "module",
// "ecmaFeatures": {
// "jsx": true,
// // "modules": true
// }
// },
"plugins": [
"react"
],
"rules": {
"comma-dangle": ["warn", "always-multiline"],
"curly": ["warn", "multi-line", "consistent"],
"indent": ["warn", 2],
"max-len": ["warn", {"code": 120, "ignoreComments": true, "ignorePattern": "http|return|svg"}],
"no-console": "off",
"no-undef": "off",
// "object-curly-spacing": ["warn", "never", { "objectsInObjects": true }], // issue https://github.com/eslint/eslint/issues/9973
"react/jsx-curly-spacing": ["warn", {"when": "never", "attributes": {"allowMultiline": false}, "children": false}],
// "react/jsx-tag-spacing": ["warn", {
// "closingSlash": "never",
// "beforeSelfClosing": "never",
// "afterOpening": "never",
// "beforeClosing": "never"
// }],
"react/display-name": "off",
"react/prop-types": "off",
"strict": ["error", "global"],
"semi": ["error", "never"],
}
}