forked from bbc/waveform-data.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.eslintrc.js
85 lines (84 loc) · 2.79 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
77
78
79
80
81
82
83
84
module.exports = {
"env": {
"browser": true,
"es6": true,
"commonjs": true
},
"extends": "eslint:recommended",
"plugins": [
"chai-friendly"
],
"rules": {
"array-bracket-spacing": ["error", "never"],
"brace-style": ["error", "stroustrup"],
"block-scoped-var": "error",
"comma-dangle": ["error", "never"],
"comma-style": ["error", "last"],
"consistent-this": ["error", "self"],
"curly": ["error", "all"],
"dot-location": ["error", "property"],
"dot-notation": "error",
"eol-last": "error",
"eqeqeq": ["error", "smart"],
"func-style": ["error", "declaration"],
"guard-for-in": "error",
"indent": ["off", 2],
"key-spacing": ["error", { "beforeColon": false, "afterColon": true, "mode": "minimum" }],
"keyword-spacing": ["error", { "before": true }],
"linebreak-style": ["error", "unix"],
"max-len": ["warn", 100],
"new-cap": "error",
"newline-after-var": ["error", "always"],
"newline-per-chained-call": "error",
"no-alert": "error",
"no-caller": "error",
"no-console": "warn",
"no-continue": "error",
"no-eval": "error",
"no-extra-bind": "error",
"no-extra-semi": "error",
"no-floating-decimal": "error",
"no-implicit-coercion": "error",
"no-implicit-globals": "error",
"no-implied-eval": "error",
"no-label-var": "error",
"no-labels": "error",
"no-lone-blocks": "error",
"no-lonely-if": "off",
"no-loop-func": "error",
"no-multi-str": "error",
"no-multiple-empty-lines": ["error", { "max": 1, "maxBOF": 0, "maxEOF": 0 }],
"no-nested-ternary": "error",
"no-new-object": "error",
"no-return-assign": "error",
"no-script-url": "error",
"no-self-compare": "error",
"no-sequences": "error",
"no-tabs": "error",
"no-throw-literal": "error",
"no-trailing-spaces": "error",
"no-unmodified-loop-condition": "error",
"no-unused-expressions": "off", // see chai-friendly/no-unused-expressions
"no-unused-vars": ["error", { "args": "none" }],
"no-useless-call": "error",
"no-useless-concat": "error",
"no-useless-escape": "error",
"no-undef-init": "error",
"no-use-before-define": "error",
"no-void": "error",
"object-curly-spacing": ["error", "always"],
"operator-assignment": ["error", "always"],
"padded-blocks": ["warn", "never"],
"quotes": ["error", "double", { "avoidEscape": true }],
"radix": "error",
"semi": ["error", "always"],
"space-before-blocks": "error",
"space-before-function-paren": ["error", "never"],
"space-in-parens": ["error", "never"],
"space-infix-ops": "error",
"space-unary-ops": "error",
"spaced-comment": ["error", "always", { "block": { "balanced": true } }],
"yoda": "error",
"chai-friendly/no-unused-expressions": "error"
}
};