Skip to content

Latest commit

 

History

History
27 lines (18 loc) · 665 Bytes

README.md

File metadata and controls

27 lines (18 loc) · 665 Bytes

eslint-config

The holy Ten Commandments for sovity Javascript projects.

Using the Config

Install the file

npm i -D github:sovity/eslint-config#v1.0

Make sure you also install the peer dependencies:

  • ´eslint´
  • ´prettier´ (optional)
  • ´eslint-config-prettier´ (optional)
  • ´eslint-plugin-prettier´ (optional)

Include it in your ESLint config.

Write this as part of the configuration object in your .eslintrc file:

"extends": [
    "@sovity/eslint-config/eslint"
]

Include the prettier rules if you are also using prettier.

Write this as the only contents of your .prettierrc file:

"@sovity/eslint-config/prettier"