WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
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 { defineConfig } from "eslint/config";
import eslintConfigIamnapo from "eslint-config-iamnapo";

const config = defineConfig([
	{
		files: [eslintConfigIamnapo.filePatterns.default],
		extends: [eslintConfigIamnapo.configs.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.

Packages