Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

eslint-config-biome

SrBrahma113.5kMIT1.9.4

Disables ESLint rules that have a recommended and equivalent Biome rule

biome, eslint-config, eslint, config, eslintconfig, eslintplugin, eslint-plugin, linter, lint, style

readme


logo

eslint-config-biome

npm npm

Disables ESLint rules that have an equivalent and recommended Biome rule, allowing the simultaneous use of Biome and ESLint.


💿 Installation

npm install -D eslint-config-biome # or your preferred package manager ;)
  • .eslintrc.*: Add the following as the last item in the "overrides" array. Create it if necessary.

      {
        "overrides": [
          // other overrides,
          {
            files: ["*.ts", "*.js", "*.tsx", "*.jsx"],
            extends: ["biome"],
          }
        ],
      }
  • Or eslint.config.js: Import eslint-config-biome and have it as the last item in the configuration array

      import biome from "eslint-config-biome";
    
      export default [
        // other configs,
        biome,
      ];

ℹ️ Info

  • In VSCode, to apply Biome and ESLint on save, you should have these in your project's .vscode/settings.json:

      {
        "editor.codeActionsOnSave": {
          "source.fixAll.eslint": "explicit",
          "source.organizeImports.biome": "explicit",
          "quickfix.biome": "explicit"
        },
        "editor.defaultFormatter": "biomejs.biome"
      }
  • For package.json scripts and CI, I recommend running biome before eslint for faster failure detection.

    "scripts": {
      "format:check": "biome check . && eslint .",
      "format": "biome check --apply-unsafe . && eslint --fix .",
    }
  • Since v1.4.0, this package includes eslint-config-prettier, so formatting rules are also disabled as Biome is equivalent to Prettier. Attribution.

  • This package had its origin in this discussion.

📰 Changelog

changelog

Changelog

1.9.3

  • Added a few minor ESLint rules to be disabled.
  • Now using Biome's JSON Metadata to generate this package's rules to be disabled. Many thanks, ematipico!

1.8.3

  • Fix issue with ESLint's Flat Config (#7).

1.7.3

  • Updated Biome to 1.7.3; added the following disables:
"no-eval": "off",
"no-global-assign": "off",
"no-lone-blocks": "off",
"no-misleading-character-class": "off",
"no-unneeded-ternary": "off",
"no-use-before-define": "off",
"@mysticatea/eslint-plugin/no-this-in-static": "off",
"@typescript-eslint/consistent-type-exports": "off",
"@typescript-eslint/consistent-type-imports": "off",
"@typescript-eslint/no-import-type-side-effects": "off",
"@typescript-eslint/no-unnecessary-type-arguments": "off",
"@typescript-eslint/prefer-function-type": "off",
"jest/max-nested-describe": "off",
"jest/no-duplicate-hooks": "off",
"jest/no-export": "off",
"jest/no-focused-tests": "off",
"react/jsx-key": "off",
"unicorn/no-thenable": "off",
"unicorn/prefer-node-protocol": "off",
"unicorn/prefer-number-properties": "off",

1.5.3

1.5.1

  • Updated for Biome v1.5.1

1.4.1

  • Missing eslint-config-prettier.js file in bundle

1.4.0

  • eslint-config-prettier is now added automatically. You can remove it from your dependencies and your eslint config.

  • Updated README so setups using .eslintrc.* suggests "overrides" instead of "extends"

1.3.0

  • Now relevant TS Extension rules are added automatically to the index.js. These were added:

      "@typescript-eslint/dot-notation": "off",
      "@typescript-eslint/no-loss-of-precision": "off",
      "@typescript-eslint/no-dupe-class-members": "off",
      "@typescript-eslint/default-param-last": "off",
      "@typescript-eslint/no-useless-constructor": "off",
      "@typescript-eslint/no-redeclare": "off",

    Thank you Nicolas for the idea!

  • Added an awesome logo to the project ;)

1.2.0

  • Added "simple-import-sort/imports": "off".
  • Added some tests for improved maturity of this package

1.1.0

  • Fix missing plugin name in the start of the rule name.
  • Remove Rust Clippy rules from output as they aren't related.

1.0.5-6

  • Fix wrong command to install the package in the README. It was written eslint-plugin-biome instead of eslint-config-biome.

1.0.4

  • Change description and repository in package.json

1.0.3

  • Improve generated comment

1.0.2

  • Improve Readme

1.0.1

  • Remove unused deps

1.0.0

  • Published

0.1.0

  • Started project