Skip to content

Commit

Permalink
chore: remove prettier and eslint, install biome
Browse files Browse the repository at this point in the history
  • Loading branch information
maschad committed May 1, 2024
1 parent c1d8cfd commit 2f2c904
Show file tree
Hide file tree
Showing 17 changed files with 289 additions and 889 deletions.
24 changes: 0 additions & 24 deletions .eslintignore

This file was deleted.

81 changes: 0 additions & 81 deletions .eslintrc.js

This file was deleted.

3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,6 @@ tsup.config.bundled_*
# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
Expand Down
5 changes: 0 additions & 5 deletions .knip.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,6 @@
"@graphql-codegen*",
"graphql-tag",
"events",
"eslint-plugin-jsdoc",
"eslint-plugin-jsx-a11y",
"eslint-plugin-prettier",
"eslint-plugin-react",
"eslint-plugin-react-hooks",
"dotenv",
"memfs",
"open",
Expand Down
6 changes: 1 addition & 5 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
{
"recommendations": [
"vitest.explorer",
"esbenp.prettier-vscode",
"dbaeumer.vscode-eslint"
]
"recommendations": ["vitest.explorer"]
}
8 changes: 0 additions & 8 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"editor.defaultFormatter": "esbenp.prettier-vscode",
"prettier.configPath": ".prettierrc",
"editor.formatOnSave": true,
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
Expand All @@ -12,12 +10,6 @@
"**/.turbo": true,
"**/dist": true
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[json]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[handlebars]": {
"editor.formatOnSave": false,
"editor.formatOnPaste": false
Expand Down
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ the following categories:
Please note that you might have to run `git fetch origin master` (where
origin will be your fork on GitHub) before `pnpm changeset` works.

> If you made minor changes like CI config, prettier, etc, you can run
> If you made minor changes such as config changes, you can run
> `pnpm changeset add --empty` to generate an empty changeset file to document
> your changes.
Expand Down
1 change: 0 additions & 1 deletion apps/create-fuels-counter-guide/.eslintignore

This file was deleted.

4 changes: 0 additions & 4 deletions apps/create-fuels-counter-guide/.eslintrc.json

This file was deleted.

2 changes: 1 addition & 1 deletion apps/demo-react-cra/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ See the section about [deployment](https://facebook.github.io/create-react-app/d

If you aren’t satisfied with the build tool and configuration choices, you can `eject` at any time. This command will remove the single build dependency from your project.

Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel, ESLint, etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.
Instead, it will copy all the configuration files and the transitive dependencies (webpack, Babel etc) right into your project so you have full control over them. All of the commands except `eject` will still work, but they will point to the copied scripts so you can tweak them. At this point you’re on your own.

You don’t have to ever use `eject`. The curated feature set is suitable for small and middle deployments, and you shouldn’t feel obligated to use this feature. However we understand that this tool wouldn’t be useful if you couldn’t customize it when you are ready for it.

Expand Down
14 changes: 0 additions & 14 deletions apps/demo-react-vite/.eslintrc.cjs

This file was deleted.

1 change: 0 additions & 1 deletion apps/docs/src/guide/cookbook/wallet-sdk-and-react-hooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ pnpm add fuels @fuels/connectors @fuels/react @tanstack/react-query

In order to make use of the React hooks provided by the Fuel Wallet SDK, we need to wrap our application in a `FuelProvider` component. This component will provide the hooks with the necessary context to interact with the Fuel Wallet SDK. Add the following to your `pages/_app.tsx` file:

<!-- prettier-ignore -->
<<< @/../../demo-wallet-sdk-react/pages/_app.tsx#wallet-sdk-react-provider{tsx:line-numbers}

## Building the UI
Expand Down
23 changes: 4 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,12 @@
"test:browser": "vitest --run --coverage --config vite.browser.config.mts $(scripts/tests-find.sh --browser)",
"test:browser:filter": "vitest --run --coverage --config vite.browser.config.mts",
"test:e2e": "vitest --run --config vite.node.config.mts $(scripts/tests-find.sh --e2e)",
"lint": "run-s lint:check prettier:check",
"lint:check": "eslint . --ext .ts --max-warnings 0",
"lint": "run-s lint:check format",
"lint:check": "biome lint ./packages",
"lint:fix": "pnpm lint:check --fix",
"lint:md-links": "tsx ./scripts/lint-md-links",
"lint:package-jsons": "tsx ./scripts/lint-package-jsons",
"prettier:check": "prettier --check packages --check apps/docs-snippets",
"prettier:format": "prettier --write packages --check apps/docs-snippets",
"format": "format ./packages ./apps/docs-snippets",
"verify:package-exports": "tsx ./scripts/verify-package-exports",
"changeset:publish": "tsx ./scripts/changeset/changeset-publish",
"changeset:next": "tsx ./scripts/changeset/changeset-next",
Expand All @@ -59,6 +58,7 @@
"devDependencies": {
"@actions/core": "^1.10.1",
"@actions/github": "^6.0.0",
"@biomejs/biome": "^1.7.2",
"@changesets/cli": "^2.27.1",
"@changesets/get-github-info": "^0.5.2",
"@changesets/read": "^0.6.0",
Expand All @@ -72,32 +72,17 @@
"@types/node": "18.15.3",
"@types/node-fetch": "^2.6.2",
"@types/web": "^0.0.65",
"@typescript-eslint/eslint-plugin": "^6.9.0",
"@typescript-eslint/parser": "^6.9.0",
"@vitest/browser": "^1.1.3",
"@vitest/coverage-istanbul": "^1.1.3",
"compare-versions": "^6.1.0",
"coverage-diff": "^3.2.0",
"eslint": "^8.52.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-jsdoc": "^46.8.2",
"eslint-plugin-jsx-a11y": "^6.7.1",
"eslint-plugin-prettier": "^5.0.1",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
"eslint-plugin-tsdoc": "^0.2.17",
"glob": "^10.2.6",
"knip": "^5.9.3",
"memfs": "^4.8.2",
"nodemon": "^3.0.3",
"npm-run-all": "^4.1.5",
"nyc": "^15.1.0",
"open": "^8.4.0",
"prettier": "^3.0.3",
"rimraf": "^3.0.2",
"textlint": "^13.3.2",
"textlint-rule-no-dead-link": "^5.1.2",
Expand Down
Loading

0 comments on commit 2f2c904

Please sign in to comment.