mirror of
https://github.com/gorhill/uBlock.git
synced 2024-10-06 01:27:12 +02:00
36f81be13b
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.
23 lines
358 B
YAML
23 lines
358 B
YAML
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
|