4.0.0 • Published 12 months ago
@dre1080/eslint-config v4.0.0
eslint-config
Sharable eslint config.
Install
Install eslint, prettier and @dre1080/eslint-config
:
With Yarn
$ yarn add --dev eslint prettier @dre1080/eslint-config
With npm
$ npm install eslint prettier @dre1080/eslint-config --save-dev
Usage
JSON ESLint config example:
{
"extends": ["@dre1080"]
}
This package also exposes other configs that can be used for specific types of projects.
@dre1080/eslint-config/nuxt
for Nuxt.js based projects:
{
"extends": ["@dre1080/eslint-config/nuxt"]
}
Add a prettier config in package.json
:
{
...
"prettier": "@dre1080/prettier-config"
...
}