Skip to content

Commit 484d0d5

Browse files
authored
Enable no-extra-semi & no-irregular-whitespace
The no-extra-semi rule: eslint.org/docs/rules/no-extra-semi disallows unnecessary semicolons, e.g. it forbids the following: ```js var x = 5;; function foo() { // code }; ``` In jQuery we usually don't add a semicolon at the end of function declarations but I found a few cases where we do, creating an inconsistency. The no-irregular-whitespace rule: eslint.org/docs/rules/no-irregular-whitespace forbids most whitespaces that may be hard to notice in source. We have one such occurrence in Core code that would be good to forbid. Fixes #15 Closes #16
1 parent cd92bb7 commit 484d0d5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.eslintrc.json

+2
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@
7777
],
7878
"no-mixed-spaces-and-tabs": "error",
7979
"no-trailing-spaces": "error",
80+
"no-irregular-whitespace": "error",
8081
"no-multi-str": "error",
8182
"comma-dangle": [
8283
"error",
@@ -112,6 +113,7 @@
112113
"after": true
113114
}
114115
],
116+
"no-extra-semi": "error",
115117
"space-infix-ops": "error",
116118
"eol-last": "error",
117119
"lines-around-comment": [

0 commit comments

Comments
 (0)