mirror of
https://github.com/aurora-dot/pastel.codes.git
synced 2024-12-04 22:12:21 +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: '^_',
|
||
|
},
|
||
|
],
|
||
|
},
|
||
|
},
|
||
|
];
|