mirror of https://github.com/Hypfer/Valetudo.git
89 lines
1.4 KiB
JSON
89 lines
1.4 KiB
JSON
{
|
|
"overrides": [
|
|
{
|
|
"files": [
|
|
"lib/**/index.js"
|
|
],
|
|
"rules": {
|
|
"sort-keys-fix/sort-keys-fix": "warn"
|
|
}
|
|
},
|
|
{
|
|
"files": [
|
|
"index.js",
|
|
"lib/**/*.js",
|
|
"util/**/*.js"
|
|
],
|
|
"parserOptions": {
|
|
"ecmaVersion": 2021
|
|
},
|
|
"extends": [
|
|
"eslint:recommended",
|
|
"plugin:node/recommended"
|
|
],
|
|
"rules": {
|
|
"no-process-exit": "off",
|
|
"node/no-process-exit": "off"
|
|
}
|
|
}
|
|
],
|
|
"rules": {
|
|
"brace-style": [
|
|
"error",
|
|
"1tbs"
|
|
],
|
|
"no-trailing-spaces": [
|
|
"error",
|
|
{
|
|
"ignoreComments": true
|
|
}
|
|
],
|
|
"keyword-spacing": "error",
|
|
"eol-last": [
|
|
"error",
|
|
"always"
|
|
],
|
|
"no-multi-spaces": [
|
|
"error",
|
|
{
|
|
"ignoreEOLComments": true
|
|
}
|
|
],
|
|
"semi": [
|
|
"error",
|
|
"always"
|
|
],
|
|
"quotes": [
|
|
"error",
|
|
"double"
|
|
],
|
|
"indent": [
|
|
"error",
|
|
4,
|
|
{
|
|
"SwitchCase": 1
|
|
}
|
|
],
|
|
"no-empty": "error",
|
|
"no-magic-numbers": [
|
|
"error",
|
|
{
|
|
"ignoreArrayIndexes": true,
|
|
"ignore": [
|
|
-1,
|
|
0,
|
|
1,
|
|
200,
|
|
400,
|
|
404,
|
|
500,
|
|
16,
|
|
60,
|
|
10,
|
|
1000,
|
|
1024
|
|
]
|
|
}
|
|
]
|
|
}
|
|
} |