@clickpick/eslint-config

0.1.2 • Public • Published

@clickpick/eslint-config

ESLint config with TypeScript support for React projects.

Installation

We recommend to use yarn for dependency management:

yarn add --dev typescript eslint @clickpick/eslint-config

Setup

1) Configure ESLint

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

An example .eslintrc:

{
  "extends": "@clickpick"
}

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

License

@clickpick/eslint-config is MIT licensed.

Package Sidebar

Install

npm i @clickpick/eslint-config

Weekly Downloads

2

Version

0.1.2

License

MIT

Unpacked Size

5.42 kB

Total Files

8

Last publish

Collaborators

  • nbarinov