ci: changed eslint config

This commit is contained in:
Slincnik 2025-01-14 22:48:11 +03:00
parent 4c8c068245
commit 2eab0d541e
No known key found for this signature in database

View file

@ -21,14 +21,8 @@ export default [
"@stylistic/js": stylisticJs, "@stylistic/js": stylisticJs,
}, },
rules: { rules: {
"no-unused-vars": [ "no-unused-vars": "off",
"error", "@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_", varsIgnorePattern: "^_", caughtErrorsIgnorePattern: "^_" }],
{
argsIgnorePattern: "^_", // Игнорировать переменные, начинающиеся с _
varsIgnorePattern: "^_", // Игнорировать переменные, начинающиеся с _
ignoreRestSiblings: true, // Игнорировать неиспользуемые параметры в деструктуризации
},
],
"arrow-body-style": ["error", "as-needed"], "arrow-body-style": ["error", "as-needed"],
camelcase: "error", camelcase: "error",
curly: ["error", "multi-line"], curly: ["error", "multi-line"],