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 87a2c77
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 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
12 changes: 9 additions & 3 deletions configs/vue3.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module.exports = {
env: {
browser: true,
browser: true,
node: true,
},
extends: [
Expand All @@ -14,7 +14,7 @@ module.exports = {
'plugin:@typescript-eslint/recommended',
],
parser: 'vue-eslint-parser',

// TS parser settings
parserOptions: {
parser: '@typescript-eslint/parser',
Expand All @@ -30,7 +30,7 @@ module.exports = {

// Our Vue custom rules
'vue/html-self-closing': [
'error',
'error',
{
html: {
void: 'always',
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 87a2c77

Please sign in to comment.