Skip to content
This repository has been archived by the owner on Sep 19, 2023. It is now read-only.

Latest commit

 

History

History
50 lines (36 loc) · 850 Bytes

README.md

File metadata and controls

50 lines (36 loc) · 850 Bytes

eslint-config-nifty

ESLint shareable config for NiftyCo projects

Important

We no longer use eslint in our projects, feel free to continue to use this but it wont get updated.

Install

npm install --save-dev eslint-config-prettier

Usage

Add some ESLint config to your package.json:

{
  "name": "my-nifty-app",
  "version": "1.2.4",
  "eslintConfig": {
    "extends": "nifty"
  }
}

or to .eslintrc:

{
  "extends": "nifty"
}

This package also exposes nifty/react if you're working in React codebases.

Install additional dependencies

npm install --save-dev eslint-plugin-react eslint-plugin-jsx-a11y eslint-plugin-react-hooks

Then extends nifty/react like so:

{
  "extends": "nifty/react"
}