diff --git a/eslint.config.mjs b/eslint.config.mjs index 34169498b0..89a9ef6050 100644 --- a/eslint.config.mjs +++ b/eslint.config.mjs @@ -114,7 +114,7 @@ export default [ "@typescript-eslint/no-shadow": ["error"], "@typescript-eslint/naming-convention": [ - "warn", + "error", { selector: ["objectLiteralProperty", "objectLiteralMethod"], format: null, @@ -162,16 +162,16 @@ export default [ ], "unused-imports/no-unused-imports": "error", - "lit/attribute-names": "warn", + "lit/attribute-names": "error", "lit/attribute-value-entities": "off", "lit/no-template-map": "off", - "lit/no-native-attributes": "warn", - "lit/no-this-assign-in-render": "warn", + "lit/no-native-attributes": "error", + "lit/no-this-assign-in-render": "error", "lit-a11y/click-events-have-key-events": ["off"], "lit-a11y/no-autofocus": "off", - "lit-a11y/alt-text": "warn", - "lit-a11y/anchor-is-valid": "warn", - "lit-a11y/role-has-required-aria-attrs": "warn", + "lit-a11y/alt-text": "error", + "lit-a11y/anchor-is-valid": "error", + "lit-a11y/role-has-required-aria-attrs": "error", "@typescript-eslint/consistent-type-imports": "error", "@typescript-eslint/no-import-type-side-effects": "error", }, diff --git a/package.json b/package.json index dcda881b56..fcc47e2017 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ "version": "1.0.0", "scripts": { "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", "lint:prettier": "prettier . --cache --check", "format:prettier": "prettier . --cache --write",