UNPKG

2.32 kBPlain TextView Raw
1env:
2 node: true
3 es6: false
4
5rules:
6 # Possible Errors
7 # http://eslint.org/docs/rules/#possible-errors
8 comma-dangle: [2, "only-multiline"]
9 no-constant-condition: 2
10 no-control-regex: 2
11 no-debugger: 2
12 no-dupe-args: 2
13 no-dupe-keys: 2
14 no-duplicate-case: 2
15 no-empty: 2
16 no-empty-character-class: 2
17 no-ex-assign: 2
18 no-extra-boolean-cast : 2
19 no-extra-parens: [2, "functions"]
20 no-extra-semi: 2
21 no-func-assign: 2
22 no-invalid-regexp: 2
23 no-irregular-whitespace: 2
24 no-negated-in-lhs: 2
25 no-obj-calls: 2
26 no-regex-spaces: 2
27 no-sparse-arrays: 2
28 no-inner-declarations: 2
29 no-unexpected-multiline: 2
30 no-unreachable: 2
31 use-isnan: 2
32 valid-typeof: 2
33
34 # Best Practices
35 # http://eslint.org/docs/rules/#best-practices
36 array-callback-return: 2
37 block-scoped-var: 2
38 dot-notation: 2
39 eqeqeq: 2
40 no-else-return: 2
41 no-extend-native: 2
42 no-floating-decimal: 2
43 no-extra-bind: 2
44 no-fallthrough: 2
45 no-labels: 2
46 no-lone-blocks: 2
47 no-loop-func: 2
48 no-multi-spaces: 2
49 no-multi-str: 2
50 no-native-reassign: 2
51 no-new-wrappers: 2
52 no-octal: 2
53 no-proto: 2
54 no-redeclare: 2
55 no-return-assign: 2
56 no-self-assign: 2
57 no-self-compare: 2
58 no-sequences: 2
59 no-throw-literal: 2
60 no-useless-call: 2
61 no-useless-concat: 2
62 no-useless-escape: 2
63 no-void: 2
64 no-unmodified-loop-condition: 2
65 yoda: 2
66
67 # Strict Mode
68 # http://eslint.org/docs/rules/#strict-mode
69 strict: [2, "global"]
70
71 # Variables
72 # http://eslint.org/docs/rules/#variables
73 no-delete-var: 2
74 no-shadow-restricted-names: 2
75 no-undef: 2
76 no-unused-vars: [2, {"args": "none"}]
77
78 # http://eslint.org/docs/rules/#nodejs-and-commonjs
79 no-mixed-requires: 2
80 no-new-require: 2
81 no-path-concat: 2
82
83 # Stylistic Issues
84 # http://eslint.org/docs/rules/#stylistic-issues
85 comma-spacing: 2
86 eol-last: 2
87 indent: [2, 4, {SwitchCase: 2}]
88 keyword-spacing: 2
89 max-len: [2, 200, 2]
90 new-parens: 2
91 no-mixed-spaces-and-tabs: 2
92 no-multiple-empty-lines: [2, {max: 2}]
93 no-trailing-spaces: 2
94 quotes: [2, "single", "avoid-escape"]
95 semi: 2
96 space-before-blocks: [2, "always"]
97 space-before-function-paren: [2, "always"]
98 space-in-parens: [2, "never"]
99 space-infix-ops: 2
100 space-unary-ops: 2
101
102globals:
103 it: true
104 describe: true
105 before: true
106 after: true
107 beforeEach: true
108 afterEach: true