mirror of
https://github.com/aurora-dot/pastel.codes.git
synced 2024-12-22 14:52:18 +00:00
E
8449b30401
* Add dev-dependancies * Security update npm packages * Force audit fix * Add linting, formatting and precommit * Format files
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: '^_',
|
|
},
|
|
],
|
|
},
|
|
},
|
|
];
|