-
-
Notifications
You must be signed in to change notification settings - Fork 742
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit changes our linter/formatter to biome (https://biomejs.dev/) Causing our prehook to run almost instantly, and our "yarn lint" task to run in sub 100ms. Some trade-offs: * Biome isn't quite as well established as ESLint * Are we ready to install a different vscode plugin (the biome plugin) instead of the prettier plugin The configuration set for biome also has a set of recommended rules, this is turned on by default, in order to get to something that was mergeable I have turned off a couple the rules we seemed to violate the most, that we also explicitly told eslint to ignore.
- Loading branch information
Christopher Kolstad
authored
Sep 29, 2023
1 parent
fbc571d
commit 6673d13
Showing
97 changed files
with
430 additions
and
1,593 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,96 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.2.2/schema.json", | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"recommended": true, | ||
"performance": { | ||
"noDelete": "off" | ||
}, | ||
"correctness": { | ||
"noUnsafeOptionalChaining": "off" | ||
}, | ||
"complexity": { | ||
"noBannedTypes": "off", | ||
"noUselessConstructor": "off", | ||
"useOptionalChain": "warn", | ||
"noStaticOnlyClass": "off" | ||
}, | ||
"style": { | ||
"noNonNullAssertion": "off", | ||
"noInferrableTypes": "off", | ||
"noUnusedTemplateLiteral": "off", | ||
"useSingleVarDeclarator": "off" | ||
}, | ||
"suspicious": { | ||
"noExplicitAny": "off", | ||
"noExtraNonNullAssertion": "off", | ||
"noRedeclare": "off" | ||
} | ||
}, | ||
"ignore": [ | ||
"node_modules", | ||
"docker", | ||
"bundle.js", | ||
"website/blog", | ||
"website/build", | ||
"website/core", | ||
"website/docs", | ||
"website/i18n/*.js", | ||
"website/pages", | ||
"website/translated_docs", | ||
"website", | ||
"setupJest.js", | ||
"frontend", | ||
"dist", | ||
"src/migrations/*.js", | ||
"src/test/examples/*.json", | ||
"website/**/*.js", | ||
"coverage" | ||
] | ||
}, | ||
"organizeImports": { | ||
"enabled": false | ||
}, | ||
"formatter": { | ||
"indentStyle": "space", | ||
"ignore": [ | ||
"node_modules", | ||
"docker", | ||
"bundle.js", | ||
"website/blog", | ||
"website/build", | ||
"website/core", | ||
"website/docs", | ||
"website/i18n/*.js", | ||
"website/pages", | ||
"website/translated_docs", | ||
"website", | ||
"setupJest.js", | ||
"frontend", | ||
"dist", | ||
"src/migrations/*.js", | ||
"src/migrations/*.json", | ||
"src/test/examples/*.json", | ||
"website/**/*.js", | ||
"coverage", | ||
".eslintrc", | ||
".eslintignore", | ||
"package.json" | ||
], | ||
"indentSize": 4 | ||
}, | ||
"javascript": { | ||
"formatter": { | ||
"semicolons": "always", | ||
"quoteStyle": "single", | ||
"jsxQuoteStyle": "single", | ||
"indentSize": 4 | ||
} | ||
}, | ||
"json": { | ||
"formatter": { | ||
"indentSize": 2 | ||
} | ||
} | ||
} |
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
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
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
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
Oops, something went wrong.