Skip to content

Commit

Permalink
chore: add cjs
Browse files Browse the repository at this point in the history
  • Loading branch information
sxzz committed Sep 2, 2023
1 parent e790c1a commit 6b9f6f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
/* eslint-disable no-restricted-globals */

const DOMGlobals = ['window', 'document']
const NodeGlobals = ['module', 'require']

Expand Down Expand Up @@ -68,7 +70,7 @@ module.exports = {
},
// JavaScript files
{
files: ['*.js'],
files: ['*.js', '*.cjs'],
rules: {
// We only do `no-unused-vars` checks for js files, TS files are checked by TypeScript itself.
'no-unused-vars': ['error', { vars: 'all', args: 'none' }]
Expand Down

0 comments on commit 6b9f6f6

Please sign in to comment.