Files
hitstar/eslint.config.mjs
Elmar Kresse 8c5ca0044f
All checks were successful
Build and Push Docker Image / docker (push) Successful in 21s
Refactor code structure for improved readability and maintainability
2025-09-04 21:53:54 +02:00

33 lines
684 B
JavaScript

import js from '@eslint/js';
import globals from 'globals';
export default [
{
files: ['**/*.js'],
ignores: [
'node_modules/**',
'data/**',
'public/audio/**',
'public/cover/**',
'**/*.mp3',
'.tmp/**',
'dist/**',
'coverage/**',
],
languageOptions: {
ecmaVersion: 2023,
sourceType: 'module',
globals: {
...globals.node,
...globals.browser,
},
},
rules: {
...js.configs.recommended.rules,
'no-unused-vars': ['warn', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
'no-console': 'off',
'no-empty': ['warn', { allowEmptyCatch: true }],
},
},
];