Skip to content

Commit

Permalink
fix(eslint-plugin): let no-unsupported-configs rule check in next.con…
Browse files Browse the repository at this point in the history
…fig.ts|mts|cts
  • Loading branch information
lindelleric committed Oct 23, 2024
1 parent 96c331d commit ed36577
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ const ruleSchema = {
const rule: Rule.RuleModule = {
create: context => {
const code = context.sourceCode;
const exportedConfigName = context.filename.match(/next\.config\.m?js$/)
const exportedConfigName = context.filename.match(/next\.config\.(js|cjs|mjs|ts|cts|mts)$/)
? getConfigVariableName(code)
: null;

Expand Down

0 comments on commit ed36577

Please sign in to comment.