diff --git a/client/.eslintrc.json b/client/.eslintrc.json index 0e80322c5d3..9d3637dcf86 100644 --- a/client/.eslintrc.json +++ b/client/.eslintrc.json @@ -24,16 +24,20 @@ "vue/valid-v-slot": "error", "vue/v-slot-style": ["error", { "atComponent": "v-slot", "default": "v-slot", "named": "longform" }], - // vue/multi-word-component names is considered an error, that we - // downgrade to a warning here. It should be prioritized to get fixed - // and compliant. - // TODO: We want to fix or add inline exceptions documenting these. + // Downgrade the severity of some rules to warnings as a transition measure. + // For example, vue/multi-word-component names is considered an error, + // but that kind of refactoring is best done slowly, one bit at a time + // as those components are touched. "vue/multi-word-component-names": "warn", "vue/prop-name-casing": "warn", "vue/require-prop-types": "warn", "vue/require-default-prop": "warn", "vue/no-v-html": "warn", + // Increase the severity of some rules to errors + "vue/attributes-order": "error", + "vue/order-in-components": "error", + // Prettier compromises/workarounds -- mostly #wontfix? "vue/html-indent": "off", "vue/max-attributes-per-line": "off", diff --git a/client/package.json b/client/package.json index 90d681117fa..0e56c46fbe0 100644 --- a/client/package.json +++ b/client/package.json @@ -148,10 +148,10 @@ "css-loader": "^6.7.1", "css-minimizer-webpack-plugin": "^4.0.0", "del": "^6.0.0", - "eslint": "^8.20.0", + "eslint": "^8.27.0", "eslint-plugin-compat": "^4.0.2", - "eslint-plugin-vue": "^9.3.0", - "eslint-plugin-vuejs-accessibility": "^1.2.0", + "eslint-plugin-vue": "^9.7.0", + "eslint-plugin-vuejs-accessibility": "^2.0.0", "expose-loader": "^4.0.0", "gulp": "^4.0.2", "ignore-loader": "^0.1.2", diff --git a/client/src/components/Collections/common/ChangeDatatypeTab.vue b/client/src/components/Collections/common/ChangeDatatypeTab.vue index c547c2daf28..c6d2c2d22d6 100644 --- a/client/src/components/Collections/common/ChangeDatatypeTab.vue +++ b/client/src/components/Collections/common/ChangeDatatypeTab.vue @@ -13,8 +13,8 @@ {{ l("New Type") }}: {{ l("Database/Build") }}: diff --git a/client/src/components/DatasetInformation/DatasetAttributes.vue b/client/src/components/DatasetInformation/DatasetAttributes.vue index a0ba1641290..dd942966dd0 100644 --- a/client/src/components/DatasetInformation/DatasetAttributes.vue +++ b/client/src/components/DatasetInformation/DatasetAttributes.vue @@ -1,6 +1,6 @@