Skip to content

Commit

Permalink
chore: update ESLint configuration for improved code style consistency
Browse files Browse the repository at this point in the history
- Disabled 'no-unused-vars' to use TypeScript-specific rule.
- Enabled '@typescript-eslint/no-unused-vars' with warning, ignoring unused variables starting with '_'.
- Disabled 'vue/no-v-html' to allow dynamic HTML rendering.
- Added 'vue/padding-line-between-blocks' rule to enforce empty lines between <template>, <script>, and <style> blocks.
  • Loading branch information
sidartaveloso committed Oct 16, 2024
1 parent ae7df58 commit 28d7c1e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,16 @@ export default defineFlatConfig([
...vuePlugin.configs['vue3-recommended'].rules,
...tsPlugin.configs['recommended'].rules,
...prettierConfig.rules,
'vue/component-tags-order': [
'error',
{
order: ['template', 'script', 'style'],
},
],
'no-unused-vars': 'off',
'@typescript-eslint/no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
'vue/no-v-html': 'off',
'vue/padding-line-between-blocks': ['error', 'always'],
},
linterOptions: {
reportUnusedDisableDirectives: true,
Expand Down

0 comments on commit 28d7c1e

Please sign in to comment.