configuraciones de eslint y prettier

This commit is contained in:
2025-12-17 23:08:27 -06:00
parent c3abc377bf
commit e40ea49031
5 changed files with 6196 additions and 1043 deletions

View File

@@ -1,5 +1,40 @@
// @ts-check
import { tanstackConfig } from '@tanstack/eslint-config'
import eslintConfigPrettier from 'eslint-config-prettier'
import importPlugin from 'eslint-plugin-import'
export default [...tanstackConfig]
export default [
...tanstackConfig,
// Local overrides to avoid rule overlap and Prettier conflicts
{
plugins: {
import: importPlugin, // <--- Registramos el plugin
},
rules: {
// Let import/order handle ordering; disable native sort-imports to prevent conflicts
'sort-imports': 'off',
// Ensure consistent grouping and alphabetical ordering
'import/order': [
'error',
{
groups: [
'builtin',
'external',
'internal',
'parent',
'sibling',
'index',
'object',
'type',
],
// No blank lines inside or between import groups to avoid multi-save fixes
'newlines-between': 'never',
alphabetize: { order: 'asc', caseInsensitive: true },
},
],
},
},
// Turn off any ESLint rules that might conflict with Prettier
eslintConfigPrettier,
]