forked from rkt2spc/jsonresume-theme-rocketspacer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
64 lines (64 loc) · 1.8 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// Maintain this file json compatible for possible future conversion
module.exports = {
"root": true,
"env": {
"es6": true,
"node": true,
"jest": true
},
"extends": "airbnb-base",
"plugins": ["import"],
"rules": {
"arrow-parens": ["error", "always"],
"camelcase": "off",
"comma-dangle": ["error", "always-multiline"],
"consistent-return": "off",
"func-names": ["error", "as-needed"],
"function-paren-newline": ["error", "consistent"],
"key-spacing": ["error", {
"align": {
"beforeColon": true,
"afterColon": true,
"on": "colon",
"mode": "strict"
}
}],
"max-len": ["error", {
"code": 120,
"ignoreTrailingComments": true,
"ignoreUrls": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true,
"ignoreRegExpLiterals": true
}],
"no-mixed-operators": ["error", { "allowSamePrecedence": true }],
"no-plusplus": "off",
"no-shadow": ["error", {
"builtinGlobals": true,
"allow": ["err", "next", "done", "cb", "callback"]
}],
"no-underscore-dangle": ["error", {
"allow": ["_id"],
"allowAfterThis": true,
"allowAfterSuper": true
}],
"no-unused-vars": ["error", { "args": "none" }],
"object-curly-newline": ["error", {
"multiline": true,
"consistent": true
}],
"object-shorthand": ["error", "consistent"],
"operator-assignment": "off",
"prefer-destructuring": ["error", {
"array": false,
"object": true
}, {
"enforceForRenamedProperties": false
}],
"quote-props": ["error", "consistent-as-needed"],
"radix": ["error", "as-needed"],
"import/no-extraneous-dependencies": ["error", {
"devDependencies": ["test/**", "tasks/**", "**/*.{test|spec}.js", "Gulpfile.js"]
}]
}
}