ESLint Config
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
rules
.editorconfig
.eslintrc
.gitignore
.npmignore
LICENSE
README.md
flow-react.js
index.js
package-lock.json
package.json
react.js
typescript-react-mocha.js
typescript-react.js
typescript.js
withMocha.js

README.md

eslint-config-nhardy

A collection of ESLint configs which extend eslint-config-airbnb-base and eslint-config-airbnb with some minor differences, and additions for TypeScript.

Usage

Plain ESNext

In your project folder config:

{
  "extends": "nhardy"
}

With React

{
  "extends": "nhardy/react"
}

With Mocha

In your test folder config:

{
  "extends": ["nhardy", "nhardy/withMocha"]
}

With TypeScript (experimental)

{
  "extends": "nhardy/typescript"
}

With TypeScript and React (experimental)

{
  "extends": "nhardy/typescript-react"
}

With TypeScript, React and Mocha (experimental)

In your test folder config:

{
  "extends": "nhardy/typescript-react-mocha"
}

With React and Flow (legacy)

Add to your project folder config:

{
  "extends": "nhardy/react-flow"
}