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.
npm install --save-dev eslint-config-prettierAdd 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.
npm install --save-dev eslint-plugin-react eslint-plugin-jsx-a11y eslint-plugin-react-hooksThen extends nifty/react like so:
{
"extends": "nifty/react"
}