Skip to content

Latest commit

 

History

History
65 lines (44 loc) · 1.44 KB

README.md

File metadata and controls

65 lines (44 loc) · 1.44 KB

@amille/eslint-config

npm CircleCI Commitizen friendly

Eslint and prettier configuration (inspired by @thetribe/eslint-config)

Installation

First you need to install eslint and prettier.

Then install @amille/eslint-config.

# using npm
npm install --save-dev @amille/eslint-config

# or using yarn
yarn add -D @amille/eslint-config

Then create a file named .eslintrc.json with following contents in the root folder of your project:

{
    "root": true,
    "extends": ["@amille/eslint-config"]
}

Then creat a file named .prettierrc.json along side the previous file, with the following contents.

"@amille/eslint-config"

Variants

This package comes with two configurations

Default

The default configuration is based on airbnb-base and prettier.

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

React

The react configuration is based on airbnb, prettier and prettier/react.

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