forked from naja-js/naja
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.eslintrc
69 lines (69 loc) · 1.87 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
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
{
"parser": "babel-eslint",
"env": {
"browser": true,
"es6": true
},
"extends": "eslint:recommended",
"rules": {
"array-bracket-spacing": "error",
"arrow-body-style": "error",
"arrow-parens": "error",
"arrow-spacing": "error",
"block-scoped-var": "error",
"block-spacing": "error",
"brace-style": "error",
"camelcase": "error",
"comma-dangle": ["error", "always-multiline"],
"comma-spacing": "error",
"comma-style": "error",
"computed-property-spacing": "error",
"curly": ["error", "all"],
"dot-notation": "error",
"eol-last": "error",
"eqeqeq": "error",
"func-call-spacing": "error",
"func-names": ["error", "never"],
"func-style": "error",
"indent": ["error", "tab"],
"keyword-spacing": "error",
"linebreak-style": ["error", "unix"],
"max-depth": "error",
"max-statements-per-line": "error",
"new-parens": "error",
"no-array-constructor": "error",
"no-empty-function": "error",
"no-extra-bind": "error",
"no-extra-parens": ["error", "all"],
"no-implicit-globals": "error",
"no-multi-spaces": "error",
"no-nested-ternary": "error",
"no-redeclare": "error",
"no-return-assign": "error",
"no-throw-literal": "error",
"no-trailing-spaces": "error",
"no-unneeded-ternary": "error",
"no-unused-expressions": "error",
"no-useless-return": "error",
"no-var": "error",
"object-curly-spacing": "error",
"object-shorthand": "error",
"prefer-arrow-callback": "error",
"prefer-const": "error",
"prefer-destructuring": "error",
"prefer-rest-params": "error",
"prefer-spread": "error",
"prefer-template": "error",
"quotes": ["error", "single"],
"semi": ["error", "always"],
"space-before-blocks": "error",
"space-before-function-paren": ["error", {
"anonymous": "always",
"named": "never"
}],
"spaced-comment": "error",
"template-curly-spacing": "error",
"unicode-bom": "error",
"yoda": "error"
}
}