@earthlink/eslint-config
v1.1.0
Published
Shared ESLint configuration: enforces ts-pattern over switch, const over let, and TypeScript strict practices
Readme
@earthlink/eslint-config
Shared ESLint configuration for the ELN ecosystem.
Rules enforced
- No switch statements: Use
ts-patternmatch()instead. Import from@earthlink/core. - const only:
prefer-constandno-varare errors. Avoidletwhere possible. - No console.log: Use
@earthlink/loggerinstead.console.warnandconsole.errorare allowed. - TypeScript strict: No unused vars, warn on
any.
Usage
Install peer dependencies:
npm install -D eslint @typescript-eslint/parser @typescript-eslint/eslint-pluginIn your .eslintrc.json:
{
"extends": "@earthlink/eslint-config"
}Or in eslint.config.mjs (flat config):
import earthlinkConfig from "@earthlink/eslint-config";
export default [earthlinkConfig];