refactor: Add a few lint rules to test files in /spec (#9815)

This commit is contained in:
Manuel
2025-07-04 20:24:08 +02:00
committed by GitHub
parent 207d241b39
commit 2c29756038
9 changed files with 57 additions and 49 deletions

View File

@@ -48,10 +48,20 @@ module.exports = [
},
},
rules: {
"no-console": "off",
"no-var": "error",
"no-unused-vars": "off",
indent: ["error", 2, { SwitchCase: 1 }],
"linebreak-style": ["error", "unix"],
"no-trailing-spaces": "error",
"eol-last": "error",
"space-in-parens": ["error", "never"],
"no-multiple-empty-lines": "warn",
"prefer-const": "error",
"space-infix-ops": "error",
"no-useless-escape": "off",
}
"require-atomic-updates": "off",
"object-curly-spacing": ["error", "always"],
curly: ["error", "all"],
"block-spacing": ["error", "always"],
"no-unused-vars": "off",
},
},
];