Replies: 3 comments 1 reply
-
You have to enable the feature: https://biomejs.dev/guides/integrate-in-vcs/
Can you share how you run Biome from the CLI? |
Beta Was this translation helpful? Give feedback.
1 reply
-
I tested your configuration using pnpm. Biome correctly ignores ❯ vim biome.json # add biome.json
❯ cat biome.json
{
"$schema": "https://biomejs.dev/schemas/1.5.2/schema.json",
"organizeImports": {
"enabled": true
},
"linter": {
"ignore": [".next"],
"rules": {
"recommended": true,
"nursery": {
"noUnusedImports": "error"
}
}
},
"formatter": {
"ignore": [".next"],
"indentStyle": "space",
"lineWidth": 120
}
}
❯ pnpm init
❯ pnpm add @biomejs/biome
❯ vim package.json # edit package.json
❯ cat package.json
{
"name": "next",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"check": "biome check ."
},
"keywords": [],
"author": "",
"license": "ISC",
"devDependencies": {
"@biomejs/biome": "^1.5.2"
}
}
❯ tree -a
.
├── .next
│ └── index.js
├── biome.json
├── node_modules
│ └── ...
├── package.json
└── pnpm-lock.yaml
❯ pnpm check
Checked 2 file(s) in 596µs
|
Beta Was this translation helpful? Give feedback.
0 replies
-
Closing because the issue should be solved. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My .gitignore has an entry for
/.next/
, and I've read that Biome is supposed to read the gitignore file. Yet the files inside .next are still checked.I added an entry to the config, and yet the .next directory is still checked.
Beta Was this translation helpful? Give feedback.
All reactions