Skip to content

iamnapo/eslint-config-iamnapo

Repository files navigation

eslint-config-iamnapo

ESLint shareable config for iamnapo’s coding style

build npm style

Install

npm i eslint-config-iamnapo -D

This config requires eslint and (optionally) typescript to be installed.

Usage

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.