mntm-lib / eslint-config

ESLint config with TypeScript support

Home Page:https://npm.im/@mntm/eslint-config

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

@mntm/eslint-config GitHub license

ESLint config with TypeScript support.

Installation

We recommend to use yarn for dependency management:

yarn add -D typescript eslint @mntm/eslint-config

Setup

1) Configure ESLint

Add "extends": "@mntm" to your ESLint config file.

An example .eslintrc:

{
  "extends": "@mntm"
}

2) 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": "@mntm"
+  "parserOptions": {
+    "project": "./tsconfig.json",
+    "tsconfigRootDir": "."
+  }
 }

License

@mntm/eslint-config is MIT licensed.

About

ESLint config with TypeScript support

https://npm.im/@mntm/eslint-config

License:MIT License


Languages

Language:JavaScript 100.0%