1.0.4 • Published 4 months ago

@babybeet/eslint-config-base-with-jest v1.0.4

Weekly downloads
-
License
-
Repository
github
Last release
4 months ago

eslint-config-base-with-jest npm.io

Base ESLint rules with support for linting Jest test files.

Installation

  • npm
    npm i -S @babybeet/eslint-config-base-with-jest
  • pnpm
    pnpm i -S @babybeet/eslint-config-base-with-jest
  • yarn

    yarn add @babybeet/eslint-config-base-with-jest

Setting up

In your .eslintrc.json file, add the followings:

{
  "$schema": "https://json.schemastore.org/eslintrc.json",
  "root": true,
  "ignorePatterns": ["!**/*"],
  "parserOptions": {
    "ecmaVersion": "latest",
    "sourceType": "module"
  },
  // It's recommended to use an override to not globally change your ESLint configuration.
  "overrides": [
    {
      "files": ["*.ts"],
      "extends": ["@babybeet/eslint-config-base-with-jest"],
      "rules": {
        // Add your own rule overrides if desired.
      }
    }
  ]
}