Skip to content

Commit

Permalink
chore: drop ESLint and Prettier for Biome.js
Browse files Browse the repository at this point in the history
  • Loading branch information
Kocal committed May 24, 2024
1 parent 1f91477 commit de2f0fe
Show file tree
Hide file tree
Showing 13 changed files with 598 additions and 2,812 deletions.
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

0 comments on commit de2f0fe

Please sign in to comment.