@@ -3,4 +3,130 @@ module.exports = {
3
3
'es6' : true ,
4
4
'shared-node-browser' : true ,
5
5
} ,
6
- } ;
6
+ rules : {
7
+ 'accessor-pairs' : 2 ,
8
+ 'arrow-spacing' : [ 2 , { 'before' : true , 'after' : true } ] ,
9
+ 'block-spacing' : [ 2 , 'always' ] ,
10
+ 'brace-style' : 2 ,
11
+ 'camelcase' : [ 2 , { 'properties' : 'never' , 'allow' : [ '^UNSAFE_' ] } ] ,
12
+ 'comma-dangle' : [ 2 , 'always-multiline' ] ,
13
+ 'comma-spacing' : [ 2 , { 'before' : false , 'after' : true } ] ,
14
+ 'comma-style' : [ 2 , 'last' ] ,
15
+ 'constructor-super' : 2 ,
16
+ 'curly' : 2 ,
17
+ 'default-case' : 2 ,
18
+ 'dot-location' : [ 2 , 'property' ] ,
19
+ 'eol-last' : 2 ,
20
+ 'eqeqeq' : [ 2 , 'allow-null' ] ,
21
+ 'generator-star-spacing' : [ 2 , { 'before' : true , 'after' : true } ] ,
22
+ 'handle-callback-err' : [ 2 , '^(err|error)$' ] ,
23
+ 'indent' : [ 2 , 2 , { 'SwitchCase' : 1 } ] ,
24
+ 'jsx-quotes' : [ 2 , 'prefer-double' ] ,
25
+ 'key-spacing' : 2 ,
26
+ 'keyword-spacing' : [ 2 , { 'before' : true , 'after' : true } ] ,
27
+ 'new-cap' : [ 2 , { 'newIsCap' : true , 'capIsNew' : false } ] ,
28
+ 'new-parens' : 2 ,
29
+ 'no-array-constructor' : 2 ,
30
+ 'no-async-promise-executor' : 2 ,
31
+ 'no-caller' : 2 ,
32
+ 'no-class-assign' : 2 ,
33
+ 'no-cond-assign' : 2 ,
34
+ 'no-confusing-arrow' : 2 ,
35
+ 'no-const-assign' : 2 ,
36
+ 'no-control-regex' : 2 ,
37
+ 'no-debugger' : 2 ,
38
+ 'no-delete-var' : 2 ,
39
+ 'no-dupe-args' : 2 ,
40
+ 'no-dupe-class-members' : 2 ,
41
+ 'no-dupe-keys' : 2 ,
42
+ 'no-duplicate-case' : 2 ,
43
+ 'no-duplicate-imports' : 2 ,
44
+ 'no-empty-character-class' : 2 ,
45
+ 'no-empty-pattern' : 2 ,
46
+ 'no-eval' : 2 ,
47
+ 'no-ex-assign' : 2 ,
48
+ 'no-extend-native' : 2 ,
49
+ 'no-extra-bind' : 2 ,
50
+ 'no-extra-boolean-cast' : 2 ,
51
+ 'no-extra-parens' : [ 2 , 'functions' ] ,
52
+ 'no-fallthrough' : 2 ,
53
+ 'no-floating-decimal' : 2 ,
54
+ 'no-func-assign' : 2 ,
55
+ 'no-implied-eval' : 2 ,
56
+ 'no-inner-declarations' : [ 2 , 'functions' ] ,
57
+ 'no-invalid-regexp' : 2 ,
58
+ 'no-irregular-whitespace' : 2 ,
59
+ 'no-iterator' : 2 ,
60
+ 'no-label-var' : 2 ,
61
+ 'no-labels' : [ 2 , { 'allowLoop' : false , 'allowSwitch' : false } ] ,
62
+ 'no-lone-blocks' : 2 ,
63
+ 'no-mixed-spaces-and-tabs' : 2 ,
64
+ 'no-multi-spaces' : 2 ,
65
+ 'no-multi-str' : 2 ,
66
+ 'no-multiple-empty-lines' : [ 2 , { 'max' : 2 } ] ,
67
+ 'no-native-reassign' : 2 ,
68
+ 'no-negated-in-lhs' : 2 ,
69
+ 'no-new' : 2 ,
70
+ 'no-new-func' : 2 ,
71
+ 'no-new-object' : 2 ,
72
+ 'no-new-require' : 2 ,
73
+ 'no-new-symbol' : 2 ,
74
+ 'no-new-wrappers' : 2 ,
75
+ 'no-obj-calls' : 2 ,
76
+ 'no-octal' : 2 ,
77
+ 'no-octal-escape' : 2 ,
78
+ 'no-path-concat' : 2 ,
79
+ 'no-proto' : 2 ,
80
+ 'no-redeclare' : 2 ,
81
+ 'no-regex-spaces' : 2 ,
82
+ 'no-restricted-globals' : [ 2 , 'event' ] ,
83
+ 'no-return-assign' : [ 2 , 'except-parens' ] ,
84
+ 'no-self-assign' : 2 ,
85
+ 'no-self-compare' : 2 ,
86
+ 'no-sequences' : 2 ,
87
+ 'no-shadow-restricted-names' : 2 ,
88
+ 'no-spaced-func' : 2 ,
89
+ 'no-sparse-arrays' : 2 ,
90
+ 'no-this-before-super' : 2 ,
91
+ 'no-throw-literal' : 2 ,
92
+ 'no-trailing-spaces' : 2 ,
93
+ 'no-undef' : 2 ,
94
+ 'no-undef-init' : 2 ,
95
+ 'no-unexpected-multiline' : 2 ,
96
+ 'no-unmodified-loop-condition' : 2 ,
97
+ 'no-unneeded-ternary' : [ 2 , { 'defaultAssignment' : false } ] ,
98
+ 'no-unreachable' : 2 ,
99
+ 'no-unsafe-finally' : 2 ,
100
+ 'no-unused-expressions' : [ 2 , { 'allowShortCircuit' : true , 'allowTernary' : true } ] ,
101
+ 'no-unused-vars' : [ 2 , { 'vars' : 'all' , 'args' : 'all' , 'argsIgnorePattern' : '[_]+' } ] ,
102
+ 'no-use-before-define' : [ 2 , { 'functions' : false } ] ,
103
+ 'no-useless-call' : 2 ,
104
+ 'no-useless-computed-key' : 2 ,
105
+ 'no-useless-constructor' : 2 ,
106
+ 'no-useless-escape' : 2 ,
107
+ 'no-var' : 2 ,
108
+ 'no-whitespace-before-property' : 2 ,
109
+ 'no-with' : 2 ,
110
+ 'object-curly-spacing' : [ 2 , 'always' ] ,
111
+ 'one-var' : [ 2 , { 'initialized' : 'never' } ] ,
112
+ 'operator-linebreak' : [ 2 , 'after' , { 'overrides' : { '?' : 'ignore' , ':' : 'ignore' } } ] ,
113
+ 'padded-blocks' : 0 ,
114
+ 'prefer-const' : 2 ,
115
+ 'quotes' : [ 2 , 'single' , { 'avoidEscape' : true , 'allowTemplateLiterals' : true } ] ,
116
+ 'semi' : [ 2 , 'never' ] ,
117
+ 'semi-spacing' : [ 2 , { 'before' : false , 'after' : true } ] ,
118
+ 'space-before-blocks' : [ 2 , 'always' ] ,
119
+ 'space-before-function-paren' : [ 2 , 'always' ] ,
120
+ 'space-in-parens' : [ 2 , 'never' ] ,
121
+ 'space-infix-ops' : 2 ,
122
+ 'space-unary-ops' : [ 2 , { 'words' : true , 'nonwords' : false } ] ,
123
+ 'spaced-comment' : [ 2 , 'always' , { 'markers' : [ 'global' , 'globals' , 'eslint' , 'eslint-disable' , '*package' , '!' , ',' ] , 'exceptions' : [ '=' , '-' ] } ] ,
124
+ 'strict' : 0 ,
125
+ 'template-curly-spacing' : [ 2 , 'never' ] ,
126
+ 'use-isnan' : 2 ,
127
+ 'valid-typeof' : 2 ,
128
+ 'wrap-iife' : [ 2 , 'any' ] ,
129
+ 'yield-star-spacing' : [ 2 , 'both' ] ,
130
+ 'yoda' : [ 2 , 'never' ] ,
131
+ } ,
132
+ }
0 commit comments