@johh/eslint-config v0.0.5
@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 --devThis 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"
}
}