mirror of https://github.com/gorhill/uBlock.git
Add ESLint rules for possible errors (#3804)
This commit is contained in:
parent
85c68116bd
commit
543e1a3aea
|
@ -9,6 +9,7 @@
|
||||||
"sourceType": "module"
|
"sourceType": "module"
|
||||||
},
|
},
|
||||||
"rules": {
|
"rules": {
|
||||||
|
"eqeqeq": [ "warn", "always" ],
|
||||||
"indent": [
|
"indent": [
|
||||||
"warn",
|
"warn",
|
||||||
4,
|
4,
|
||||||
|
@ -26,6 +27,11 @@
|
||||||
"getter-return": "off",
|
"getter-return": "off",
|
||||||
"no-control-regex": "off",
|
"no-control-regex": "off",
|
||||||
"no-empty": [ "error", { "allowEmptyCatch": true } ],
|
"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