5.1.0 • Published 5 months ago

@smartive/eslint-config v5.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 months ago

@smartive/eslint-config

This package provides smartive's default eslint configuration.

Installation

$ npm install eslint @smartive/eslint-config -D

Usage

Create a .eslintrc file in the root of your project's directory (it should live where package.json does). This package offers two different rulesets, on for plain TypeScript applications (@smartive/eslint-config) and a separate one for React applications (@smartive/eslint-config). Your .eslintrc file should look like this:

Plain TypeScript applications

{
  "extends": [
    "@smartive/eslint-config"
  ]
}

React applications

{
  "extends": [
    "@smartive/eslint-config/react"
  ]
}

NPM scripts

To use eslint add the following to your package.json:

"scripts": {
  "lint": "eslint .",
  "lint:fix": "eslint . --fix"
}

TypeScript configuration

Since there are some rules which require type information please make sure to set up a tsconfig.json configuration file in the root directory of your project. If your TypeScript configuration file is placed in another location you have to configure it using parserOptions.project in your ESLint configuration file. For more information have a look at the typescript-eslint documentation.

5.1.0

5 months ago

5.0.0

5 months ago

3.3.0

7 months ago

3.2.0

10 months ago

5.0.0-next.1

7 months ago

5.0.0-next.2

7 months ago

5.0.0-next.3

7 months ago

5.0.0-next.4

6 months ago

4.0.1

7 months ago

4.0.0

7 months ago

4.0.2

7 months ago

3.1.1

2 years ago

3.1.0

2 years ago

3.0.1

2 years ago

3.0.0

2 years ago

2.1.0

3 years ago

2.0.0

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago