Skip to content

Files

Latest commit

 

History

History
57 lines (39 loc) · 1.21 KB

README.MD

File metadata and controls

57 lines (39 loc) · 1.21 KB




ESLint configuration

Beyonk ESLint rules

Usage

Installation:

pnpm i --save-dev eslint @beyonk/eslint-config

Create an eslint.config.mjs file in the root directory of your project, or monorepo.

If you want specific rules for a project within the monorepo, create this file there, too, and customise it as required.

Config files don't inherit from their parents.

import recommended from '@beyonk/eslint-config/recommended'

export default [
  ...recommended
]

Configs

There are multiple config types within the project that you can use. Look in package.json/exports for a comprehensive list:

import recommended from '@beyonk/eslint-config/recommended'
import svelte from '@beyonk/eslint-config/svelte'

export default [
  ...svelte
]

Releasing

To release a new version, check out the code on your local machine, then:

pnpm version minor
git push && git push --tags

Where minor is a sensible default for rule changes which will impact existing projects.