-
-
Notifications
You must be signed in to change notification settings - Fork 504
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
🐛 npx @biomejs/biome migrate
command crashes
#3179
Comments
Is it possible that you have a leading comma in {
"json": { "parser": { "allowTrailingCommas": true } }
} |
I have it in the |
Could you share your |
{
"$schema": "https://biomejs.dev/schemas/1.8.1/schema.json",
"formatter": {
"enabled": true,
"formatWithErrors": false,
"indentStyle": "space",
"lineEnding": "lf",
"lineWidth": 100,
"ignore": [
"node_modules",
".svelte-kit",
".husky",
"**/.DS_Store",
"**/node_modules",
"./build",
"./.svelte-kit",
"./package",
"**/.env",
"**/.env.*",
"**/*.db",
"**/pnpm-lock.yaml",
"**/package-lock.json",
"**/yarn.lock"
]
},
"organizeImports": { "enabled": true },
"linter": {
"rules": {
"recommended": true,
"a11y": { "recommended": true },
"complexity": {
"recommended": true,
"noUselessTernary": "error",
"noVoid": "warn",
"useSimplifiedLogicExpression": "warn"
},
"correctness": {
"recommended": true,
"noNewSymbol": "warn",
"noUndeclaredVariables": "warn",
"noUnusedImports": "warn",
"noUnusedVariables": "warn",
"useHookAtTopLevel": "error"
},
"nursery": {
"recommended": true,
"noDuplicateElseIf": "warn",
"noDuplicateJsonKeys": "error",
"useImportRestrictions": "warn",
"useSortedClasses": {
"level": "warn",
"options": { "attributes": ["class"] }
}
},
"performance": { "recommended": true },
"security": { "recommended": true },
"style": {
"recommended": true,
"noImplicitBoolean": "error",
"noNegationElse": "warn",
"noShoutyConstants": "error",
"useBlockStatements": "error",
"useCollapsedElseIf": "warn",
"useForOf": "warn",
"useFragmentSyntax": "warn",
"useShorthandAssign": "warn",
"useSingleCaseStatement": "error"
},
"suspicious": {
"recommended": true,
"noApproximativeNumericConstant": "error",
"noConsoleLog": "warn",
"noEmptyBlockStatements": "warn",
"noMisrefactoredShorthandAssign": "error",
"useAwait": "warn"
}
},
"ignore": ["node_modules", ".svelte-kit", ".husky"]
},
"javascript": {
"formatter": {
"jsxQuoteStyle": "double",
"quoteProperties": "asNeeded",
"trailingCommas": "es5",
"semicolons": "asNeeded",
"arrowParentheses": "always",
"bracketSpacing": true,
"bracketSameLine": false,
"quoteStyle": "double",
"attributePosition": "auto"
}
},
"overrides": [{ "include": ["*.svelte"] }]
} This is the |
I can reproduce from your repo. I narrowed it down and found it was triggered by the promotion of the once nursery rule This might be caused by the left over comma when a promoted rule was deleted from that object: {
- "ruleA": "error",
+ ,
"ruleB": "error"
} |
Environment information
What happened?
npx @biomejs/biome migrate
Expected result
It should update the biome.json file or something positive on what next to do, but not an error or bug report like this.
Code of Conduct
The text was updated successfully, but these errors were encountered: