0.22.0 • Published 4 months ago
eslint-config-sandokan v0.22.0
eslint-plugin-sandokan
Eslint opinionated configuration for react projects, that use:
- React with hooks or are in process of refactoring to hooks
- Typescript
- React Query for data fetching
- Recoil as state management library
- Jest with Testing library for unit, integration testing and UI interaction testing
It also contains configuration for Prettier
and Typescript
.
Usage
- If you don't have ESLint yet configured for your project, follow these instructions.
- Install
eslint-plugin-sandokan
usingnpm
(oryarn
) for you project or globally:
npm install eslint-plugin-sandokan --save-dev # install for your project
npm install eslint-plugin-sandokan -g # or install globally
- Add
sandokan
to theextends
option to enable all recommended rules:
{
"extends": ["sandokan"]
}
Prettier
To use the shared Prettier config, set the following in .prettierrc.yaml
:
'eslint-config-sandokan/prettier'
TypeScript
To use the shared TypeScript config, set the following in tsconfig.json
.
{
"extends": "eslint-config-sandokan/typescript"
}
Testing config
The configuration is made for Jest and Testing Library.
it is applied to all files that ends with .test.
or .spec.
.
TODO
- unicorn/filename-case
0.22.0
4 months ago
0.21.3
6 months ago
0.20.0
1 year ago
0.19.0
1 year ago
0.17.0
2 years ago
0.18.0
2 years ago
0.16.0
2 years ago
0.15.0
2 years ago
0.14.0
3 years ago
0.13.0
3 years ago
0.12.3
3 years ago
0.12.0
3 years ago
0.12.2
3 years ago
0.11.0
3 years ago
0.10.0
3 years ago
0.9.0
3 years ago
0.8.0
3 years ago
0.7.0
3 years ago
0.6.0
3 years ago
0.3.0
4 years ago
0.5.0
4 years ago
0.4.1
4 years ago
0.4.0
4 years ago
0.2.0
4 years ago
0.1.0
4 years ago