1.1.0 • Published 11 months ago

@kodehort/eslint-config-kodehort v1.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

eslint-config-kodehort

eslint-config-kodehort is a curated set of ESLint configurations that can be across our projects and can be used in your projects. It includes a set of rules that are designed to help you write clean, maintainable, and error-free code. It is inspired by the config in template-typescript-node-package but with further customisation and intended to be included as a dependency across our projects. Rather than add this all to a template it is included as a package enabling updates to be pulled forward into consuming projects.

Installation

  1. You'll first need to install ESLint:
npm install eslint --save-dev
  1. Next, install eslint-config-kodehort, run the following command:
npm install --save-dev kodehort/eslint-config-kodehort

Or:

pnpm add kodehort/eslint-config-kodehort -D

Usage

To use eslint-config-kodehort, you need to extend it in your ESLint configuration file. Here's an example .eslintrc.json file:

{
  "extends": ["kodehort"],
  "rules": {
    // your custom rules here
  }
}

Included Packages

eslint-config-kodehort includes the following packages:

  • @typescript-eslint/eslint-plugin: Provides ESLint rules specific to TypeScript.
  • @typescript-eslint/parser: Parses TypeScript code for ESLint.
  • eslint-config-next: Provides ESLint rules for Next.js projects.
  • eslint-config-turbo: Provides ESLint rules for Turbo projects.
  • eslint-plugin-security: Provides ESLint rules for security vulnerabilities.
  • eslint-config-prettier: Disables ESLint rules that conflict with Prettier.
  • eslint-plugin-deprecation: Provides ...