121 lines
2.5 KiB
JSON
121 lines
2.5 KiB
JSON
{
|
|
"env": {
|
|
"browser": true,
|
|
"es2022": true
|
|
},
|
|
"extends": [
|
|
"eslint:recommended"
|
|
],
|
|
"parserOptions": {
|
|
"ecmaVersion": "latest",
|
|
"sourceType": "module"
|
|
},
|
|
"globals": {
|
|
"app": "readonly",
|
|
"LiteGraph": "readonly",
|
|
"LGraphCanvas": "readonly",
|
|
"LGraphNode": "readonly",
|
|
"LiteGraph": "readonly",
|
|
"globalThis": "readonly"
|
|
},
|
|
"rules": {
|
|
"no-unused-vars": [
|
|
"warn",
|
|
{
|
|
"argsIgnorePattern": "^_"
|
|
}
|
|
],
|
|
"no-console": [
|
|
"warn",
|
|
{
|
|
"allow": [
|
|
"warn",
|
|
"error",
|
|
"info"
|
|
]
|
|
}
|
|
],
|
|
"prefer-const": "warn",
|
|
"no-var": "warn",
|
|
"semi": [
|
|
"warn",
|
|
"always"
|
|
],
|
|
"quotes": [
|
|
"warn",
|
|
"double"
|
|
],
|
|
"indent": [
|
|
"warn",
|
|
2,
|
|
{
|
|
"SwitchCase": 1
|
|
}
|
|
],
|
|
"max-len": [
|
|
"warn",
|
|
{
|
|
"code": 120,
|
|
"ignoreComments": true,
|
|
"ignoreStrings": true
|
|
}
|
|
],
|
|
"camelcase": [
|
|
"warn",
|
|
{
|
|
"properties": "never"
|
|
}
|
|
],
|
|
"no-undef": "error",
|
|
"eqeqeq": [
|
|
"warn",
|
|
"always"
|
|
],
|
|
"curly": [
|
|
"warn",
|
|
"all"
|
|
],
|
|
"brace-style": [
|
|
"warn",
|
|
"1tbs"
|
|
],
|
|
"comma-dangle": [
|
|
"warn",
|
|
"never"
|
|
],
|
|
"comma-spacing": [
|
|
"warn",
|
|
{
|
|
"before": false,
|
|
"after": true
|
|
}
|
|
],
|
|
"no-trailing-spaces": "warn",
|
|
"no-duplicate-imports": "error",
|
|
"no-multiple-empty-lines": [
|
|
"warn",
|
|
{
|
|
"max": 2,
|
|
"maxEOF": 1
|
|
}
|
|
],
|
|
"object-curly-spacing": [
|
|
"warn",
|
|
"always"
|
|
],
|
|
"space-before-function-paren": [
|
|
"warn",
|
|
{
|
|
"anonymous": "always",
|
|
"named": "never",
|
|
"asyncArrow": "always"
|
|
}
|
|
],
|
|
"space-before-blocks": [
|
|
"warn",
|
|
"always"
|
|
],
|
|
"space-infix-ops": "warn"
|
|
}
|
|
}
|