mirror of
https://github.com/aleleba/create-node-ts-graphql-server.git
synced 2025-07-25 22:18:24 -06:00
PR-393405:
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
This commit is contained in:
55
eslint.config.js
Normal file
55
eslint.config.js
Normal file
@ -0,0 +1,55 @@
|
||||
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
|
||||
},
|
||||
}
|
||||
];
|
Reference in New Issue
Block a user