diff --git a/.eslintrc.js b/.eslintrc.js index b8f0dc0..9407c14 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -8,31 +8,31 @@ module.exports = { extends: [ 'standard', 'eslint:recommended', - '@nuxtjs/eslint-config-typescript', - 'plugin:cypress/recommended' + 'plugin:cypress/recommended', + 'plugin:vue/vue3-recommended', ], // add your custom rules here rules: { - 'dot-notation': 'off', - 'generator-star-spacing': 'off', - 'guard-for-in': 'off', - 'linebreak-style': 'off', - 'new-cap': 'off', - 'no-empty': 'off', - 'no-extra-boolean-cast': 'off', - 'no-new': 'off', - 'no-plusplus': 'off', - 'no-useless-escape': 'off', - 'nuxt/no-cjs-in-config': 'off', - 'semi-spacing': 'off', - 'space-in-parens': 'off', - strict: 'off', - 'unicorn/no-new-buffer': 'off', - 'vue/html-self-closing': 'off', - 'vue/no-unused-components': 'warn', - 'vue/no-v-html': 'off', - 'wrap-iife': 'off', - 'vue/no-v-for-template-key': 'off', + 'dot-notation': 'off', + 'generator-star-spacing': 'off', + 'guard-for-in': 'off', + 'linebreak-style': 'off', + 'new-cap': 'off', + 'no-empty': 'off', + 'no-extra-boolean-cast': 'off', + 'no-new': 'off', + 'no-plusplus': 'off', + 'no-useless-escape': 'off', + 'nuxt/no-cjs-in-config': 'off', + 'semi-spacing': 'off', + 'space-in-parens': 'off', + strict: 'off', + 'unicorn/no-new-buffer': 'off', + 'vue/html-self-closing': 'off', + 'vue/no-unused-components': 'warn', + 'vue/no-v-html': 'off', + 'wrap-iife': 'off', + 'vue/no-v-for-template-key': 'off', 'array-bracket-spacing': 'warn', 'arrow-parens': 'warn', 'arrow-spacing': ['warn', { before: true, after: true }], diff --git a/package.json b/package.json index 801cc12..58b2e7e 100644 --- a/package.json +++ b/package.json @@ -10,12 +10,12 @@ "@rancher/components": "^0.3.0-alpha.1", "@rancher/shell": "3.0.0", "@types/lodash": "4.14.196", - "core-js": "3.21.1", - "css-loader": "6.7.3", - "node-polyfill-webpack-plugin": "^3.0.0", "cache-loader": "^4.1.0", "color": "4.2.3", - "ip": "2.0.1" + "core-js": "3.21.1", + "css-loader": "6.7.3", + "ip": "2.0.1", + "node-polyfill-webpack-plugin": "^3.0.0" }, "resolutions": { "**/webpack": "5", @@ -31,5 +31,13 @@ "publish-pkgs": "./node_modules/@rancher/shell/scripts/extension/publish", "parse-tag-name": "./node_modules/@rancher/shell/scripts/extension/parse-tag-name", "migrate": "node ./scrips/vue-migrate.js" + }, + "devDependencies": { + "eslint-plugin-cypress": "2.12.1", + "eslint-plugin-import": "2.23.4", + "eslint-plugin-jest": "24.4.0", + "eslint-plugin-node": "11.1.0", + "eslint-plugin-promise": "7.2.1", + "eslint-plugin-vue": "9.10.0" } } diff --git a/pkg/capi/components/AutoImport.vue b/pkg/capi/components/AutoImport.vue index 2e55f61..97434cd 100644 --- a/pkg/capi/components/AutoImport.vue +++ b/pkg/capi/components/AutoImport.vue @@ -1,9 +1,8 @@