ESLint shareable config for iamnapo’s coding style
npm i eslint-config-iamnapo -D
This config requires
eslint
and (optionally)typescript
to be installed.
Add to your eslint.config.js
one of the available configs (default
, react
, typescript
, react-typescript
) like so:
import eslintConfigIamnapo from "eslint-config-iamnapo";
const config = [
...eslintConfigIamnapo.configs.default.map(cfg => ({
...cfg,
files: [eslintConfigIamnapo.filePatterns.default],
})),
// your overrides
];
export default config;
Tip
filePatterns
contains some helpful patterns about each case, so you won’t have to figure them out yourself.