eslint-config-biome
Advanced tools
Comparing version 0.1.1 to 1.0.0
{ | ||
"name": "eslint-config-biome", | ||
"version": "0.1.1", | ||
"description": "", | ||
"module": "src/index.ts", | ||
"type": "module", | ||
"bin": "dist/bin.js", | ||
"main": "dist/index.js", | ||
"types": "dist/index.d.ts", | ||
"scripts": { | ||
"start": "bun --watch run src/index.ts", | ||
"build": "rimraf dist && npx tsc -p ./tsconfig.build.json", | ||
"prepublishOnly": "bun run build", | ||
"pre-commit": "bun test", | ||
"prepare": "husky install" | ||
}, | ||
"keywords": [], | ||
"license": "MIT", | ||
"files": ["dist"], | ||
"devDependencies": { | ||
"@biomejs/biome": "1.4.1", | ||
"@sindresorhus/tsconfig": "^5.0.0", | ||
"bun-types": "latest", | ||
"eslint-config-gev": "^3.10.5", | ||
"husky": "^8.0.1", | ||
"lint-staged": "^15.2.0", | ||
"rimraf": "^5.0.5", | ||
"typescript": "^5.3.3" | ||
} | ||
} | ||
"name": "eslint-config-biome", | ||
"version": "1.0.0", | ||
"type": "module", | ||
"description": "Disables all the ESLint rules that have a recommended and equivalent Biome rule", | ||
"main": "index.js", | ||
"scripts": { | ||
"start": "bun --watch run src/index.ts", | ||
"pre-commit": "bun test", | ||
"prepare": "husky install" | ||
}, | ||
"keywords": [], | ||
"license": "MIT", | ||
"files": ["index.js"], | ||
"devDependencies": { | ||
"@biomejs/biome": "1.4.1", | ||
"@sindresorhus/tsconfig": "^5.0.0", | ||
"@types/jsdom": "^21.1.6", | ||
"axios": "^1.6.2", | ||
"bun-types": "latest", | ||
"eslint-config-gev": "^3.10.5", | ||
"husky": "^8.0.1", | ||
"jsdom": "^23.0.1", | ||
"lint-staged": "^15.2.0", | ||
"puppeteer": "^21.6.1", | ||
"rimraf": "^5.0.5", | ||
"typescript": "^5.3.3" | ||
} | ||
} |
@@ -14,4 +14,6 @@ # eslint-config-biome | ||
! WIP ! Don't use it yet at all. | ||
Disables all the ESLint rules that have an **equivalent and recommended** Biome rule, so you can use both for better performance. | ||
Early stage lib, will be improved soon with further possibilities such as considering non-recommended Biome rules. | ||
## 💿 Installation | ||
@@ -23,4 +25,40 @@ | ||
## 📖 Usage | ||
- `.eslintrc.*`: Add `"biome"` as the last item in the `"extends"` field. | ||
```json | ||
{ | ||
"extends": [ | ||
"other-configs", | ||
"biome" | ||
] | ||
} | ||
``` | ||
- `eslint.config.js`: Import `eslint-config-biome` and have it as the last item in the configuration array | ||
```js | ||
import eslintConfigBiome from "eslint-config-biome"; | ||
export default [ | ||
otherConfigs, | ||
eslintConfigBiome, | ||
]; | ||
``` | ||
## ℹ️ Info | ||
You should use it together with [eslint-config-prettier](https://github.com/prettier/eslint-config-prettier) so formatting rules are also disabled as Biome has almost a 100% compatibility with prettier! You certainly no longer require prettier if you are using Biome. | ||
In VSCode, to apply Biome and ESLint on save, you should have these in your settings.json: | ||
```json | ||
"editor.codeActionsOnSave": { | ||
"source.fixAll.eslint": "explicit", | ||
"source.organizeImports.biome": "explicit", | ||
"quickfix.biome": "explicit" | ||
}, | ||
"editor.defaultFormatter": "biomejs.biome" | ||
``` | ||
## 📰 [Changelog](CHANGELOG.md) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
7851
143
1
63
12
4