Skip to content

Commit

Permalink
feat: update eslint-plugin-vue & vue-eslint-parser + update confi…
Browse files Browse the repository at this point in the history
…gs (#26)

BREAKING CHANGE: `es5`, `es2015`, `es2016`, `es2017`, `es2018`, `es2019`, `es2020`, `es2021` & `es2022` configs now have extra rules from `eslint-plugin-vue`
  • Loading branch information
MichaelDeBoey authored Oct 18, 2022
1 parent ba982b6 commit 3437db4
Show file tree
Hide file tree
Showing 2 changed files with 34 additions and 11 deletions.
41 changes: 32 additions & 9 deletions lib/configs/_override-vue.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,22 @@ module.exports = {
"error",
"@eslint-community/mysticatea/vue/component-name-in-template-casing":
["error", "kebab-case"],
"@eslint-community/mysticatea/vue/component-options-name-casing":
"error",
"@eslint-community/mysticatea/vue/component-tags-order":
"error",
"@eslint-community/mysticatea/vue/custom-event-name-casing":
"error",
"@eslint-community/mysticatea/vue/define-macros-order": "error",
"@eslint-community/mysticatea/vue/dot-location": "error",
"@eslint-community/mysticatea/vue/dot-notation": "error",
"@eslint-community/mysticatea/vue/eqeqeq": [
"error",
"always",
{ null: "ignore" },
],
"@eslint-community/mysticatea/vue/first-attribute-linebreak":
"error",
"@eslint-community/mysticatea/vue/func-call-spacing": "error",
"@eslint-community/mysticatea/vue/html-button-has-type":
"error",
Expand All @@ -80,15 +85,11 @@ module.exports = {
"@eslint-community/mysticatea/vue/keyword-spacing": "error",
"@eslint-community/mysticatea/vue/match-component-file-name":
"error",
"@eslint-community/mysticatea/vue/match-component-import-name":
"error",
"@eslint-community/mysticatea/vue/max-attributes-per-line": [
"error",
{
singleline: 3,
multiline: {
max: 1,
allowFirstLine: false,
},
},
{ multiline: 1, singleline: 3 },
],
"@eslint-community/mysticatea/vue/max-len": [
"error",
Expand All @@ -110,6 +111,7 @@ module.exports = {
"@eslint-community/mysticatea/vue/no-bare-strings-in-template":
"error",
"@eslint-community/mysticatea/vue/no-boolean-default": "error",
"@eslint-community/mysticatea/vue/no-child-content": "error",
"@eslint-community/mysticatea/vue/no-computed-properties-in-data":
"error",
"@eslint-community/mysticatea/vue/no-constant-condition":
Expand Down Expand Up @@ -164,6 +166,8 @@ module.exports = {
"@eslint-community/mysticatea/vue/no-empty-pattern": "error",
"@eslint-community/mysticatea/vue/no-export-in-script-setup":
"error",
"@eslint-community/mysticatea/vue/no-expose-after-await":
"error",
"@eslint-community/mysticatea/vue/no-extra-parens": "error",
"@eslint-community/mysticatea/vue/no-invalid-model-keys":
"error",
Expand All @@ -172,6 +176,7 @@ module.exports = {
"@eslint-community/mysticatea/vue/no-lifecycle-after-await":
"error",
"@eslint-community/mysticatea/vue/no-lone-template": "error",
"@eslint-community/mysticatea/vue/no-loss-of-precision": "off", // requires ESLint v7.1
"@eslint-community/mysticatea/vue/no-multiple-objects-in-class":
"error",
"@eslint-community/mysticatea/vue/no-multiple-slot-args":
Expand All @@ -187,6 +192,7 @@ module.exports = {
"@eslint-community/mysticatea/vue/no-reserved-component-names":
"error",
"@eslint-community/mysticatea/vue/no-reserved-keys": "error",
"@eslint-community/mysticatea/vue/no-reserved-props": "error",
"@eslint-community/mysticatea/vue/no-restricted-block": "error",
"@eslint-community/mysticatea/vue/no-restricted-call-after-await":
"error",
Expand All @@ -195,6 +201,8 @@ module.exports = {
"error",
"@eslint-community/mysticatea/vue/no-restricted-custom-event":
"error",
"@eslint-community/mysticatea/vue/no-restricted-html-elements":
"error",
"@eslint-community/mysticatea/vue/no-restricted-props": "error",
"@eslint-community/mysticatea/vue/no-restricted-static-attribute":
"error",
Expand All @@ -219,9 +227,8 @@ module.exports = {
"error",
"@eslint-community/mysticatea/vue/no-this-in-before-route-enter":
"error",
"@eslint-community/mysticatea/vue/no-undef-components": "error",
"@eslint-community/mysticatea/vue/no-undef-properties": "error",
"@eslint-community/mysticatea/vue/no-unregistered-components":
"error",
"@eslint-community/mysticatea/vue/no-unsupported-features":
"error",
"@eslint-community/mysticatea/vue/no-unused-components":
Expand All @@ -247,6 +254,8 @@ module.exports = {
"@eslint-community/mysticatea/vue/no-v-html": "error",
"@eslint-community/mysticatea/vue/no-v-model-argument": "error",
"@eslint-community/mysticatea/vue/no-v-text": "error",
"@eslint-community/mysticatea/vue/no-v-text-v-html-on-component":
"error",
"@eslint-community/mysticatea/vue/no-watch-after-await":
"error",
"@eslint-community/mysticatea/vue/object-curly-newline":
Expand All @@ -257,13 +266,26 @@ module.exports = {
],
"@eslint-community/mysticatea/vue/object-property-newline":
"error",
"@eslint-community/mysticatea/vue/object-shorthand": [
"error",
"always",
{ avoidExplicitReturnArrows: true },
],
"@eslint-community/mysticatea/vue/one-component-per-file":
"error",
"@eslint-community/mysticatea/vue/operator-linebreak": "error",
"@eslint-community/mysticatea/vue/order-in-components": "error",
"@eslint-community/mysticatea/vue/padding-line-between-blocks":
"error",
"@eslint-community/mysticatea/vue/prefer-import-from-vue":
"error",
"@eslint-community/mysticatea/vue/prefer-prop-type-boolean-first":
"error",
"@eslint-community/mysticatea/vue/prefer-separate-static-class":
"error",
"@eslint-community/mysticatea/vue/prefer-template": "error",
"@eslint-community/mysticatea/vue/prefer-true-attribute-shorthand":
"error",
"@eslint-community/mysticatea/vue/prop-name-casing": "error",
"@eslint-community/mysticatea/vue/require-component-is":
"error",
Expand Down Expand Up @@ -340,6 +362,7 @@ module.exports = {

// Disabled rules (prefer prettier)
"@eslint-community/mysticatea/vue/no-restricted-syntax": "off",
"@eslint-community/mysticatea/vue/quote-props": "off",
"@eslint-community/mysticatea/vue/script-indent": "off",
},
},
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@
"eslint-plugin-eslint-plugin": "^4.4.1",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-prettier": "^3.4.1",
"eslint-plugin-vue": "^7.20.0",
"eslint-plugin-vue": "^8.7.1",
"prettier": "^2.7.1",
"vue-eslint-parser": "^7.11.0"
"vue-eslint-parser": "^8.3.0"
},
"devDependencies": {
"@eslint-community/eslint-plugin-mysticatea": "file:.",
Expand Down

0 comments on commit 3437db4

Please sign in to comment.