-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
54 lines (49 loc) · 1.46 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
{
"parser": "@babel/eslint-parser",
"parserOptions": {
"requireConfigFile": false,
"babelOptions": {
"presets": ["@babel/preset-react"]
},
},
"extends": ["airbnb", "prettier"],
"env": {
"browser": true,
"node": true,
"es6": true
},
"plugins": ["react", "filenames", "prettier"],
"globals": {
"gon": true,
"__CLIENT__": true,
"__SERVER__": true
},
"settings": {
"import/extensions": [".js", ".jsx"],
},
"rules": {
"prettier/prettier": [ 2 , {
"singleQuote": true,
"trailingComma": "all",
"printWidth": 128
}],
"no-param-reassign": ["error", { "props": true, "ignorePropertyModificationsFor": ["state"] }],
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"import/no-unresolved": ["off"],
"import/no-absolute-path": ["off"],
"import/order": ["off"],
"import/no-duplicates": ["off"],
"import/no-extraneous-dependencies": ["off"],
"import/first": ["off"],
"import/no-named-as-default-member": ["off"],
"import/no-named-as-default": ["off"],
"import/prefer-default-export": ["off"],
"import/extensions": ["off"],
"react/no-array-index-key": ["off"],
"filenames/match-exported": 2,
"react/prop-types": [2, { "ignore": ["classes", "match", "dictionaries", "errors", "history", "children", "location"] }],
"no-debugger": 1,
"react/destructuring-assignment": 0,
"react/static-property-placement": 0
}
}