Skip to content

Commit 6b9f6f6

Browse files
committed
chore: add cjs
1 parent e790c1a commit 6b9f6f6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.eslintrc.cjs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
/* eslint-disable no-restricted-globals */
2+
13
const DOMGlobals = ['window', 'document']
24
const NodeGlobals = ['module', 'require']
35

@@ -68,7 +70,7 @@ module.exports = {
6870
},
6971
// JavaScript files
7072
{
71-
files: ['*.js'],
73+
files: ['*.js', '*.cjs'],
7274
rules: {
7375
// We only do `no-unused-vars` checks for js files, TS files are checked by TypeScript itself.
7476
'no-unused-vars': ['error', { vars: 'all', args: 'none' }]

0 commit comments

Comments
 (0)