Skip to content

Commit 214c4a5

Browse files
Update .eslintrc as per discussion with Phil
1 parent ea50b4b commit 214c4a5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

linters/.eslintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@
4646
"no-reserved-keys": 2, // Disallow use of reserved words as object keys (can cause minification to blow up) (error).
4747
"no-self-compare": 1, // Disallow comparison to oneself (usually a typo) (warning).
4848
"no-shadow-restricted-names": 2, // Disallow shadowing of restricted names like `arguments` (error).
49-
"no-spaced-func": 2, // Disallows space between `function` and identifier (e.g. disallows `function foo ()`) (error).
5049
"no-trailing-spaces": 2, // Disallows trailing whitespace (error).
5150
"no-undef": 2, // Disallow undeclared variables unless they've already been explicitly listed as global (error).
5251
"no-undef-init": 2, // Disallow initializing a variable to `undefined` (error).
@@ -62,6 +61,7 @@
6261
"semi-spacing": [2, { "before": false, "after": true }], // Enforces no spaces before semicolons and spacing after (http://eslint.org/docs/rules/semi-spacing) (error).
6362
"sort-vars": [1, { "ignoreCase": true }], // Requires var declarations be sorted alphabetically, case-insensitive (warning).
6463
"space-after-keywords": [2, "always"], // Requires spaces after `if`, `while`, &c (error).
64+
"space-before-function-paren": [2, "always"], // Requires a space between `function` and the following `()` (error).
6565
"space-in-parens": [2, "never"], // No spaces inside () (e.g. function(a, b)) (error).
6666
"space-infix-ops": 2, // Requires space around infix operators (e.g. `1 + 2` instead of `1+2`) (error).
6767
"space-unary-ops": [2, { "words": true, "nonwords": false }] // Requires space "outside" unary ops and disallows it "inside" (http://eslint.org/docs/rules/space-unary-ops) (error).

0 commit comments

Comments
 (0)