Skip to content

Commit 1698cbc

Browse files
committed
Add some more lint rules
1 parent e92111e commit 1698cbc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

eslint.config.mjs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ export default defineConfig([
2121
sourceType: "commonjs",
2222
ecmaVersion: 5,
2323
globals: { define: "readonly" }
24+
},
25+
rules: {
26+
"no-inner-declarations": ["error", "functions"],
27+
"no-self-compare": ["error"],
28+
"no-unmodified-loop-condition": ["error"],
29+
"no-unreachable-loop": ["error"],
30+
"no-useless-assignment": ["error"]
2431
}
2532
}
2633
]);

0 commit comments

Comments
 (0)