[eslint] Fix commonjs module config
This commit is contained in:
parent
346e77ecfc
commit
1c3d33c282
|
@ -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' }],
|
Loading…
Reference in New Issue