mirror of
https://github.com/aurora-dot/pastel.codes.git
synced 2024-11-22 08:12:19 +00:00
21 lines
482 B
JavaScript
21 lines
482 B
JavaScript
|
import globals from 'globals';
|
||
|
import pluginJs from '@eslint/js';
|
||
|
|
||
|
export default [
|
||
|
{ files: ['**/*.js'], languageOptions: { sourceType: 'commonjs' } },
|
||
|
{ languageOptions: { globals: { ...globals.browser, ...globals.node } } },
|
||
|
pluginJs.configs.recommended,
|
||
|
{
|
||
|
rules: {
|
||
|
'no-unused-vars': [
|
||
|
'error',
|
||
|
{
|
||
|
argsIgnorePattern: '^_',
|
||
|
varsIgnorePattern: '^_',
|
||
|
caughtErrorsIgnorePattern: '^_',
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
},
|
||
|
];
|