|
60 | 60 | "no-caller": 2, // disallow use of arguments.caller or arguments.callee |
61 | 61 | "no-div-regex": 2, // disallow division operators explicitly at beginning of regular expression (off by default) |
62 | 62 | "no-else-return": 2, // disallow else after a return in an if (off by default) |
63 | | - "no-empty-label": 2, // disallow use of labels for anything other then loops and switches |
64 | 63 | "no-eq-null": 2, // disallow comparisons to null without a type-checking operator (off by default) |
65 | 64 | "no-eval": 2, // disallow use of eval() |
66 | 65 | "no-extend-native": 2, // disallow adding to native types |
|
85 | 84 | "no-proto": 2, // disallow usage of __proto__ property |
86 | 85 | "no-redeclare": 2, // disallow declaring the same variable more then once |
87 | 86 | "no-return-assign": 2, // disallow use of assignment in return statement |
88 | | - "no-script-url": 2, // disallow use of javascript: urls. |
| 87 | + "no-script-url": 0, // disallow use of javascript: urls. |
89 | 88 | "no-self-compare": 2, // disallow comparisons where both sides are exactly the same (off by default) |
90 | 89 | "no-sequences": 2, // disallow use of comma operator |
91 | 90 | "no-throw-literal": 2, // restrict what can be thrown as an exception (off by default) |
|
125 | 124 | "eol-last": 1, // enforce newline at the end of file, with no multiple empty lines |
126 | 125 | "func-names": 0, // require function expressions to have a name (off by default) |
127 | 126 | "func-style": 0, // enforces use of function declarations or expressions (off by default) |
128 | | - "key-spacing": [1, {"beforeColon": false, "afterColon": true}], // enforces spacing between keys and values in object literal properties |
129 | 127 | "max-nested-callbacks": [1, 3], // specify the maximum depth callbacks can be nested (off by default) |
130 | 128 | "new-cap": [1, {"newIsCap": true, "capIsNew": false}], // require a capital letter for constructors |
131 | 129 | "new-parens": 1, // disallow the omission of parentheses when invoking a constructor with no arguments |
|
149 | 147 | "semi": [1, "always"], // require or disallow use of semicolons instead of ASI |
150 | 148 | "semi-spacing": [1, {"before": false, "after": true}], // enforce spacing before and after semicolons |
151 | 149 | "sort-vars": 0, // sort variables within the same declaration block (off by default) |
152 | | - "space-after-keywords": [1, "always"], // require a space after certain keywords (off by default) |
| 150 | + "key-spacing": [2, { |
| 151 | + "singleLine": { |
| 152 | + "beforeColon": false, |
| 153 | + "afterColon": true |
| 154 | + }, |
| 155 | + "multiLine": { |
| 156 | + "beforeColon": false, |
| 157 | + "afterColon": true, |
| 158 | + "align": "colon" |
| 159 | + } |
| 160 | + }], |
153 | 161 | "space-before-blocks": [1, "always"], // require or disallow space before blocks (off by default) |
154 | 162 | "space-before-function-paren": [1, {"anonymous": "always", "named": "never"}], // require or disallow space before function opening parenthesis (off by default) |
155 | 163 | "space-in-parens": [1, "never"], // require or disallow spaces inside parentheses (off by default) |
156 | 164 | "space-infix-ops": 1, // require spaces around operators |
157 | | - "space-return-throw-case": 1, // require a space after return, throw, and case |
158 | 165 | "space-unary-ops": [1, {"words": true, "nonwords": false}], // Require or disallow spaces before/after unary operators (words on by default, nonwords off by default) |
159 | 166 | "spaced-comment": [1, "always"], // require or disallow a space immediately following the // in a line comment (off by default) |
160 | 167 | "wrap-regex": 0, // require regex literals to be wrapped in parentheses (off by default) |
|
0 commit comments