@amille/eslint-ts-config

1.0.2 • Public • Published

@amille/eslint-ts-config

npm CircleCI Commitizen friendly

Eslint and prettier configuration with TypeScript support based on @amille/eslint-config

Installation

First you need to install eslint and prettier.

Then install @amille/eslint-ts-config.

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

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

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

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

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

"@amille/eslint-ts-config"

Variants

This package comes with two configurations

Default

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

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

React

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

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

Package Sidebar

Install

npm i @amille/eslint-ts-config

Weekly Downloads

1

Version

1.0.2

License

MIT

Unpacked Size

5.45 kB

Total Files

6

Last publish

Collaborators

  • mille_a