mirror of
https://github.com/gorhill/uBlock.git
synced 2024-07-08 12:57:57 +02:00
* Fix ESLint indentation warnings * Undo code reformatting within parentheses * Add exception for logical expressions * Update array expression rule * Disable rule for reProceduralOperator assignment * Fix indentation in static-filtering-parser.js
33 lines
804 B
JSON
33 lines
804 B
JSON
{
|
|
"env": {
|
|
"es2021": true,
|
|
"node": true
|
|
},
|
|
"extends": "eslint:recommended",
|
|
"parserOptions": {
|
|
"ecmaVersion": 12,
|
|
"sourceType": "module"
|
|
},
|
|
"rules": {
|
|
"indent": [
|
|
"warn",
|
|
4,
|
|
{
|
|
"ArrayExpression": "first",
|
|
"CallExpression": { "arguments": "first" },
|
|
"MemberExpression": "off",
|
|
"ObjectExpression": "off",
|
|
"ignoreComments": true,
|
|
"ignoredNodes": [
|
|
"AssignmentExpression:has(Literal)",
|
|
"LogicalExpression"
|
|
]
|
|
}
|
|
],
|
|
"getter-return": "off",
|
|
"no-control-regex": "off",
|
|
"no-empty": [ "error", { "allowEmptyCatch": true } ],
|
|
"no-useless-escape": "off"
|
|
}
|
|
}
|