eslint-config-conformance
@eslint-config-conformance
Overview
Install
Recommended Install Method
$ npx install-peerdeps --dev eslint-config-conformance
Install will taken place in 'devDependencies
'.
For Installing without npx
please see the section Alternative Install
Create a .eslintrc file in the root of your project's directory (it should live where package.json does). Your .eslintrc file should look like this
End User Notes
- You can alternatively put this object in your package.json under the property "eslintConfig":
- When installing linting tools you should always do
--exact
, for exampleyarn add --dev --exact prettier
should be the install
You can add two scripts to your package.json to lint and/or fix:
"scripts":
Now you can manually lint your code by running npm run lint and fix all fixable issues with npm run lint:fix.
Create React App
Run $ npx install-peerdeps --dev eslint-conformance
Replace "extends": "react-app" with "extends": "conformance"
With Gatsby
Run $ npx install-peerdeps --dev eslint-conformance
npx
Alternative Install without If you can not use npx
(this invokes a seperate package, install-peerdeps
you can use the following command for example:
npm info "$PKG@latest" peerDependencies --json | command sed 's/[\{\},]//g ; s/: /@/g' | xargs npm install --save-dev "$PKG@latest"
You can also manually add the peerDependencies
, here is the dependencies as of v1.0.0
License
ISC