1
0
mirror of https://github.com/gorhill/uBlock.git synced 2024-11-26 04:12:50 +01:00
uBlock/platform/npm/.eslintrc.json
2021-08-15 11:13:13 -04:00

39 lines
1.0 KiB
JSON

{
"root": true,
"env": {
"es2021": true,
"node": true
},
"extends": "eslint:recommended",
"parserOptions": {
"ecmaVersion": 12,
"sourceType": "module"
},
"rules": {
"eqeqeq": [ "warn", "always" ],
"indent": [
"warn",
4,
{
"ArrayExpression": "first",
"CallExpression": { "arguments": "first" },
"MemberExpression": "off",
"ObjectExpression": "off",
"ignoreComments": true,
"ignoredNodes": [
"AssignmentExpression:has(Literal)"
]
}
],
"getter-return": "off",
"no-control-regex": "off",
"no-empty": [ "error", { "allowEmptyCatch": true } ],
"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" ]
}
}