@kettil/eslint-config
TypeScript icon, indicating that this package has built-in type declarations

4.10.14 • Public • Published

ESLint rules collection

npm

The library is a collection of very strict ESLint rules.

Installation

npm install -D eslint @kettil/eslint-config

The following additional ESLint plugins are included by default:

Plugin required
eslint-plugin-import -
eslint-plugin-unicorn -
eslint-plugin-node -
eslint-plugin-eslint-comments -
eslint-plugin-sonarjs -
eslint-plugin-regexp -
@typescript-eslint/parser typescript
@typescript-eslint/eslint-plugin typescript
eslint-plugin-react react
eslint-plugin-react-hooks react
eslint-plugin-jsx-a11y react
eslint-plugin-formatjs react-intl
eslint-plugin-jest jest
eslint-plugin-testing-library @testing-library/react or @testing-library/react-hooks
eslint-plugin-jest-dom @testing-library/jest-dom

If the required library is installed, the rules are activated automatically. Additionally, rules are adjusted if the libraries next.js, and redux are installed.

Quick Start

If you want to use the rule collection, create the file .eslintrc.json with the following content:

{
  "extends": "@kettil"
}

or alternative for the browser @kettil/eslint-config/browser.

Dependents (2)

Package Sidebar

Install

npm i @kettil/eslint-config

Weekly Downloads

14

Version

4.10.14

License

MIT

Unpacked Size

245 kB

Total Files

99

Last publish

Collaborators

  • kettil