Initial commit
[yaffs-website] / node_modules / extend / .eslintrc
1 {
2         "env": {
3                 "browser": false,
4                 "node": true,
5                 "amd": false,
6                 "mocha": false,
7                 "jasmine": false
8         },
9
10         "rules": {
11                 "accessor-pairs": [2, { getWithoutSet: false, setWithoutGet: true }],
12                 "array-bracket-spacing": [2, "never", {
13                         "singleValue": false,
14                         "objectsInArrays": false,
15                         "arraysInArrays": false
16                 }],
17                 "block-scoped-var": [0],
18                 "brace-style": [2, "1tbs", { "allowSingleLine": true }],
19                 "camelcase": [2],
20                 "comma-dangle": [2, "never"],
21                 "comma-spacing": [2],
22                 "comma-style": [2, "last"],
23                 "complexity": [2, 15],
24                 "computed-property-spacing": [2, "never"],
25                 "consistent-return": [2],
26                 "consistent-this": [0, "that"],
27                 "constructor-super": [2],
28                 "curly": [2, "all"],
29                 "default-case": [2],
30                 "dot-notation": [2, { "allowKeywords": true }],
31                 "eol-last": [2],
32                 "eqeqeq": [2],
33                 "func-names": [0],
34                 "func-style": [2, "expression"],
35                 "generator-star-spacing": [2, { "before": false, "after": true }],
36                 "global-strict": [0, "never"],
37                 "guard-for-in": [0],
38                 "handle-callback-err": [0],
39                 "key-spacing": [2, { "beforeColon": false, "afterColon": true }],
40                 "linebreak-style": [2, "unix"],
41                 "lines-around-comment": [2, {
42                         "beforeBlockComment": false,
43                         "afterBlockComment": false,
44                         "beforeLineComment": false,
45                         "beforeLineComment": false,
46                         "allowBlockStart": true,
47                         "allowBlockEnd": true
48                 }],
49                 "quotes": [2, "single", "avoid-escape"],
50                 "max-depth": [1, 4],
51                 "max-len": [0, 80, 4],
52                 "max-nested-callbacks": [2, 2],
53                 "max-params": [2, 2],
54                 "max-statements": [2, 21],
55                 "new-parens": [2],
56                 "new-cap": [2],
57                 "newline-after-var": [0],
58                 "no-alert": [2],
59                 "no-array-constructor": [2],
60                 "no-bitwise": [0],
61                 "no-caller": [2],
62                 "no-catch-shadow": [2],
63                 "no-cond-assign": [2],
64                 "no-console": [2],
65                 "no-constant-condition": [2],
66                 "no-continue": [2],
67                 "no-control-regex": [2],
68                 "no-debugger": [2],
69                 "no-delete-var": [2],
70                 "no-div-regex": [0],
71                 "no-dupe-args": [2],
72                 "no-dupe-keys": [2],
73                 "no-duplicate-case": [2],
74                 "no-else-return": [0],
75                 "no-empty": [2],
76                 "no-empty-character-class": [2],
77                 "no-empty-label": [2],
78                 "no-eq-null": [0],
79                 "no-eval": [2],
80                 "no-ex-assign": [2],
81                 "no-extend-native": [2],
82                 "no-extra-bind": [2],
83                 "no-extra-boolean-cast": [2],
84                 "no-extra-parens": [0],
85                 "no-extra-semi": [2],
86                 "no-fallthrough": [2],
87                 "no-floating-decimal": [2],
88                 "no-func-assign": [2],
89                 "no-implied-eval": [2],
90                 "no-inline-comments": [0],
91                 "no-inner-declarations": [2, "functions"],
92                 "no-invalid-regexp": [2],
93                 "no-irregular-whitespace": [2],
94                 "no-iterator": [2],
95                 "no-label-var": [2],
96                 "no-labels": [2],
97                 "no-lone-blocks": [2],
98                 "no-lonely-if": [2],
99                 "no-loop-func": [2],
100                 "no-mixed-requires": [0, false],
101                 "no-mixed-spaces-and-tabs": [2, false],
102                 "no-multi-spaces": [2],
103                 "no-multi-str": [2],
104                 "no-multiple-empty-lines": [2, {"max": 1}],
105                 "no-native-reassign": [2],
106                 "no-negated-in-lhs": [2],
107                 "no-nested-ternary": [0],
108                 "no-new": [2],
109                 "no-new-func": [2],
110                 "no-new-object": [2],
111                 "no-new-require": [0],
112                 "no-new-wrappers": [2],
113                 "no-obj-calls": [2],
114                 "no-octal": [2],
115                 "no-octal-escape": [2],
116                 "no-param-reassign": [2],
117                 "no-path-concat": [0],
118                 "no-plusplus": [0],
119                 "no-process-env": [0],
120                 "no-process-exit": [2],
121                 "no-proto": [2],
122                 "no-redeclare": [2],
123                 "no-regex-spaces": [2],
124                 "no-reserved-keys": [2],
125                 "no-restricted-modules": [0],
126                 "no-return-assign": [2, "always"],
127                 "no-script-url": [2],
128                 "no-self-compare": [0],
129                 "no-sequences": [2],
130                 "no-shadow": [2],
131                 "no-shadow-restricted-names": [2],
132                 "no-space-before-semi": [2],
133                 "no-spaced-func": [2],
134                 "no-sparse-arrays": [2],
135                 "no-sync": [0],
136                 "no-ternary": [0],
137                 "no-this-before-super": [2],
138                 "no-throw-literal": [2],
139                 "no-trailing-spaces": [2, { "skipBlankLines": false }],
140                 "no-undef": [2],
141                 "no-undef-init": [2],
142                 "no-undefined": [0],
143                 "no-underscore-dangle": [2],
144                 "no-unexpected-multiline": [2],
145                 "no-unneeded-ternary": [2],
146                 "no-unreachable": [2],
147                 "no-unused-expressions": [2],
148                 "no-unused-vars": [2, { "vars": "all", "args": "after-used" }],
149                 "no-use-before-define": [2],
150                 "no-void": [0],
151                 "no-warning-comments": [0, { "terms": ["todo", "fixme", "xxx"], "location": "start" }],
152                 "no-with": [2],
153                 "no-wrap-func": [2],
154                 "object-curly-spacing": [2, "always"],
155                 "object-shorthand": [2, "never"],
156                 "one-var": [0],
157                 "operator-assignment": [0, "always"],
158                 "operator-linebreak": [2, "none"],
159                 "padded-blocks": [0],
160                 "prefer-const": [0],
161                 "quote-props": [0],
162                 "radix": [0],
163                 "semi": [2],
164                 "semi-spacing": [2, { "before": false, "after": true }],
165                 "sort-vars": [0],
166                 "space-after-keywords": [2, "always"],
167                 "space-before-function-paren": [2, { "anonymous": "always", "named": "never" }],
168                 "space-before-blocks": [0, "always"],
169                 "space-in-brackets": [0, "never", {
170                         "singleValue": true,
171                         "arraysInArrays": false,
172                         "arraysInObjects": false,
173                         "objectsInArrays": true,
174                         "objectsInObjects": true,
175                         "propertyName": false
176                 }],
177                 "space-in-parens": [2, "never"],
178                 "space-infix-ops": [2],
179                 "space-return-throw-case": [2],
180                 "space-unary-ops": [2, { "words": true, "nonwords": false }],
181                 "spaced-comment": [2, "always"],
182                 "spaced-line-comment": [0, "always"],
183                 "strict": [2, "global"],
184                 "use-isnan": [2],
185                 "valid-jsdoc": [0],
186                 "valid-typeof": [2],
187                 "vars-on-top": [0],
188                 "wrap-iife": [2],
189                 "wrap-regex": [2],
190                 "yoda": [2, "never", { "exceptRange": true, "onlyEquality": false }]
191         }
192 }