1.0.0 • Published 5 years ago

@strawberrydigital/eslint-config v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

@strawberrydigital/eslint-config

This package provides Strawberry's .eslintrc as a shared npm module. It extends and tweaks airbnb's shared config. This package will also configure and run Prettier if it is installed on a project.

Installation

Install with yarn:

$ yarn add --dev eslint prettier @strawberrydigital/eslint-config

or install with npm:

$ npm install --save-dev eslint prettier @strawberrydigital/eslint-config

Usage

Add the preset to your eslint config file (.eslintrc, .eslintrc.js, etc.):

{
    "extends": ["@strawberrydigital/eslint-config"]
}

Add your .prettierrc config (take the one from this repo if you like):

{
    "arrowParens": "avoid",
    "singleQuote": true,
    "tabWidth": 4
}

Add a linting script to your package.json:

{
    "scripts": {
        "lint:scripts": "eslint --ext .js,.vue ."
    }
}