Skip to content

Commit

Permalink
Add(ESLint): Automatically load master.css.* configuration based on…
Browse files Browse the repository at this point in the history
… the current working directory
  • Loading branch information
1aron committed Nov 27, 2024
1 parent 4fde02d commit 1578d11
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/eslint-plugin/src/utils/resolve-context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function resolveContext(context: RuleContext<any, any[]>) {
if (typeof resolvedSettings.config === 'object') {
config = resolvedSettings.config
} else {
config = exploreConfig({ name: resolvedSettings.config, found: undefined })
config = exploreConfig({ name: resolvedSettings.config, found: undefined, cwd: context.cwd })
}
css = new MasterCSS(config)
cssCaches.push({ cwd: context.cwd, settings: resolvedSettings, css })
Expand Down

0 comments on commit 1578d11

Please sign in to comment.