Skip to content

Commit 5549d50

Browse files
authored
Rollup merge of #97681 - GuillaumeGomez:more-eslint, r=Dylan-DPC
Add more eslint checks A new batch of eslint rules: * [no-fallthrough](https://eslint.org/docs/rules/no-fallthrough) * [no-invalid-regexp](https://eslint.org/docs/rules/no-invalid-regexp) * [no-import-assign](https://eslint.org/docs/rules/no-import-assign) * [no-self-compare](https://eslint.org/docs/rules/no-self-compare) * [no-template-curly-in-string](https://eslint.org/docs/rules/no-template-curly-in-string) * [block-scoped-var](https://eslint.org/docs/rules/block-scoped-var) * [guard-for-in](https://eslint.org/docs/rules/guard-for-in) * [no-alert](https://eslint.org/docs/rules/no-alert) r? ``@notriddle``
2 parents 6b80b15 + 6ce2e05 commit 5549d50

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/librustdoc/html/static/.eslintrc.js

+8
Original file line numberDiff line numberDiff line change
@@ -70,5 +70,13 @@ module.exports = {
7070
"no-dupe-keys": "error",
7171
"no-duplicate-case": "error",
7272
"no-ex-assign": "error",
73+
"no-fallthrough": "error",
74+
"no-invalid-regexp": "error",
75+
"no-import-assign": "error",
76+
"no-self-compare": "error",
77+
"no-template-curly-in-string": "error",
78+
"block-scoped-var": "error",
79+
"guard-for-in": "error",
80+
"no-alert": "error",
7381
}
7482
};

0 commit comments

Comments
 (0)