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.
This commit is contained in:
Raymond Hill 2024-03-17 09:44:00 -04:00
parent 42dfdfea5d
commit 36f81be13b
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with 22 additions and 0 deletions

22
.eslintrc.yml Normal file
View File

@ -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