@shakuroinc/eslint-config-react
v6.4.3
Published
[Shakuro](https://shakuro.com/) eslint (with React and tailwindcss support) and prettier extensible basic config.
Downloads
400
Readme
@shakuroinc/eslint-config-react
Shakuro eslint (with React and tailwindcss support) and prettier extensible basic config.
Usage
Install package:
yarn add -D @shakuroinc/eslint-config-react
Install package dependencies:
npx install-peerdeps @shakuroinc/eslint-config-react -d -Y
if you using yarn workspaces
npx install-peerdeps @shakuroinc/eslint-config-react -d -Y --extra-args "--ignore-workspace-root-check"
Configure eslint
:
// .eslintrc.js
module.exports = {
extends: ['@shakuroinc/eslint-config-react'],
// extend config if needed
};
Configure prettier:
// .prettierrc.js
module.exports = { ...require('@shakuroinc/eslint-config-react/prettier.config') };