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

1.0.4 • Public • Published

eslint-config-base-with-jest

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.
      }
    }
  ]
}

Package Sidebar

Install

npm i @babybeet/eslint-config-base-with-jest

Weekly Downloads

3

Version

1.0.4

License

none

Unpacked Size

3.41 kB

Total Files

4

Last publish

Collaborators

  • babybeet