Skip to content

Commit

Permalink
re-add vue3 tag order rule
Browse files Browse the repository at this point in the history
  • Loading branch information
Sabir el Yahiaoui committed Feb 1, 2024
1 parent 568f555 commit 3b8a8fe
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion configs/javascript.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
/**
* The configuration for basic JS files without the use of a framework.
* Just has the recommended eslint and prettier rules
* */
**/

module.exports = {
env: {
browser: true,
Expand Down
2 changes: 1 addition & 1 deletion configs/vue2.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ module.exports = {
// Standard JS rules
'eslint:recommended',
'prettier',

// Vue2 rules
'plugin:vue/recommended',
'plugin:vuejs-accessibility/recommended',
Expand Down
8 changes: 7 additions & 1 deletion configs/vue3.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = {
'plugin:@typescript-eslint/recommended',
],
parser: 'vue-eslint-parser',

// TS parser settings
parserOptions: {
parser: '@typescript-eslint/parser',
Expand All @@ -40,5 +40,11 @@ module.exports = {
'vue/html-closing-bracket-spacing': 'error',
'vue/no-empty-component-block': 'error',
'vue/html-button-has-type': 'warn',
'vue/component-tags-order': [
'error',
{
order: ['script', 'template', 'style'],
},
],
},
}

0 comments on commit 3b8a8fe

Please sign in to comment.