Skip to content

Latest commit

 

History

History
34 lines (23 loc) · 1.13 KB

README.md

File metadata and controls

34 lines (23 loc) · 1.13 KB

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.