diff options
| author | Daniel Micay <daniel.micay@grapheneos.org> | 2024-11-28 19:06:31 -0500 |
|---|---|---|
| committer | Daniel Micay <daniel.micay@grapheneos.org> | 2024-11-28 19:07:31 -0500 |
| commit | 665f82200f6d6d8550a468bd76ee19759467f665 (patch) | |
| tree | 3bb9d890956ebfe37a230fb3f27bd6f187a1308f /eslint.config.js | |
| parent | cc13d967cc8be6a2e25961992719a03a52418ef4 (diff) | |
eslint: use stylistic to replace deprecated features
Diffstat (limited to 'eslint.config.js')
| -rw-r--r-- | eslint.config.js | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/eslint.config.js b/eslint.config.js index f99de616..ba4af07e 100644 --- a/eslint.config.js +++ b/eslint.config.js @@ -1,9 +1,13 @@ import js from "@eslint/js"; import globals from "globals"; +import stylistic from "@stylistic/eslint-plugin"; export default [ js.configs.recommended, { + plugins: { + "@stylistic": stylistic + }, languageOptions: { globals: { ...globals.browser @@ -12,11 +16,11 @@ export default [ sourceType: "module" }, rules: { - indent: ["error", 4], - "linebreak-style": ["error", "unix"], - quotes: ["error", "double"], - semi: ["error", "always"], - "no-var": ["error"] + "no-var": ["error"], + "@stylistic/indent": ["error", 4], + "@stylistic/linebreak-style": ["error", "unix"], + "@stylistic/quotes": ["error", "double"], + "@stylistic/semi": ["error", "always"], } } ]; |
