1.0.0 • Published 6 years ago
@strawberrydigital/eslint-config v1.0.0
@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-configor install with npm:
$ npm install --save-dev eslint prettier @strawberrydigital/eslint-configUsage
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 ."
}
}1.0.0
6 years ago