The ESLint configs I use for my projects.
This package contains the ESLint configs I use for my projects. You probably don't want to use this unless you're working on a project with me.
TODO: ESLint's new flat config system will eliminate the need for manually installing the peer dependencies in consuming projects. Switch to that once it works with the CLI.
This package provides different configs for different use cases.
Install this config and its peer dependencies:
yarn add --dev @baltpeter/eslint-config eslint @typescript-eslint/eslint-plugin eslint-plugin-eslint-comments eslint-plugin-import typescript
Then, add the following to your .eslintrc
:
{
"root": true,
"extends": ["@baltpeter/eslint-config"]
}
Install this config and its peer dependencies:
yarn add --dev @baltpeter/eslint-config eslint @typescript-eslint/eslint-plugin eslint-plugin-eslint-comments eslint-plugin-import eslint-plugin-jsx-a11y eslint-plugin-react eslint-plugin-react-hooks typescript
Then, add the following to your .eslintrc
:
{
"root": true,
"extends": ["@baltpeter/eslint-config/preact"]
}