eslint-config-sandokan

0.22.0 • Public • Published

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.

Sandokan

Usage

  • If you don't have ESLint yet configured for your project, follow these instructions.
  • Install eslint-plugin-sandokan using npm (or yarn) 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 the extends 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

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.22.0138latest

Version History

VersionDownloads (Last 7 Days)Published
0.22.0138
0.21.30
0.20.021
0.19.00
0.18.00
0.17.00
0.16.02
0.15.00
0.14.00
0.13.00
0.12.33
0.12.20
0.12.00
0.11.00
0.10.00
0.9.00
0.8.00
0.7.00
0.6.00
0.5.00
0.4.10
0.4.00
0.3.00
0.2.00
0.1.00

Package Sidebar

Install

npm i eslint-config-sandokan

Weekly Downloads

156

Version

0.22.0

License

none

Unpacked Size

26.5 kB

Total Files

6

Last publish

Collaborators

  • anuovec