netgescon-day0/.eslintrc.cjs

22 lines
566 B
JavaScript
Executable File

/* NetGescon ESLint base */
/* eslint-env node */
import { configs } from '@eslint/js';
export default [
configs.recommended,
{
languageOptions: {
ecmaVersion: 2022,
sourceType: 'module',
globals: { window: 'readonly', document: 'readonly', navigator: 'readonly' }
},
files: ['resources/js/**/*.js'],
rules: {
'no-unused-vars': ['warn', { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }],
'no-undef': 'error',
'no-console': ['warn', { allow: ['warn', 'error'] }],
'prefer-const': 'warn'
}
}
];