This is a monorepo repository for packages of eslint configurations.
add .npmrc
in your projects (For install from Github Packages)
@noplan-inc:registry="https://npm.pkg.github.com"
//npm.pkg.github.com/:_authToken=gh...
eslint-config-typescript
is a config for TypeScript projects.
npm install @noplan-inc/eslint-config-typescript
yarn add @noplan-inc/eslint-config-typescript
pnpm add @noplan-inc/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. You need to include .esconfig.js
at tsconfig.json
, using .eslintrc.js
npm install @noplan-inc/eslint-config-next
yarn add @noplan-inc/eslint-config-next
pnpm add @noplan-inc/eslint-config-next
insert the installed config to extends in .eslintrc
or .eslintrc.json
or .eslintrc.js
and set parserOptinos.project for typescript-eslint.
{
parserOptions: {
/* some parser options */
project: './tsconfig.json',
},
extends: [
/* some extends */
"@noplan-inc/eslint-config-typescript"
]
}
{
parserOptions: {
/* some parser options */
project: './tsconfig.json',
},
extends: [
/* some extends */
"@noplan-inc/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