eslint-config-gev
Curated ESLint configs that I've been improving over the years. All my projects use this.
Since v4, this should be used together with Biome. Internally it uses my other package, the eslint-config-biome. If you want to stay without Biome, use v3 together with Prettier (I recommend prettier-config-gev)
💿 Install:
Automatically
Run npx eslint-config-gev <flavor>
, being flavor one of the following: ts, next, react, react-native, js
. This list and further options can be seen by running npx eslint-config-gev --help
.
This command adds the required package to your package.json and sets up the .eslintrc.cjs
.
Manually
npm i -D eslint-config-gev
- Add the following to the top of your .eslintrc.js:
require('@rushstack/eslint-patch/modern-module-resolution');
With it, you won't need to install eslint
and all the plugins we use!
Do one of the following
Typescript
Javascript
React
Typescript
Javascript
React Native
Typescript
Javascript