0.0.0 • Published 4 years ago
@sanv/eslint-config v0.0.0
ESLint Configs
JavaScript
- Install the correct version of package, which are listed by the command:
npm install "@sanv/eslint-config-base" --save-dev
- Add next line to your
.eslintrc.js
:
{
"extends": "@sanv/eslint-config-base"
}
React
- Install the correct version of package, which are listed by the command:
npm install "@sanv/eslint-config-react" --save-dev
- Add next line to your
.eslintrc.js
:
{
"extends": "@sanv/eslint-config-react"
}
TypeScript
- Install the correct version of package, which are listed by the command:
npm install "@sanv/eslint-config-typescript" --save-dev
- Add next line to your
.eslintrc.js
:
{
"extends": "@sanv/eslint-config-typescript"
}
React + TypeScript
- Install the correct version of package, which are listed by the command:
npm install "@sanv/eslint-config-react-typescript" --save-dev
- Add next line to your
.eslintrc.js
:
{
"extends": "@sanv/eslint-config-react-typescript"
}
Storybook
- Install the correct version of package, which are listed by the command:
npm install "@sanv/eslint-config-stories" --save-dev
- Add next line to your
.eslintrc.js
:
{
"extends": "@sanv/eslint-config-stories"
}
Storybook with TypeScript
- Install the correct version of package, which are listed by the command:
npm install "@sanv/eslint-config-stories-typescript" --save-dev
- Add next line to your
.eslintrc.js
:
{
"extends": "@sanv/eslint-config-stories-typescript"
}
Tests
- Install the correct version of package, which are listed by the command:
npm install "@sanv/eslint-config-tests" --save-dev
- Add next line to your
.eslintrc.js
:
{
"extends": "@sanv/eslint-config-tests"
}
Tests with TypeScript
- Install the correct version of package, which are listed by the command:
npm install "@sanv/eslint-config-tests-typescript" --save-dev
- Add next line to your
.eslintrc.js
:
{
"extends": "@sanv/eslint-config-tests-typescript"
}