-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deps): Move to Biome for formatting and linting
- Loading branch information
1 parent
08a877f
commit 05fdeb2
Showing
15 changed files
with
5,574 additions
and
4,554 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
{ | ||
"include": ["src/**/*.ts", "src/**/*.tsx"], | ||
"exclude": ["src/__helper__", "src/__macro__", "src/**/*.test.ts", "src/**/*.test.tsx"] | ||
"exclude": [ | ||
"src/__helper__", | ||
"src/__macro__", | ||
"src/**/*.test.ts", | ||
"src/**/*.test.tsx" | ||
] | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"*.{ts,tsx,js,json,jsonc}": [ | ||
"pnpm biome format --write --no-errors-on-unmatched", | ||
"pnpm biome lint --write --no-errors-on-unmatched" | ||
] | ||
} |
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,37 @@ | ||
{ | ||
"[typescript]": { | ||
"editor.defaultFormatter": "biomejs.biome", | ||
"editor.formatOnSave": true, | ||
"editor.codeActionsOnSave": { | ||
"quickfix.biome": "explicit" | ||
} | ||
}, | ||
"[typescriptreact]": { | ||
"editor.defaultFormatter": "biomejs.biome", | ||
"editor.formatOnSave": true, | ||
"editor.codeActionsOnSave": { | ||
"quickfix.biome": "explicit" | ||
} | ||
}, | ||
"[javascript]": { | ||
"editor.defaultFormatter": "biomejs.biome", | ||
"editor.formatOnSave": true, | ||
"editor.codeActionsOnSave": { | ||
"quickfix.biome": "explicit" | ||
} | ||
}, | ||
"[jsonc]": { | ||
"editor.defaultFormatter": "biomejs.biome", | ||
"editor.formatOnSave": true, | ||
"editor.codeActionsOnSave": { | ||
"quickfix.biome": "explicit" | ||
} | ||
}, | ||
"[json]": { | ||
"editor.defaultFormatter": "biomejs.biome", | ||
"editor.formatOnSave": true, | ||
"editor.codeActionsOnSave": { | ||
"quickfix.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,11 @@ | ||
export default { | ||
require: "global-jsdom/register", | ||
environmentVariables: { | ||
"TS_NODE_PROJECT": "tsconfig.ava.json" | ||
TS_NODE_PROJECT: "tsconfig.ava.json" | ||
}, | ||
extensions: { | ||
ts: "module", | ||
tsx: "module" | ||
}, | ||
files: [ | ||
"src/**/*.test.{ts,tsx}" | ||
] | ||
files: ["src/**/*.test.{ts,tsx}"] | ||
} |
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,40 @@ | ||
{ | ||
"$schema": "https://biomejs.dev/schemas/1.9.1/schema.json", | ||
"vcs": { | ||
"enabled": false, | ||
"clientKind": "git", | ||
"useIgnoreFile": false | ||
}, | ||
"files": { | ||
"ignoreUnknown": false, | ||
"include": ["**/*.ts", "**/*.tsx", "**/*.js", "**/*.jsonc", "**/*.json"], | ||
"ignore": ["node_modules", "lib", "coverage"] | ||
}, | ||
"formatter": { | ||
"enabled": true, | ||
"indentStyle": "space", | ||
"indentWidth": 2, | ||
"bracketSpacing": false | ||
}, | ||
"organizeImports": { | ||
"enabled": true | ||
}, | ||
"linter": { | ||
"enabled": true, | ||
"rules": { | ||
"recommended": true | ||
} | ||
}, | ||
"javascript": { | ||
"formatter": { | ||
"quoteStyle": "double", | ||
"semicolons": "asNeeded", | ||
"trailingCommas": "none" | ||
} | ||
}, | ||
"json": { | ||
"formatter": { | ||
"trailingCommas": "none" | ||
} | ||
} | ||
} |
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 |
---|---|---|
|
@@ -3,13 +3,8 @@ | |
"name": "use-suspender", | ||
"version": "2.0.0-beta.0", | ||
"description": "Wraps asynchronous function allowing to use it with React.Suspense", | ||
"keywords": [ | ||
"react-suspense", | ||
"suspense", | ||
"hooks", | ||
"react-hooks" | ||
], | ||
"packageManager": "[email protected]", | ||
"keywords": ["react-suspense", "suspense", "hooks", "react-hooks"], | ||
"packageManager": "[email protected]+sha512.73a29afa36a0d092ece5271de5177ecbf8318d454ecd701343131b8ebc0c1a91c487da46ab77c8e596d6acf1461e3594ced4becedf8921b074fbd8653ed7051c", | ||
"main": "./lib/useSuspender.js", | ||
"types": "./lib/useSuspender.d.ts", | ||
"exports": { | ||
|
@@ -38,34 +33,26 @@ | |
"coverage": "c8 npm test", | ||
"test": "cross-env NODE_OPTIONS=\"--no-warnings --loader=ts-node/esm\" ava", | ||
"lint:types": "tsc --noEmit", | ||
"eslint": "eslint src/**/*.ts src/**/*.tsx", | ||
"lint": "biome lint --write .", | ||
"ci": "c8 npm test && c8 report --reporter=json", | ||
"prepare": "npx is-in-ci || husky install" | ||
}, | ||
"devDependencies": { | ||
"@biomejs/biome": "1.9.1", | ||
"@octetstream/eslint-config": "7.2.1", | ||
"@size-limit/preset-small-lib": "8.2.4", | ||
"@testing-library/react": "14.1.0", | ||
"@types/node": "20.9.0", | ||
"@types/react": "18.2.37", | ||
"@types/sinon": "17.0.1", | ||
"@typescript-eslint/eslint-plugin": "6.10.0", | ||
"@typescript-eslint/parser": "6.10.0", | ||
"ava": "5.3.1", | ||
"c8": "8.0.1", | ||
"cross-env": "7.0.3", | ||
"del-cli": "5.1.0", | ||
"eslint": "8.53.0", | ||
"eslint-config-airbnb-typescript": "17.1.0", | ||
"eslint-import-resolver-typescript": "3.6.1", | ||
"eslint-plugin-ava": "14.0.0", | ||
"eslint-plugin-import": "2.29.0", | ||
"eslint-plugin-react": "7.33.2", | ||
"global-jsdom": "9.1.0", | ||
"husky": "8.0.3", | ||
"jsdom": "22.1.0", | ||
"lint-staged": "15.0.2", | ||
"microbundle": "0.15.1", | ||
"nanoid": "5.0.3", | ||
"pinst": "3.0.0", | ||
"react": "18.2.0", | ||
|
Oops, something went wrong.