Closed golu7679 closed 6 months ago
I cannot reproduce your error. Here is my attempt:
❯ npm init --yes
❯ npm i -D eslint
❯ npm i -D @eslint/js typescript typescript-eslint
❯ npm i -D eslint-plugin-prettier eslint-config-prettier
❯ npm i -D @biomejs/biome
❯ npx biome init
❯ cat .eslintrc.json
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"project": "tsconfig.json",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint/eslint-plugin"
],
"extends": [
"plugin:@typescript-eslint/recommended",
"prettier"
],
"root": true,
"env": {
"node": true,
"jest": true
},
"ignorePatterns": [
".eslintrc.json"
],
"rules": {
"@typescript-eslint/interface-name-prefix": "off",
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-inferrable-types": "off"
}
}
❯ npx biome migrate eslint --write
.eslintrc.json has been successfully migrated.
Run the command with the option --include-inspired to also migrate inspired rules.
I don't know what is the exact issue after reinstalling dependencies it is working.
Environment information
Rule name
Eslint
Playground link
Expected result
I am trying to migrate eslint config into biome but when I trigger this command
npx @biomejs/biome migrate eslint --write
I always get an error
Error: eslint is not expected in this context
This is my .eslintric.json config
Code of Conduct