ESLint config with TypeScript support.
We recommend to use yarn for dependency management:
yarn add -D typescript eslint @mntm/eslint-config
Add "extends": "@mntm"
to your ESLint config file.
An example .eslintrc
:
{
"extends": "@mntm"
}
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": "@mntm"
+ "parserOptions": {
+ "project": "./tsconfig.json",
+ "tsconfigRootDir": "."
+ }
}
@mntm/eslint-config is MIT licensed.