Skip to content

Commit

Permalink
Use eslint instead of jshint
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
gorhill committed Mar 17, 2024
1 parent 42dfdfe commit 36f81be
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 36f81be

Please sign in to comment.