Files
news-editor/server/eslint.config.js
T

22 lines
477 B
JavaScript

// ESLint конфигурация для backend (Node.js, ES Modules)
import js from '@eslint/js';
import globals from 'globals';
export default [
js.configs.recommended,
{
files: ['src/**/*.js', 'tests/**/*.js'],
languageOptions: {
ecmaVersion: 2024,
sourceType: 'module',
globals: {
...globals.node,
},
},
rules: {
'no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
'no-console': 'off',
},
},
];