-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Switch from ESLint, Prettier and Stylelint to Biome (#140)
* Install biome, run initial migration * Update with inspired rules * Update biome.json * Add missing rules * Add performance rules * Move biome.json to root * Remove old files * Integrate with VCS, ignore shadcn/ui * Update README and settings.json * Simplify biome config * Update biome.json * Replace excess rules with "all" * Add nursery rules * Update biome.json * Misc fixes * Update biome.json * Update package.json * Update README.md * Update README.md * Update website config * Remove ESLint Inspector from Website * Run Ultracite on website * Update biome.json * Run biome unsafe fixes on website * Misc fixes * Update README.md * Update package.json * Update pnpm-lock.yaml * Update README.md * Update package.json * Clean website deps * Bump deps * Update biome.json
- Loading branch information
1 parent
0f2af8f
commit c92a9d2
Showing
81 changed files
with
564 additions
and
29,975 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,11 @@ | ||
{ | ||
"typescript.tsdk": "node_modules/typescript/lib", | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.defaultFormatter": "biomejs.biome", | ||
"editor.formatOnSave": true, | ||
"editor.formatOnPaste": true, | ||
"emmet.showExpandedAbbreviation": "never", | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.esbenp.prettier-vscode": "explicit", | ||
"source.fixAll.eslint": "explicit", | ||
"source.fixAll.stylelint": "explicit" | ||
}, | ||
"[typescriptreact]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"eslint.useFlatConfig": true, | ||
"eslint.options": { | ||
"overrideConfigFile": "eslint.config.mjs" | ||
"quickfix.biome": "explicit", | ||
"source.organizeImports.biome": "explicit" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,102 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json", | ||
"formatter": { | ||
"enabled": true, | ||
"formatWithErrors": true, | ||
"indentStyle": "space", | ||
"indentWidth": 2, | ||
"lineEnding": "lf", | ||
"lineWidth": 80, | ||
"attributePosition": "auto" | ||
}, | ||
"organizeImports": { "enabled": true }, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"all": true, | ||
"a11y": { | ||
"noAutofocus": "off" | ||
}, | ||
"nursery": { | ||
"all": true, | ||
"useImportRestrictions": "off", | ||
"noUndeclaredDependencies": "off", | ||
"noReactSpecificProps": "off", | ||
"useImportExtensions": "off" | ||
}, | ||
"style": { | ||
"noDefaultExport": "off", | ||
"noImplicitBoolean": "off", | ||
"useFilenamingConvention": { | ||
"level": "error", | ||
"options": { | ||
"requireAscii": true, | ||
"filenameCases": ["kebab-case"] | ||
} | ||
}, | ||
"useSingleVarDeclarator": "off" | ||
} | ||
} | ||
}, | ||
"javascript": { | ||
"formatter": { | ||
"arrowParentheses": "always", | ||
"attributePosition": "auto", | ||
"bracketSameLine": false, | ||
"bracketSpacing": true, | ||
"enabled": true, | ||
"indentStyle": "space", | ||
"indentWidth": 2, | ||
"jsxQuoteStyle": "double", | ||
"lineEnding": "lf", | ||
"lineWidth": 80, | ||
"quoteProperties": "asNeeded", | ||
"quoteStyle": "single", | ||
"semicolons": "always", | ||
"trailingCommas": "es5" | ||
} | ||
}, | ||
"css": { | ||
"formatter": { | ||
"enabled": true, | ||
"indentStyle": "space", | ||
"indentWidth": 2, | ||
"lineEnding": "lf", | ||
"lineWidth": 80, | ||
"quoteStyle": "double" | ||
}, | ||
"linter": { | ||
"enabled": true | ||
}, | ||
"parser": { | ||
"allowWrongLineComments": false, | ||
"cssModules": false | ||
} | ||
}, | ||
"json": { | ||
"formatter": { | ||
"enabled": true, | ||
"indentStyle": "space", | ||
"indentWidth": 2, | ||
"lineEnding": "lf", | ||
"lineWidth": 80, | ||
"trailingCommas": "none" | ||
}, | ||
"linter": { | ||
"enabled": true | ||
}, | ||
"parser": { | ||
"allowComments": false, | ||
"allowTrailingCommas": false | ||
} | ||
}, | ||
"vcs": { | ||
"enabled": true, | ||
"clientKind": "git", | ||
"useIgnoreFile": true, | ||
"defaultBranch": "main" | ||
}, | ||
"files": { | ||
"ignore": ["**/components/ui/**"] | ||
} | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.