-
Notifications
You must be signed in to change notification settings - Fork 316
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 to Biome (#690)
* Switch from ESLint & Prettier to Biome * Use recommended rules by Biome * fixup! Switch from ESLint & Prettier to Biome * Enable noAssignInExpressions * Enable noForEach * Remove prettier * Pull files to ignore from .gitignore * Enable noUndeclaredVariables * Keep some migrated settings that make sense * Update lib/index.test-d.ts Co-authored-by: Kevin van Zonneveld <[email protected]> * Enable warnings instead of disabling the rules altogether --------- Co-authored-by: Kevin van Zonneveld <[email protected]>
- Loading branch information
Showing
44 changed files
with
269 additions
and
1,791 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 |
---|---|---|
@@ -1,4 +1,3 @@ | ||
.eslintcache | ||
.vscode/settings.json | ||
node_modules | ||
demos/reactnative/.expo | ||
|
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,13 +1,13 @@ | ||
{ | ||
"folders": [ | ||
{ | ||
"path": "..", | ||
}, | ||
"path": ".." | ||
} | ||
], | ||
"settings": { | ||
"workbench.colorCustomizations": { | ||
"titleBar.activeForeground": "#cecece", | ||
"titleBar.activeBackground": "#45b39d", | ||
}, | ||
}, | ||
"titleBar.activeBackground": "#45b39d" | ||
} | ||
} | ||
} |
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,88 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.7.3/schema.json", | ||
"formatter": { | ||
"enabled": true, | ||
"formatWithErrors": false, | ||
"indentStyle": "space", | ||
"indentWidth": 2, | ||
"lineEnding": "lf", | ||
"lineWidth": 100, | ||
"attributePosition": "auto" | ||
}, | ||
"organizeImports": { | ||
"enabled": true | ||
}, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"style": { | ||
"noParameterAssign": "warn", | ||
"noDefaultExport": "warn", | ||
"useCollapsedElseIf": "error" | ||
}, | ||
"suspicious": { | ||
"noExplicitAny": "warn", | ||
"useAwait": "error" | ||
}, | ||
"correctness": { | ||
"noNewSymbol": "error", | ||
"noUndeclaredVariables": "error", | ||
"noUnusedVariables": "error" | ||
} | ||
} | ||
}, | ||
"javascript": { | ||
"formatter": { | ||
"jsxQuoteStyle": "double", | ||
"quoteProperties": "asNeeded", | ||
"trailingComma": "all", | ||
"semicolons": "asNeeded", | ||
"arrowParentheses": "always", | ||
"bracketSpacing": true, | ||
"bracketSameLine": false, | ||
"quoteStyle": "single", | ||
"attributePosition": "auto" | ||
} | ||
}, | ||
"vcs": { | ||
"enabled": true, | ||
"clientKind": "git", | ||
"useIgnoreFile": true | ||
}, | ||
"overrides": [ | ||
{ | ||
"include": ["lib/node/**"], | ||
"linter": { | ||
"rules": { | ||
"style": { | ||
"noRestrictedGlobals": { | ||
"level": "error", | ||
"options": { | ||
"deniedGlobals": ["__filename", "__dirname", "exports", "module", "require"] | ||
} | ||
} | ||
} | ||
} | ||
} | ||
}, | ||
{ | ||
"include": ["test/**"], | ||
"javascript": { | ||
"globals": [ | ||
"jasmine", | ||
"describe", | ||
"expect", | ||
"expectAsync", | ||
"beforeEach", | ||
"afterEach", | ||
"it", | ||
"spyOn" | ||
] | ||
} | ||
}, | ||
{ | ||
"include": ["demos/browser/**", "demos/cordova/**"], | ||
"javascript": { "globals": ["tus", "Camera"] } | ||
} | ||
] | ||
} |
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
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.