Skip to content

Commit

Permalink
Add mjs and cjs for config files. (#1918)
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaeumer authored Aug 12, 2024
1 parent bea9c05 commit ce24363
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export namespace ESLintClient {

// Filters for client options
const packageJsonFilter: DocumentFilter = { scheme: 'file', pattern: '**/package.json' };
const configFileFilter: DocumentFilter = { scheme: 'file', pattern: '**/{.eslintr{c.js,c.yaml,c.yml,c,c.json},eslint.config.js}' };
const configFileFilter: DocumentFilter = { scheme: 'file', pattern: '**/{.eslintr{c.js,c.yaml,c.yml,c,c.json},eslint.confi{g.js,g.mjs,g.cjs}}' };
const supportedQuickFixKinds: Set<string> = new Set([CodeActionKind.Source.value, CodeActionKind.SourceFixAll.value, `${CodeActionKind.SourceFixAll.value}.eslint`, CodeActionKind.QuickFix.value]);

// A map of documents synced to the server
Expand Down

0 comments on commit ce24363

Please sign in to comment.