All checks were successful
Build and Push Docker Image / docker (push) Successful in 21s
33 lines
684 B
JavaScript
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 }],
|
|
},
|
|
},
|
|
];
|