mirror of
https://github.com/aleleba/create-node-ts-graphql-server.git
synced 2025-06-01 19:52:05 -06:00
chore: update dependencies and version to 1.6.0 feat: refactor GraphQL resolvers for improved structure and functionality - Split TestResolver into TestResolverQuery and TestResolverMutation - Implement FieldResolvers for dynamic data fetching fix: update import paths for graphql-ws to use new module structure chore: add ESLint configuration for improved code quality - Migrate from previous ESLint config to a new structure with TypeScript support style: update TypeScript target to ES2021 for better compatibility
56 lines
1.2 KiB
JavaScript
56 lines
1.2 KiB
JavaScript
import globals from 'globals';
|
|
import tseslint from 'typescript-eslint';
|
|
import js from '@eslint/js';
|
|
|
|
export default [
|
|
// Ignorar archivos y carpetas especificados en el antiguo .eslintignore
|
|
{
|
|
ignores: [
|
|
'.eslintrc.js', // Aunque se eliminará, es bueno mantenerlo por si acaso
|
|
'build/',
|
|
'webpack.config.ts',
|
|
'webpack.config.dev.ts',
|
|
],
|
|
},
|
|
|
|
// Configuración recomendada por ESLint
|
|
js.configs.recommended,
|
|
|
|
// Configuraciones recomendadas por typescript-eslint
|
|
...tseslint.configs.recommended,
|
|
|
|
// Configuración personalizada
|
|
{
|
|
languageOptions: {
|
|
ecmaVersion: 2021,
|
|
sourceType: 'module',
|
|
globals: {
|
|
...globals.browser,
|
|
...globals.node,
|
|
},
|
|
// El parser ya está configurado por tseslint.configs.recommended
|
|
},
|
|
// Los plugins ya están configurados por tseslint.configs.recommended
|
|
rules: {
|
|
// Reglas personalizadas del antiguo .eslintrc.js
|
|
'indent': [
|
|
'error',
|
|
'tab'
|
|
],
|
|
'linebreak-style': [
|
|
'error',
|
|
'unix'
|
|
],
|
|
'quotes': [
|
|
'error',
|
|
'single'
|
|
],
|
|
'semi': [
|
|
'error',
|
|
'always'
|
|
],
|
|
// Puedes añadir o sobrescribir reglas de las configuraciones recomendadas aquí si es necesario
|
|
},
|
|
}
|
|
];
|