0.0.0 • Published 4 years ago

@sanv/eslint-config v0.0.0

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

ESLint Configs

JavaScript

  1. Install the correct version of package, which are listed by the command:
npm install "@sanv/eslint-config-base" --save-dev
  1. Add next line to your .eslintrc.js:
{
  "extends": "@sanv/eslint-config-base"
}

React

  1. Install the correct version of package, which are listed by the command:
npm install "@sanv/eslint-config-react" --save-dev
  1. Add next line to your .eslintrc.js:
{
  "extends": "@sanv/eslint-config-react"
}

TypeScript

  1. Install the correct version of package, which are listed by the command:
npm install "@sanv/eslint-config-typescript" --save-dev
  1. Add next line to your .eslintrc.js:
{
  "extends": "@sanv/eslint-config-typescript"
}

React + TypeScript

  1. Install the correct version of package, which are listed by the command:
npm install "@sanv/eslint-config-react-typescript" --save-dev
  1. Add next line to your .eslintrc.js:
{
  "extends": "@sanv/eslint-config-react-typescript"
}

Storybook

  1. Install the correct version of package, which are listed by the command:
npm install "@sanv/eslint-config-stories" --save-dev
  1. Add next line to your .eslintrc.js:
{
  "extends": "@sanv/eslint-config-stories"
}

Storybook with TypeScript

  1. Install the correct version of package, which are listed by the command:
npm install "@sanv/eslint-config-stories-typescript" --save-dev
  1. Add next line to your .eslintrc.js:
{
  "extends": "@sanv/eslint-config-stories-typescript"
}

Tests

  1. Install the correct version of package, which are listed by the command:
npm install "@sanv/eslint-config-tests" --save-dev
  1. Add next line to your .eslintrc.js:
{
  "extends": "@sanv/eslint-config-tests"
}

Tests with TypeScript

  1. Install the correct version of package, which are listed by the command:
npm install "@sanv/eslint-config-tests-typescript" --save-dev
  1. Add next line to your .eslintrc.js:
{
  "extends": "@sanv/eslint-config-tests-typescript"
}