mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-10 01:02:08 +01:00
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
1 changed files with 22 additions and 0 deletions
22
.eslintrc.yml
Normal file
22
.eslintrc.yml
Normal 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
|
Loading…
Reference in a new issue