Skip to content

Commit

Permalink
feat: backport sourceType for .cjs files
Browse files Browse the repository at this point in the history
  • Loading branch information
susisu committed Mar 17, 2024
1 parent 65e6c5d commit f77f485
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/classic/javascript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@ const config: ESLint.ConfigData = {
es2020: true,
},
rules: rules.javascript,
overrides: [
{
files: ['*.cjs'],
parserOptions: {
sourceType: 'script',
},
},
],
};

export default config;

0 comments on commit f77f485

Please sign in to comment.