-
-
Notifications
You must be signed in to change notification settings - Fork 60
Replace eslint with biome #439
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
Open
jankapunkt
wants to merge
12
commits into
master
Choose a base branch
from
feature/replace-eslint-with-biome
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
12 commits
Select commit
Hold shift + click to select a range
452cda7
feature(dev): replace eslint with biome toolchain
jankapunkt 0851237
fix(core): biome format fix
jankapunkt 440e58e
fix: run biome formatter
jankapunkt f4e9079
fix: biome formatter fix
jankapunkt 6ce5940
fix(tests): detect different line in emitted error after biome format…
jankapunkt a4caaa7
build(core): shut off use strict rule in biome.json
jankapunkt 45e385a
fix(build): default format using single quote and space indent
jankapunkt d46d36d
fix(core): make biome config on par with current format
jankapunkt 6d1367a
Merge branch 'master' of github.com:node-oauth/node-oauth2-server int…
jankapunkt 73fd0f9
fix(core): include index.js for format/lint
jankapunkt ef7b61f
fix(core): make formatting line width and array commas on par with or…
jankapunkt b54396b
fix(core): no trailing commas in array
jankapunkt File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or 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 hidden or 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 hidden or 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,59 @@ | ||||||
| { | ||||||
| "$schema": "https://biomejs.dev/schemas/2.5.0/schema.json", | ||||||
| "vcs": { | ||||||
| "enabled": true, | ||||||
| "clientKind": "git", | ||||||
| "useIgnoreFile": true | ||||||
| }, | ||||||
| "files": { | ||||||
| "ignoreUnknown": true, | ||||||
| "includes": ["index.js", "lib/**/*.js", "test/**/*.js"] | ||||||
| }, | ||||||
| "formatter": { | ||||||
| "enabled": true, | ||||||
| "indentStyle": "tab" | ||||||
| }, | ||||||
| "linter": { | ||||||
| "enabled": true, | ||||||
| "rules": { | ||||||
| "preset": "recommended", | ||||||
| "suspicious": { | ||||||
| "noRedundantUseStrict": "off", | ||||||
| "noPrototypeBuiltins": "off", | ||||||
| "useIsArray": "off", | ||||||
| "noGlobalAssign": "off" | ||||||
| }, | ||||||
| "complexity": { | ||||||
| "useArrowFunction": "off", | ||||||
| "useDateNow": "off", | ||||||
| "useOptionalChain": "off", | ||||||
| "useLiteralKeys": "off", | ||||||
| "noUselessThisAlias": "off" | ||||||
| }, | ||||||
| "correctness": { | ||||||
| "noUnusedFunctionParameters": "off", | ||||||
| "noUnusedVariables": "off" | ||||||
| }, | ||||||
| "style": { | ||||||
| "useNodejsImportProtocol": "off", | ||||||
| "useTemplate": "off" | ||||||
| } | ||||||
| } | ||||||
|
jankapunkt marked this conversation as resolved.
|
||||||
| }, | ||||||
| "javascript": { | ||||||
| "formatter": { | ||||||
| "quoteStyle": "single", | ||||||
| "indentStyle": "space", | ||||||
| "trailingCommas": "none", | ||||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
Trailing commas "all" is biome's default and also appears to be what we already have in place; I'm also a big fan because it keeps diffs less noisy when adding new items |
||||||
| "lineWidth": 120 | ||||||
| } | ||||||
| }, | ||||||
| "assist": { | ||||||
| "enabled": true, | ||||||
| "actions": { | ||||||
| "source": { | ||||||
| "organizeImports": "on" | ||||||
| } | ||||||
| } | ||||||
| } | ||||||
| } | ||||||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.