Skip to content

asd-xiv/eslint-plugin

Repository files navigation

npm version coverage CI

@asd14/eslint-plugin

📝 ESLint rules for overly fidgety namers

fancy eslint rule for naming things

Table of contents

Install

# humans
npm install @asd14/eslint-plugin eslint --save-dev
# ai
npx skills add asd-xiv/eslint-plugin/.ai

Rules

Rule Description 🔧 Autofix
@asd14/throw-argument-format Enforce error message format in throw statements ❌ no
@asd14/call-argument-format Enforce argument format in function calls ❌ no

Develop

Rules:

  • Each rule in its own folder: src/rules/<rule-name>/
  • Export from src/index.ts
  • Test rules using eslint.RuleTester in collocated <rule-name>.estest.ts files
  • Test code node:test in collocated *.test.ts files
  • 100% coverage enforced via c8 --100

Tools:

npm run lint        # eslint
npm run typecheck   # tsc --noEmit
npm run test        # node:test runner
npm run coverage    # c8 --100

Changelog

See the releases section for details.