Skip to content

Commit

Permalink
[eslint] Fix commonjs module config
Browse files Browse the repository at this point in the history
  • Loading branch information
Cohee1207 committed Oct 13, 2024
1 parent 346e77e commit 1c3d33c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .eslintrc.js → .eslintrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ module.exports = {
sourceType: 'module',
},
},
{
files: ['*.cjs'],
parserOptions: {
sourceType: 'commonjs',
},
env: {
node: true,
},
},
{
files: ['src/**/*.mjs'],
parserOptions: {
Expand Down Expand Up @@ -74,6 +83,7 @@ module.exports = {
'docker/**',
'plugins/**',
'**/*.min.js',
'public/scripts/extensions/quick-reply/lib/**',
],
rules: {
'no-unused-vars': ['error', { args: 'none' }],
Expand Down

0 comments on commit 1c3d33c

Please sign in to comment.