diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-06-11 18:05:35 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-06-11 18:05:35 +0200 |
| commit | c82bc1e9a8bb5c187d4aeb460eaf6df56de392a2 (patch) | |
| tree | 25cdcca288265681089241a0abddea1ea458a836 /src | |
| parent | b3d8e71cf16bd5abc61f84101121911cbbc0bc89 (diff) | |
| parent | fb68e0bf9be3d5cef1e77fa7496f54160d899868 (diff) | |
| download | rust-c82bc1e9a8bb5c187d4aeb460eaf6df56de392a2.tar.gz rust-c82bc1e9a8bb5c187d4aeb460eaf6df56de392a2.zip | |
Rollup merge of #97990 - GuillaumeGomez:eslint-checks, r=Dylan-DPC
Add more eslint checks List of newly added checks: * [no-lonely-if](https://eslint.org/docs/rules/no-lonely-if) * [no-mixed-operators](https://eslint.org/docs/rules/no-mixed-operators) * [no-multi-assign](https://eslint.org/docs/rules/no-multi-assign) * [no-return-assign](https://eslint.org/docs/rules/no-return-assign) * [no-script-url](https://eslint.org/docs/rules/no-script-url) r? `@Dylan-DPC`
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustdoc/html/static/.eslintrc.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/librustdoc/html/static/.eslintrc.js b/src/librustdoc/html/static/.eslintrc.js index 9088e06e508..fc8b5678080 100644 --- a/src/librustdoc/html/static/.eslintrc.js +++ b/src/librustdoc/html/static/.eslintrc.js @@ -84,5 +84,10 @@ module.exports = { "no-implicit-globals": "error", "no-implied-eval": "error", "no-label-var": "error", + "no-lonely-if": "error", + "no-mixed-operators": "error", + "no-multi-assign": "error", + "no-return-assign": "error", + "no-script-url": "error", } }; |
