Skip to content

Commit 11c97ba

Browse files
committed
Enable no-extra-semi
The rule: https://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.
1 parent cd92bb7 commit 11c97ba

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.eslintrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@
112112
"after": true
113113
}
114114
],
115+
"no-extra-semi": "error",
115116
"space-infix-ops": "error",
116117
"eol-last": "error",
117118
"lines-around-comment": [

0 commit comments

Comments
 (0)