Files
pulse/.eslintrc.json
T

96 lines
2.2 KiB
JSON
Raw Normal View History

{
"env": {
"node": true,
"es2021": true
},
"extends": [
"eslint:recommended",
"plugin:security/recommended-legacy"
],
"parserOptions": {
"ecmaVersion": 2021,
"sourceType": "commonjs"
},
"rules": {
"semi": [
"error",
"always"
],
"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
}
],
"security/detect-object-injection": "off"
},
"overrides": [
{
"files": [
"tests/ui/**/*.js"
],
"env": {
"browser": true,
"node": true
}
},
{
"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"
}
}
]
}