-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
76 lines (76 loc) · 2.09 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
65
66
67
68
69
70
71
72
73
74
75
76
// ESLint config : http://eslint.org/docs/user-guide/configuring
module.exports = {
// "parser": "babel-eslint",
"parserOptions": {
// "sourceType": "script",
},
"env": {
"browser": true,
"node": false,
"commonjs": true,
"amd": false,
"es6": false,
"jquery": true
},
"extends": [
"eslint:recommended",
"xo-space"
],
"plugins": [],
// rules list : http://eslint.org/docs/rules/
"rules": {
// Possible Errors
"no-console": ["warn", { allow: ["warn", "error", "info"] }],
"no-template-curly-in-string": ["off"],
// Best Practices
"no-multi-spaces": ["error", { exceptions: { "VariableDeclarator": true } }],
// Strict Mode
// "strict": "safe",
// Node.js and CommonJS
"callback-return": ["warn", ["cb", "callback", "next", "done"]],
// Stylistic Issues
"brace-style": ["error", "stroustrup"],
"camelcase": ["warn", { properties: "always" }],
"capitalized-comments": ["off"],
"comma-dangle": ["error", "only-multiline"],
'max-lines': ['warn', {
"max": 500,
"skipBlankLines": true,
"skipComments": true
}],
"max-params": ["off"],
"new-cap": ["error", {
"newIsCap": true,
"capIsNew": false
}],
"no-multiple-empty-lines": ["warn", { "max": 3 }],
"no-unused-vars": ["warn", { "argsIgnorePattern": "(el|e|event|err|error|success|notify)" }],
"object-curly-spacing": ["warn", "always"],
"operator-linebreak": ["error", "before"],
"padded-blocks": ["off"],
"quote-props": ["error", "as-needed"],
"quotes": ["warn", "single", {
"avoidEscape": true,
"allowTemplateLiterals": true
}],
"space-before-function-paren": ["error", "never"],
"spaced-comment": ["off"],
// "spaced-comment": ["warn", "always", {
// "line": {
// "exceptions": ["-", "/"]
// }
// "block": {
// "markers": ["!"],
// "balanced": false
// }
// }],
// ECMAScript 6
"arrow-parens": ["error", "always"]
},
"globals": {
"window": false,
"document": false,
"$": false,
"Paris": false
}
}