forked from DjLeChuck/recalbox-manager
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc
43 lines (43 loc) · 1.22 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
{
"extends": [ "eslint:recommended" ],
"plugins": [ "babel" ],
"parser": "babel-eslint",
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 6,
"ecmaFeatures": {
"impliedStrict": true,
"experimentalObjectRestSpread": true,
}
},
"env": {
"browser": true,
"node": true,
"es6": true,
},
"rules": {
"babel/new-cap": 1,
"babel/object-curly-spacing": ["error", "always"],
"babel/no-invalid-this": 1,
"babel/semi": ["error", "always"],
"no-console": ["error", { "allow": ["warn", "error"] }],
"semi": ["error", "always"],
"no-fallthrough": ["error", { "commentPattern": "cascade" }],
"arrow-parens": ["error", "as-needed", { "requireForBlockBody": true }],
"prefer-promise-reject-errors": ["error", { "allowEmptyReject": true }],
"eqeqeq": ["error", "always"],
"max-len": ["error", {
"ignoreTrailingComments": true,
"ignoreUrls": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true,
}],
"indent": ["error", 2, {
"SwitchCase": 1,
"MemberExpression": 1,
"FunctionDeclaration": { "parameters": 2 },
"CallExpression": { "arguments": 1 },
}],
}
}