Don't allow any more eslint warnings (#23181)

This commit is contained in:
Petar Petrov 2024-12-06 15:58:04 +02:00 committed by GitHub
parent 400ddbf625
commit 8579bee053
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 8 additions and 8 deletions

View File

@ -114,7 +114,7 @@ export default [
"@typescript-eslint/no-shadow": ["error"], "@typescript-eslint/no-shadow": ["error"],
"@typescript-eslint/naming-convention": [ "@typescript-eslint/naming-convention": [
"warn", "error",
{ {
selector: ["objectLiteralProperty", "objectLiteralMethod"], selector: ["objectLiteralProperty", "objectLiteralMethod"],
format: null, format: null,
@ -162,16 +162,16 @@ export default [
], ],
"unused-imports/no-unused-imports": "error", "unused-imports/no-unused-imports": "error",
"lit/attribute-names": "warn", "lit/attribute-names": "error",
"lit/attribute-value-entities": "off", "lit/attribute-value-entities": "off",
"lit/no-template-map": "off", "lit/no-template-map": "off",
"lit/no-native-attributes": "warn", "lit/no-native-attributes": "error",
"lit/no-this-assign-in-render": "warn", "lit/no-this-assign-in-render": "error",
"lit-a11y/click-events-have-key-events": ["off"], "lit-a11y/click-events-have-key-events": ["off"],
"lit-a11y/no-autofocus": "off", "lit-a11y/no-autofocus": "off",
"lit-a11y/alt-text": "warn", "lit-a11y/alt-text": "error",
"lit-a11y/anchor-is-valid": "warn", "lit-a11y/anchor-is-valid": "error",
"lit-a11y/role-has-required-aria-attrs": "warn", "lit-a11y/role-has-required-aria-attrs": "error",
"@typescript-eslint/consistent-type-imports": "error", "@typescript-eslint/consistent-type-imports": "error",
"@typescript-eslint/no-import-type-side-effects": "error", "@typescript-eslint/no-import-type-side-effects": "error",
}, },

View File

@ -8,7 +8,7 @@
"version": "1.0.0", "version": "1.0.0",
"scripts": { "scripts": {
"build": "script/build_frontend", "build": "script/build_frontend",
"lint:eslint": "eslint --flag unstable_config_lookup_from_file \"**/src/**/*.{js,ts,html}\" --cache --cache-strategy=content --cache-location=node_modules/.cache/eslint/.eslintcache --ignore-pattern=.gitignore", "lint:eslint": "eslint --flag unstable_config_lookup_from_file \"**/src/**/*.{js,ts,html}\" --cache --cache-strategy=content --cache-location=node_modules/.cache/eslint/.eslintcache --ignore-pattern=.gitignore --max-warnings=0",
"format:eslint": "eslint --flag unstable_config_lookup_from_file \"**/src/**/*.{js,ts,html}\" --cache --cache-strategy=content --cache-location=node_modules/.cache/eslint/.eslintcache --ignore-pattern=.gitignore --fix", "format:eslint": "eslint --flag unstable_config_lookup_from_file \"**/src/**/*.{js,ts,html}\" --cache --cache-strategy=content --cache-location=node_modules/.cache/eslint/.eslintcache --ignore-pattern=.gitignore --fix",
"lint:prettier": "prettier . --cache --check", "lint:prettier": "prettier . --cache --check",
"format:prettier": "prettier . --cache --write", "format:prettier": "prettier . --cache --write",