Phase 0: добавить ESLint конфигурации (server + client) и плагины

This commit is contained in:
Suslov-MD
2026-08-15 15:14:00 +00:00
parent ce37b1415c
commit fde5dfc78d
6 changed files with 2199 additions and 33 deletions
+21
View File
@@ -0,0 +1,21 @@
// 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',
},
},
];