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

ESLint shareable config for NiftyCo projects

License

Notifications You must be signed in to change notification settings

aniftyco-archive/eslint-config-nifty

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

89 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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"
}