pilotwings/eslint.config.js
Michel Roux c6978ff237
All checks were successful
pilotwings / python (push) Successful in 1m55s
pilotwings / node (push) Successful in 24s
pilotwings / docker (push) Successful in 1m22s
chore: ⬆️ upgrade eslint
2025-01-15 09:01:52 +00:00

28 lines
714 B
JavaScript

import {
defineConfigWithVueTs,
vueTsConfigs,
} from '@vue/eslint-config-typescript'
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'
import pluginVue from 'eslint-plugin-vue'
export default defineConfigWithVueTs(
{
name: 'app/files-to-lint',
files: ['**/*.{ts,mts,tsx,vue}'],
},
{
name: 'app/files-to-ignore',
ignores: ['**/dist/**', '**/dist-ssr/**', '**/coverage/**'],
},
pluginVue.configs['flat/recommended'],
vueTsConfigs.recommended,
eslintPluginPrettierRecommended,
{
rules: {
'sort-imports': 'error',
'vue/attributes-order': ['error', { alphabetical: true }],
'vue/multi-word-component-names': 'off',
},
},
)