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