UNPKG

2.37 kBYAMLView Raw
1# eslint@~2.2.0
2# @see http://eslint.org/docs/rules
3# When adding rules, be sure to sort them, e.g. vim :'<,'>sort
4root: true
5parser: esprima
6parserOptions:
7 sourceType: module
8rules:
9 ##### Possible Errors #####
10 no-console: 0
11 no-debugger: 1
12 no-dupe-args: 1
13 no-dupe-keys: 1
14 no-duplicate-case: 1
15 no-empty-character-class: 1
16 no-ex-assign: 1
17 no-extra-boolean-cast: 1
18 no-extra-semi: 1
19 no-func-assign: 1
20 no-inner-declarations: 1
21 no-invalid-regexp: 2
22 no-irregular-whitespace: 1
23 no-negated-in-lhs: 2
24 no-obj-calls: 2
25 no-regex-spaces: 1
26 no-sparse-arrays: 1
27 no-unexpected-multiline: 1
28 no-unreachable: 1
29 use-isnan: 2
30 valid-typeof: 2
31
32 ##### Best Practices #####
33 dot-notation: 1
34 eqeqeq: 1 # fixable
35 no-alert: 1
36 no-caller: 2
37 # no-eval: 2
38 no-eval: 0
39 no-extend-native: 1
40 no-extra-bind: 1
41 no-floating-decimal: 1
42 no-iterator: 2
43 no-labels: 2
44 no-loop-func: 1
45 # no-multi-spaces: 1 # fixable
46 no-multi-spaces: 0 # fixable
47 no-native-reassign: 2
48 no-new-func: 1
49 no-octal: 2
50 no-proto: 2
51 no-redeclare: 1
52 no-sequences: 1
53 # no-unused-expressions: 1
54 no-unused-expressions: 0
55 no-with: 1
56
57 ##### Variables #####
58 no-delete-var: 1
59 no-shadow-restricted-names: 1
60 no-undef-init: 2
61 # no-undef: 1
62 no-undef: 0
63 # no-unused-vars: [2, {args: 'all', argsIgnorePattern: '^_'}]
64 no-unused-vars: 0
65 no-use-before-define: [2, 'nofunc']
66
67 ##### Stylistic Issues #####
68 array-bracket-spacing: 1 # fixable
69 block-spacing: 1 # fixable
70 brace-style: [1, 'stroustrup', {allowSingleLine: true}]
71 func-style: [1, 'declaration', {allowArrowFunctions: true}]
72 # indent: [1, 'tab', {SwitchCase: 0}] # fixable
73 indent: 0 # fixable
74 key-spacing: 0 # 1
75 keyword-spacing: 1 # fixable
76 new-parens: 1
77 no-mixed-spaces-and-tabs: 2
78 no-spaced-func: 1 # fixable
79 no-unneeded-ternary: [2, {defaultAssignment: false}]
80 object-curly-spacing: 1 # fixable
81 one-var-declaration-per-line: 1
82 # operator-linebreak: [1, 'before', {overrides: {'=': 'after'}}]
83 operator-linebreak: 0
84 quotes: [1, 'single', 'avoid-escape'] # fixable
85 semi: [1, 'always'] # fixable
86 space-before-function-paren: [1, {anonymous: 'always', named: 'never'}] # fixable
87 space-in-parens: 1
88 space-infix-ops: 2 # fixable
89 space-unary-ops: 1 # fixable
90
91 #### ECMAScript 6 ####
92 no-class-assign: 2
93 no-const-assign: 2
94 no-dupe-class-members: 1