@wearesuperare/eslint-config
v0.1.4
Published
# Installation
Downloads
5
Readme
@wearesuperare/eslint-config
Installation
Full installation
yarn add -D @wearesuperare/eslint-config;
npx install-peerdeps --dev @wearesuperare/eslint-config;
or
yarn add -D @wearesuperare/eslint-config @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-plugin-import-helpers eslint-plugin-react eslint-plugin-react-hooks typescript
Add to your eslint config (.eslintrc, or eslintConfig field in package.json):
{
"extends": "@wearesuperare"
}
Installation using only JavaScript
yarn add -D eslint @wearesuperare/eslint-config eslint-plugin-import-helpers
Add to your eslint config (.eslintrc, or eslintConfig field in package.json):
{
"extends": "@wearesuperare/eslint-config/js"
}
Installation using JavaScript and JSX
yarn add -D eslint @wearesuperare/eslint-config eslint-plugin-import-helpers eslint-plugin-react eslint-plugin-react-hooks
Add to your eslint config (.eslintrc, or eslintConfig field in package.json):
{
"extends": "@wearesuperare/eslint-config/jsx"
}
Installation usign only TypeScript
yarn add -D eslint @wearesuperare/eslint-config @typescript-eslint/eslint-plugin @typescript-eslint/parser eslint-plugin-import-helpers typescript
Add to your eslint config (.eslintrc, or eslintConfig field in package.json):
{
"extends": "@wearesuperare/eslint-config/ts"
}
Installation using TypeScript and JSX
It's the same thing as full installation
Setup
Follow scripts create:
npm set-script lint "eslint ."
npm set-script lint:fix "eslint . --fix"
Setup with husky using yarn:
npx husky add .husky/pre-push 'yarn lint'
Setup with husky using npm:
npx husky add .husky/pre-push 'npm run lint'