Skip to content

Commit 6d8cdf5

Browse files
committed
fix(cli): correct ESLint config paths to monorepo root
Fix biome.json and .gitignore paths in ESLint config to correctly resolve from monorepo root instead of package directory.
1 parent b82c415 commit 6d8cdf5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/cli/.config/eslint.config.mjs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,13 @@ const { flatConfigs: origImportXFlatConfigs } = importXPlugin
3131

3232
const rootPath = path.dirname(__dirname)
3333
const rootTsConfigPath = path.join(rootPath, TSCONFIG_JSON)
34+
const monorepoRoot = path.join(rootPath, '..', '..')
3435

3536
const nodeGlobalsConfig = Object.fromEntries(
3637
Object.entries(globals.node).map(([k]) => [k, 'readonly']),
3738
)
3839

39-
const biomeConfigPath = path.join(rootPath, 'biome.json')
40+
const biomeConfigPath = path.join(monorepoRoot, 'biome.json')
4041
const biomeConfig = require(biomeConfigPath)
4142
const biomeIgnores = {
4243
name: 'Imported biome.json ignore patterns',
@@ -45,7 +46,7 @@ const biomeIgnores = {
4546
.map(p => convertIgnorePatternToMinimatch(p.slice(1))),
4647
}
4748

48-
const gitignorePath = path.join(rootPath, GITIGNORE)
49+
const gitignorePath = path.join(monorepoRoot, GITIGNORE)
4950
const gitIgnores = {
5051
...includeIgnoreFile(gitignorePath),
5152
name: 'Imported .gitignore ignore patterns',

0 commit comments

Comments
 (0)