forked from nichollascarter/subjx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
42 lines (42 loc) · 1.31 KB
/
.eslintrc.js
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
module.exports = {
"parser": "babel-eslint",
"parserOptions": {
"ecmaVersion": 9,
"sourceType": "module",
"allowImportExportEverywhere": false,
"codeFrame": false,
"ecmaFeatures": {
globalReturn: true,
impliedStrict: true,
arrowFunction: true
}
},
"env": {
"es6": true,
"browser": true,
"jest": true
},
"rules": {
"no-const-assign": "error",
"no-var": "error",
"no-useless-constructor": "error",
"indent": ["error", 4, { "SwitchCase": 1 }],
"init-declarations": "off",
"no-undef": "warn",
"no-console": "warn",
"no-inline-comments": "off",
"no-irregular-whitespace": 'error',
"semi": "error",
"semi-spacing": "error",
"padded-blocks": ["error", { "blocks": "never", "classes": "always", "switches": "always" }],
"no-unused-vars": ["error", { "vars": "all", "args": "after-used", "ignoreRestSiblings": false }],
"comma-dangle": ["error", {
"arrays": "never",
"objects": "never",
"imports": "never",
"exports": "never",
"functions": "never"
}],
"no-trailing-spaces": "error"
}
};