Skip to content

Commit

Permalink
feat: support overrides in buildFromOxlintConfig(File)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sysix committed Dec 6, 2024
1 parent 0b57eb9 commit ffd9008
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/build-from-oxlint-config/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,14 @@ export const buildFromOxlintConfig = (
rules,
};

const ignorePatterns = readIgnorePatternsFromConfig(baseConfig);
const ignorePatterns = readIgnorePatternsFromConfig(config);

if (ignorePatterns !== undefined) {
handleIgnorePatternsScope(ignorePatterns, baseConfig);
}

const overrides = readOverridesFromConfig(config);
const configs = [baseConfig];
const overrides = readOverridesFromConfig(baseConfig);

if (overrides !== undefined) {
handleOverridesScope(overrides, configs, categories);
Expand Down

0 comments on commit ffd9008

Please sign in to comment.