Skip to content

Openverse is a search engine for openly-licensed media. This monorepo includes all application code.

Upgrade all warnings to errors that we control (#1282)

sarayourfriendfbe943b56826
diff --git a/.eslintrc.js b/.eslintrc.js
index b22e46699..b1f41f50c 100644
--- a/.eslintrc.js
+++ b/.eslintrc.js
@@ -69,9 +69,9 @@ module.exports = {
math: 'always',
},
],
- 'vuejs-accessibility/aria-role': 'warn',
+ 'vuejs-accessibility/aria-role': 'error',
'vuejs-accessibility/label-has-for': [
- 'warn',
+ 'error',
{ required: { some: ['nesting', 'id'] } },
],
/**
@@ -96,7 +96,6 @@ module.exports = {
],
'no-restricted-syntax': ['error', ...i18nDestructureRules],
'unicorn/filename-case': ['error', { case: 'kebabCase' }],
- '@typescript-eslint/ban-ts-comment': ['warn'],
'@typescript-eslint/no-var-requires': ['off'],
'import/no-unresolved': [
'error',
@@ -180,7 +179,7 @@ module.exports = {
{
files: ['*.ts'],
rules: {
- 'tsdoc/syntax': 'warn',
+ 'tsdoc/syntax': 'error',
},
},
{
diff --git a/.lintstagedrc b/.lintstagedrc
index 69da8a390..e3b19610d 100644
--- a/.lintstagedrc
+++ b/.lintstagedrc
@@ -1,6 +1,6 @@
{
"*.{ts,js,vue}": [
- "eslint --fix"
+ "eslint --fix --max-warnings=0"
],
"*.{ts,js,vue,json,yml,yaml,mdx,md}": [
"prettier --write"
diff --git a/.storybook/.eslintrc.js b/.storybook/.eslintrc.js
index 1b0452dac..7343f3a84 100644
--- a/.storybook/.eslintrc.js
+++ b/.storybook/.eslintrc.js
@@ -11,6 +11,7 @@
* directory.
*/
module.exports = {
+ extends: '../.eslintrc.js',
rules: {
'import/extensions': 'off',
'import/export': 'off',