@strawberrydigital/eslint-config

1.0.0 • Public • Published

@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 ."
    }
}

Readme

Keywords

none

Package Sidebar

Install

npm i @strawberrydigital/eslint-config

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

2.69 kB

Total Files

5

Last publish

Collaborators

  • corazzi
  • joshuabee
  • strawberryweb