Skip to content
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

chore: drop ESLint and Prettier for Biome.js #38

Merged
merged 1 commit into from
May 24, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions .eslintignore

This file was deleted.

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

This file was deleted.

4 changes: 1 addition & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,9 +44,7 @@ jobs:

- run: pnpm install --frozen-lockfile

- run: pnpm lint:check

- run: pnpm format:check
- run: pnpm biome:ci

- run: pnpm test

Expand Down
4 changes: 0 additions & 4 deletions .prettierignore

This file was deleted.

12 changes: 0 additions & 12 deletions .prettierrc

This file was deleted.

26 changes: 26 additions & 0 deletions biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{
"$schema": "node_modules/@biomejs/biome/configuration_schema.json",
"organizeImports": {
"enabled": false
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"formatter": {
"indentStyle": "space",
"indentWidth": 4,
"lineWidth": 120
},
"javascript": {
"formatter": {
"indentWidth": 2,
"quoteStyle": "single"
}
},
"files": {
"ignore": ["fixtures/applications/Symfony/var", "fixtures/applications/Symfony/vendor", "tools/", "vendor/"]
}
}
14 changes: 3 additions & 11 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,9 @@
"behat": "behat --colors",
"server-start": "APP_ENV=test ./bin/symfony server:start --no-tls --dir fixtures/applications/Symfony --daemon",
"server-stop": "APP_ENV=test ./bin/symfony server:stop --dir fixtures/applications/Symfony",
"auto": [
"cd fixtures/applications/Symfony && APP_ENV=test bin/console cache:clear"
],
"post-install-cmd": [
"@composer bin all install --ansi",
"@auto"
],
"post-update-cmd": [
"@composer bin all update --ansi",
"@auto"
]
"auto": ["cd fixtures/applications/Symfony && APP_ENV=test bin/console cache:clear"],
"post-install-cmd": ["@composer bin all install --ansi", "@auto"],
"post-update-cmd": ["@composer bin all update --ansi", "@auto"]
},
"require": {
"php": "~8.1.0 || ~8.2.0 || ~8.3.0",
Expand Down
19 changes: 6 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,26 +10,19 @@
"author": "Hugo Alliaume <[email protected]>",
"license": "MIT",
"scripts": {
"lint:check": "eslint *.js src tests --ext .js,.vue",
"lint": "eslint --fix *.js src tests --ext .js,.vue",
"format:check": "prettier . --check",
"format": "prettier . --write",
"test": "jest"
"test": "jest",
"biome:check": "biome check .",
"biome:apply": "$npm_execpath biome:check --apply-unsafe",
"biome:ci": "biome ci ."
},
"peerDependencies": {
"cypress": ">=4.0.0"
},
"devDependencies": {
"@biomejs/biome": "^1.7.3",
"@types/jest": "^29.5.11",
"cypress": "^13.6.3",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-chai-friendly": "^0.7.4",
"eslint-plugin-cypress": "^2.15.1",
"eslint-plugin-jest": "^27.6.3",
"eslint-plugin-mocha": "^10.2.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"prettier": "^3.2.4"
"jest-environment-jsdom": "^29.7.0"
}
}
Loading
Loading