From 665f82200f6d6d8550a468bd76ee19759467f665 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Thu, 28 Nov 2024 19:06:31 -0500 Subject: eslint: use stylistic to replace deprecated features --- static/build.html | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) (limited to 'static/build.html') 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
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"],
         }
     }
 ];
-- cgit v1.3.1