forked from Shyam-Chen/Express-Starter
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
54 lines (46 loc) · 991 Bytes
/
.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
{
"plugins": [
"prettier"
],
"env": {
"node": true,
"commonjs": true,
"es6": true,
"jest": true
},
"globals": {},
"extends": [
"airbnb-base",
"prettier"
],
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module"
},
"settings": {
"import/resolver": {
"babel-plugin-root-import": {
"rootPathPrefix": "~",
"rootPathSuffix": "src"
}
}
},
"rules": {
// Plugins
"import/prefer-default-export": "off",
"prettier/prettier": "off",
// Possible Errors
"no-console": "off",
// Best Practices
"no-multi-spaces": ["error", { "ignoreEOLComments": true }],
// Variables
// no-restricted-globals
// Node.js and CommonJS
// Stylistic Issues
"max-len": "off",
"no-plusplus": ["error", { "allowForLoopAfterthoughts": true }],
"no-underscore-dangle": "off",
"object-curly-newline": ["error", { "consistent": true }]
// JS.Next
}
}