This is a monorepo repository for packages of eslint configurations.
add .npmrc
in your projects (For install from Github Packages)
@iemong:registry="https://npm.pkg.github.com"
//npm.pkg.github.com/:_authToken=gh...
eslint-config-typescript
is a config for TypeScript projects.
npm install @iemong/eslint-config-typescript
yarn add @iemong/eslint-config-typescript
pnpm add @iemong/eslint-config-typescript
eslint-config-next
is a config for Next.js + TypeScript projects. This config includes eslint-config-typescript
. So use this config only when setup Next.js projects.
npm install @iemong/eslint-config-next
yarn add @iemong/eslint-config-next
pnpm add @iemong/eslint-config-next
insert this config to extends in .eslintrc
or .eslintrc.json
or .eslintrc.js
{
"extends": [
/* some extends */
"@iemong/eslint-config-typescript"
]
}
{
"extends": [
/* some extends */
"@iemong/eslint-config-next"
]
}
- edit
packages/**/index.js
to custom eslint config. - run
pnpm changeset
(create a changeset) - run
pnpm changeset version
(update package versions) - push changes to main branch.
- run GitHub Workflow to publish their npm package as GitHub Packages