0.1.2 • Published 4 years ago

@voyage.studio/eslint-config v0.1.2

Weekly downloads
10
License
MIT
Repository
github
Last release
4 years ago

@voyage.studio/eslint-config

npm

Installation

1. Install dependencies & config

yarn add --dev eslint eslint-plugin-import prettier @voyage.studio/eslint-config

2. Configure ESLint

Reference the config in your .eslintrc

For Vanilla JS

{
    extends: "@voyage.studio/eslint-config/vanilla"
}

React JS

{
    extends: "@voyage.studio/eslint-config/react"
}

3. Configure Prettier

Add .prettierrc

4. Configure scripts

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