[eslint] Fix commonjs module config

This commit is contained in:
Cohee 2024-10-13 14:01:41 +03:00
parent 346e77ecfc
commit 1c3d33c282
1 changed files with 10 additions and 0 deletions

View File

@ -20,6 +20,15 @@ module.exports = {
sourceType: 'module', sourceType: 'module',
}, },
}, },
{
files: ['*.cjs'],
parserOptions: {
sourceType: 'commonjs',
},
env: {
node: true,
},
},
{ {
files: ['src/**/*.mjs'], files: ['src/**/*.mjs'],
parserOptions: { parserOptions: {
@ -74,6 +83,7 @@ module.exports = {
'docker/**', 'docker/**',
'plugins/**', 'plugins/**',
'**/*.min.js', '**/*.min.js',
'public/scripts/extensions/quick-reply/lib/**',
], ],
rules: { rules: {
'no-unused-vars': ['error', { args: 'none' }], 'no-unused-vars': ['error', { args: 'none' }],