@takanome/eslint-config
v1.1.1
Published
ESLint config used takanome-dev
Downloads
22
Maintainers
Readme
@takanome/eslint-config
This package contains eslint configs for my projects that use Next.js. It's based on the following packages:
- @babel/preset-react
- @takanome/eslint-config-typescript
- eslint-config-airbnb
- eslint-plugin-html
- eslint-plugin-jsx-a11y
- eslint-plugin-react
- eslint-plugin-react-hooks
- prettier-plugin-tailwindcss
- eslint-plugin-tailwindcss
These configs can be used for Next.js projects that use TypeScript as well as React.
💻 Usage
First, install the package:
npm i -D @takanome/eslint-config
Then, create a .eslintrc
file in the root of your project and extend the base config:
{
"extends": "@takanome/eslint-config"
/// ...
}
If you find annoying eslint errors you want to turn off, you can override the rules in your .eslintrc
file:
{
"extends": "@takanome/eslint-config",
"rules": {
"@typescript-eslint/no-unused-vars": "off"
}
}
⚖️ License
This project is licensed under the terms of the MIT license.