-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
59 lines (51 loc) · 1.17 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
{
"plugins": [
"prettier"
],
"env": {
"browser": true,
"node": true,
"commonjs": true,
"es6": true,
"jest": true
},
"globals": {},
"extends": [
"airbnb",
"prettier",
"prettier/react"
],
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module"
},
"settings": {
"import/resolver": {
"webpack": {
"config": "webpack.config.js"
}
}
},
"rules": {
// Plugins
"import/no-named-as-default": "off",
"import/prefer-default-export": "off",
"prettier/prettier": "off",
"react/jsx-filename-extension": ["warn", { "extensions": [".js", ".jsx"] }],
"react/jsx-one-expression-per-line": "off",
"react/prop-types": "off",
// Possible Errors
// Best Practices
"no-multi-spaces": ["error", { "ignoreEOLComments": true }],
// Variables
"no-shadow": "off",
// Node.js and CommonJS
// Stylistic Issues
"function-paren-newline": "off",
"max-len": "off",
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"no-underscore-dangle": "off",
"object-curly-newline": ["error", { "consistent": true }],
// JS.Next
}
}