mirror of
https://github.com/gorhill/uBlock.git
synced 2024-11-20 01:12:38 +01:00
Add ESLint rules for possible errors (#3804)
This commit is contained in:
parent
85c68116bd
commit
543e1a3aea
@ -9,6 +9,7 @@
|
||||
"sourceType": "module"
|
||||
},
|
||||
"rules": {
|
||||
"eqeqeq": [ "warn", "always" ],
|
||||
"indent": [
|
||||
"warn",
|
||||
4,
|
||||
@ -26,6 +27,11 @@
|
||||
"getter-return": "off",
|
||||
"no-control-regex": "off",
|
||||
"no-empty": [ "error", { "allowEmptyCatch": true } ],
|
||||
"no-useless-escape": "off"
|
||||
"no-promise-executor-return": [ "error" ],
|
||||
"no-template-curly-in-string": [ "error" ],
|
||||
"no-unreachable-loop": [ "error" ],
|
||||
"no-useless-backreference": [ "error" ],
|
||||
"no-useless-escape": "off",
|
||||
"require-atomic-updates": [ "warn" ]
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user