Sharable eslint config with reasonable defaults
MIT License
A sharable eslint configuration with react and testing defaults.
Includes a base config and configs for react and testing with @testing-library/react and vitest.
To use the base config, install the config as well as it's dependencies:
yarn add -D \
@imccausl/eslint-config \
eslint \
prettier \
eslint-config-prettier \
eslint-plugin-prettier \
eslint-plugin-import \
eslint-import-resolver-typescript \
eslint-import-resolver-node \
@typescript-eslint/eslint-plugin \
@typescript-eslint/parser
If you'd like to use the react config, include the following dependencies:
yarn add -D \
@tanstack\eslint-plugin-query \
eslint-plugin-react \
eslint-plugin-react-hooks
And for the testing config, include these dependencies:
yarn add -D \
eslint-plugin-vitest \
eslint-plugin-testing-library
With dependencies installed, your eslint config can be extended like this:
{
"extends": [
"@imccausl/eslint-config"
],
"parserOptions": {
"project": "./tsconfig.json"
}
}