0.0.5 • Published 2 years ago

@johh/eslint-config v0.0.5

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

@johh/eslint-config

An opinionated ESLint config based on eslint-config-airbnb with support for TypeScript and rules for JSX, React hooks, Jasmine, JSDoc and JSON.

Usage

First, install the package and its peerDependencies to your projects devDependencies using

npx install-peerdeps @johh/eslint-config --dev

This is required because ESLint will try to resolve plugins in the current working directory. yarn will be used if there's a yarn.lock file already present in your project.

Then add the following .eslintrc file to your projects root:

{
  "extends": "@johh"
}

By default, ESLint will look for your tsconfig at ./tsconfig.eslint.json. This enables you to run ESLint with a separate tsconfig, e.g. one including config files which you want to lint, but exclude from your actual project.

To override this behaviour, add a parserOptions.project entry to your .eslintrc, pointing to your desired tsconfig:

{
  "extends": "@johh",
  "parserOptions": {
    "project": "./tsconfig.json"
  }
}
0.0.3

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago