https://github.com/mntm-lib/eslint-config
ESLint config with TypeScript support
https://github.com/mntm-lib/eslint-config
eslint eslint-config linting style-linter typescript typescript-eslint
Last synced: 4 months ago
JSON representation
ESLint config with TypeScript support
- Host: GitHub
- URL: https://github.com/mntm-lib/eslint-config
- Owner: mntm-lib
- License: mit
- Created: 2021-01-15T15:55:50.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T14:17:53.000Z (over 1 year ago)
- Last Synced: 2025-01-26T18:47:47.719Z (6 months ago)
- Topics: eslint, eslint-config, linting, style-linter, typescript, typescript-eslint
- Language: JavaScript
- Homepage: https://npm.im/@mntm/eslint-config
- Size: 117 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# @mntm/eslint-config [](https://github.com/eolme/eslint-config/blob/master/LICENSE)
ESLint config with TypeScript support.
## Installation
We recommend to use [yarn](https://classic.yarnpkg.com/en/docs/install/) for dependency management:
```shell
yarn add -D typescript eslint @mntm/eslint-config
```## Setup
### 1) Configure ESLint
Add `"extends": "@mntm"` to your ESLint config file.
An example `.eslintrc`:
```json
{
"extends": "@mntm"
}
```### 2) Configure the ESLint TypeScript parser
This config requires knowledge of your TypeScript config.
In your ESLint config, set [parserOptions.project](https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/parser#parseroptionsproject) to the path of your `tsconfig.json`.
For example:
```diff
{
"extends": "@mntm"
+ "parserOptions": {
+ "project": "./tsconfig.json",
+ "tsconfigRootDir": "."
+ }
}
```## License
@mntm/eslint-config is [MIT licensed](./LICENSE).