eslint-config-hirespace
v3.3.3
Published
Hire Space's JS and TS ESLint config
Downloads
776
Readme
eslint-config-hirespace
Linting @ HireSpace
Installation
Add this package to your project a dev dependency
npm install --dev eslint-config-hirespace
Install peerDependencies, the following commands (or modified tweaks) are one method of installing peerDependencies on macos/linux:
npx install-peerdeps --dev eslint-config-hirespace
or for older versions of
npm
export PKG=eslint-config-hirespace; npm info "$PKG@latest" peerDependencies --json \ | command sed 's/[\{\},]//g ; s/: /@/g' \ | xargs npm install --save-dev "$PKG@latest"
Usage
Create an .eslintrc.json
file in root directory next to package.json
.
For Node projects, add the following:
{
"extends": "eslint-config-hirespace"
}
Or
{
"extends": "hirespace"
}
For React based projects, add the following:
{
"extends": "eslint-config-hirespace/react"
}
Or
{
"extends": "hirespace/react"
}