mirror of https://github.com/gorhill/uBlock.git
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:
parent
42dfdfea5d
commit
36f81be13b
|
@ -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
|
Loading…
Reference in New Issue