31 lines
678 B
JavaScript
31 lines
678 B
JavaScript
import js from '@eslint/js';
|
|
|
|
export default [
|
|
js.configs.recommended,
|
|
{
|
|
languageOptions: {
|
|
ecmaVersion: 'latest',
|
|
sourceType: 'module',
|
|
globals: {
|
|
console: 'readonly',
|
|
process: 'readonly',
|
|
Buffer: 'readonly',
|
|
URL: 'readonly',
|
|
setTimeout: 'readonly',
|
|
setInterval: 'readonly',
|
|
clearInterval: 'readonly',
|
|
clearTimeout: 'readonly',
|
|
fetch: 'readonly',
|
|
AbortController: 'readonly',
|
|
},
|
|
},
|
|
rules: {
|
|
'no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
|
|
'no-console': 'off',
|
|
},
|
|
},
|
|
{
|
|
ignores: ['node_modules/', 'logs/', 'public/'],
|
|
},
|
|
];
|