UNPKG

1.88 kBYAMLView Raw
1---
2 extends: ['eslint:all']
3 env:
4 es6: true
5 browser: true
6 rules:
7 array-bracket-spacing: 0
8 array-element-newline: 0
9 capitalized-comments: 0
10 computed-property-spacing: 0
11 curly: 0
12 dot-location: 0
13 eol-last: 0 # We don't need an extra EOL at the end of file.
14 func-names: 0
15 func-style: 0
16 id-length: 0
17 keyword-spacing: 0
18 linebreak-style: 0
19 max-len: [1, { code: 120 }]
20 max-params: [1, {max: 6}]
21 max-statements: [2, {max: 20}]
22 multiline-comment-style: 0
23 multiline-ternary: 0
24 new-cap: 1 # Functions must not start with a capital letter.
25 newline-per-chained-call: 0
26 no-console: [1, { allow: ["warn", "error"] }]
27 no-extra-parens: [1, 'all', { nestedBinaryExpressions: false }]
28 no-implicit-globals: 0 # Because we always work in modules.
29 no-magic-numbers: [1, { "ignore": [0, 1] }]
30 no-mixed-operators: ["error", {"groups": [["&", "|", "^", "~", "<<", ">>", ">>>"], ["&&", "||"]]}]
31 no-negated-condition: 0
32 no-plusplus: 0 # I want to be able to use i++.
33 no-sync: 0
34 no-ternary: 0
35 no-underscore-dangle: 0 # [1, { "allowAfterThis": true }]
36 no-use-before-define: [2, { functions: false, classes: true }]
37 object-curly-spacing: 0
38 object-shorthand: 1 # Can't do this becaue of IE11
39 one-var: 0
40 padded-blocks: 0
41 prefer-arrow-callback: 0
42 prefer-destructuring: 0
43 prefer-rest-params: 1 # IE11 prevents us to use this.
44 prefer-spread: 1 # IE11 prevents us to use this.
45 quote-props: 0
46 quotes: 0 # We can put single or double quotes if we want to.
47 sort-keys: 0
48 sort-vars: 0
49 space-before-function-paren: 0
50 space-in-parens: 0
51 strict: [2, 'global']
52 globals:
53 console: false
54 exports: false
55 module: false
56 require: false
57 _: false