eslint-config-conformance

1.2.0 • Public • Published

eslint-config-conformance

@eslint-config-conformance

npm registry

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

{
  "extends": ["conformance"]
}

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 example yarn add --dev --exact prettier should be the install

You can add two scripts to your package.json to lint and/or fix:

"scripts"{
  "lint": "eslint .",
  "lint:fix": "eslint . --fix"
}

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

Alternative Install without npx

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

{
  "babel-eslint": "^10.1.0",
  "eslint": "^7.8.1",
  "eslint-config-airbnb": "^18.2.0",
  "eslint-config-prettier": "^6.11.0",
  "eslint-plugin-html": "^6.1.0",
  "eslint-plugin-import": "^2.22.0",
  "eslint-plugin-jsx-a11y": "^6.3.1",
  "eslint-plugin-prettier": "^3.1.4",
  "eslint-plugin-react": "^7.20.6",
  "eslint-plugin-react-hooks": "^4.1.2",
  "prettier": "^2.1.1"
}

License

ISC

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.2.0
    1
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.2.0
    1
  • 1.1.0
    0

Package Sidebar

Install

npm i eslint-config-conformance

Weekly Downloads

1

Version

1.2.0

License

ISC

Unpacked Size

13.3 kB

Total Files

18

Last publish

Collaborators

  • sambacha