@antscorp/eslint-config-antsomi
This package provides Antsomi's .eslintrc as an extensible shared config.
Usage
We export ESLint configurations for your usage.
Setup
1) Install dependencies (and peer dependencies)
npx install-peerdeps --dev @antscorp/eslint-config-antsomi
2) Configure Eslint
Within your ESLint config file:
extends: [
+ '@antscorp/antsomi'
]
3) Configure the ESLint TypeScript parser
This config requires knowledge of your TypeScript config.
In your ESLint config, set parserOptions.project to the path of your tsconfig.json
.
For example:
{
extends: ['@antscorp/antsomi'],
+ parserOptions: {
+ project: './tsconfig.json'
+ }
}
5) Run ESLint
Open a terminal to the root of your project, and run the following command:
yarn run eslint --ext js,ts,tsx