2026-04-13 23:46:46 -04:00
|
|
|
{
|
2026-11-22 13:37:23 -05:00
|
|
|
"env": {
|
|
|
|
|
"node": true,
|
|
|
|
|
"es2021": true
|
|
|
|
|
},
|
2026-11-22 23:45:35 -05:00
|
|
|
"extends": [
|
|
|
|
|
"eslint:recommended",
|
|
|
|
|
"plugin:security/recommended-legacy"
|
|
|
|
|
],
|
2026-11-22 13:37:23 -05:00
|
|
|
"parserOptions": {
|
|
|
|
|
"ecmaVersion": 2021,
|
|
|
|
|
"sourceType": "commonjs"
|
|
|
|
|
},
|
2026-04-13 23:46:46 -04:00
|
|
|
"rules": {
|
2026-11-22 13:37:23 -05:00
|
|
|
"semi": [
|
|
|
|
|
"error",
|
|
|
|
|
"always"
|
|
|
|
|
],
|
2026-11-22 20:04:02 -05:00
|
|
|
"no-unused-vars": [
|
|
|
|
|
"error",
|
|
|
|
|
{
|
|
|
|
|
"args": "after-used",
|
|
|
|
|
"argsIgnorePattern": "^_",
|
|
|
|
|
"caughtErrors": "none"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"no-empty": [
|
|
|
|
|
"error",
|
|
|
|
|
{
|
|
|
|
|
"allowEmptyCatch": true
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"no-constant-condition": [
|
|
|
|
|
"error",
|
|
|
|
|
{
|
|
|
|
|
"checkLoops": false
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"no-useless-escape": "error",
|
|
|
|
|
"eqeqeq": [
|
|
|
|
|
"error",
|
|
|
|
|
"always",
|
|
|
|
|
{
|
|
|
|
|
"null": "ignore"
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"prefer-const": "error",
|
|
|
|
|
"curly": [
|
|
|
|
|
"error",
|
|
|
|
|
"multi-line"
|
|
|
|
|
],
|
|
|
|
|
"no-eval": "error",
|
|
|
|
|
"no-implied-eval": "error",
|
|
|
|
|
"no-new-func": "error",
|
|
|
|
|
"no-throw-literal": "error",
|
|
|
|
|
"no-useless-catch": "error",
|
|
|
|
|
"no-prototype-builtins": "error",
|
|
|
|
|
"no-shadow": [
|
|
|
|
|
"error",
|
|
|
|
|
{
|
|
|
|
|
"builtinGlobals": false
|
|
|
|
|
}
|
|
|
|
|
],
|
|
|
|
|
"no-unused-expressions": [
|
|
|
|
|
"error",
|
|
|
|
|
{
|
|
|
|
|
"allowShortCircuit": true,
|
|
|
|
|
"allowTernary": true
|
|
|
|
|
}
|
2026-11-22 23:45:35 -05:00
|
|
|
],
|
|
|
|
|
"security/detect-object-injection": "off"
|
2026-11-22 13:37:23 -05:00
|
|
|
},
|
|
|
|
|
"overrides": [
|
|
|
|
|
{
|
|
|
|
|
"files": [
|
|
|
|
|
"tests/ui/**/*.js"
|
|
|
|
|
],
|
|
|
|
|
"env": {
|
|
|
|
|
"browser": true,
|
|
|
|
|
"node": true
|
|
|
|
|
}
|
2026-11-22 23:45:35 -05:00
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
"files": [
|
|
|
|
|
"scripts/**/*.js",
|
|
|
|
|
"tests/**/*.js"
|
|
|
|
|
],
|
|
|
|
|
"rules": {
|
|
|
|
|
"security/detect-non-literal-fs-filename": "off",
|
|
|
|
|
"security/detect-non-literal-regexp": "off",
|
|
|
|
|
"security/detect-unsafe-regex": "off",
|
|
|
|
|
"security/detect-child-process": "off"
|
|
|
|
|
}
|
2026-11-22 13:37:23 -05:00
|
|
|
}
|
|
|
|
|
]
|
2026-04-13 23:46:46 -04:00
|
|
|
}
|