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 /static | |
| parent | cc13d967cc8be6a2e25961992719a03a52418ef4 (diff) | |
eslint: use stylistic to replace deprecated features
Diffstat (limited to 'static')
| -rw-r--r-- | static/build.html | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/static/build.html b/static/build.html index 2fc3e9b8..d964832c 100644 --- a/static/build.html +++ b/static/build.html @@ -1472,10 +1472,14 @@ rm android-cts-media-1.5.zip</pre> <pre>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 @@ -1484,11 +1488,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"], } } ];</pre> |
