@handmade-systems/eslint-plugin
v1.0.9
Published
Shared eslint config for Handmade Systems
Readme
eslint-plugin-handmade
Shared eslint config for Handmade Systems
Installation
You'll first need to install ESLint:
npm i eslint --save-devNext, install @handmade-systems/eslint-plugin:
npm install @handmade-systems/eslint-plugin --save-devUsage
Add @handmade-systems to the plugins section of your .eslintrc configuration file. You can omit the eslint-plugin- prefix:
{
"plugins": [
"@handmade-systems"
]
}For a nextjs app use following config:
{
"extends": [
"plugin:@handmade-systems/base",
"plugin:@handmade-systems/react",
"plugin:@handmade-systems/next"
]
}For a react app use following config:
{
"extends": [
"plugin:@handmade-systems/base",
"plugin:@handmade-systems/react"
]
}For a node app use following config:
{
"extends": [
"plugin:@handmade-systems/base"
]
}If you use tailwind use additional config:
{
"extends": [
"plugin:@handmade-systems/tailwind"
]
}If you use storybook use additional config:
{
"extends": [
"plugin:@handmade-systems/storybook"
]
}If you playwright use additional config:
{
"extends": [
"plugin:@handmade-systems/playwright"
]
}