diff --git a/configs/javascript.js b/configs/javascript.js index 153c1a9..1e69c62 100644 --- a/configs/javascript.js +++ b/configs/javascript.js @@ -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, diff --git a/configs/vue3.js b/configs/vue3.js index 2208a99..edd12d5 100644 --- a/configs/vue3.js +++ b/configs/vue3.js @@ -1,6 +1,6 @@ module.exports = { env: { - browser: true, + browser: true, node: true, }, extends: [ @@ -14,7 +14,7 @@ module.exports = { 'plugin:@typescript-eslint/recommended', ], parser: 'vue-eslint-parser', - + // TS parser settings parserOptions: { parser: '@typescript-eslint/parser', @@ -30,7 +30,7 @@ module.exports = { // Our Vue custom rules 'vue/html-self-closing': [ - 'error', + 'error', { html: { void: 'always', @@ -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'], + }, + ], }, }