From 36f81be13b6f1b2186b2da4080d7f1f16eaf7217 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sun, 17 Mar 2024 09:44:00 -0400 Subject: [PATCH] Use eslint instead of jshint Eslint supports newer JS syntax such as static fields in classes, which is supported by all browsers/version with official uBO support. Reference: https://eslint.org/docs/latest/ Fixing all warnings for all JS files will be done over time. --- .eslintrc.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .eslintrc.yml diff --git a/.eslintrc.yml b/.eslintrc.yml new file mode 100644 index 000000000..ac3a4b3cd --- /dev/null +++ b/.eslintrc.yml @@ -0,0 +1,22 @@ +env: + browser: true + es2022: true +extends: eslint:recommended +parserOptions: + sourceType: module +rules: + eqeqeq: + - warn + - always + indent: + - warn + - 4 + no-control-regex: off + no-empty: off + sort-imports: warn + strict: warn +globals: + browser: readonly + chrome: readonly + webext: readonly + vAPI: readonly