@darekkay/eslint-config

My shared ESLint configs


Keywords
eslint, eslintconfig, lint, eslint-config, eslint-rules
License
MIT
Install
npm install @darekkay/eslint-config@2.1.1

Documentation

@darekkay/eslint-config

npm (scoped) Travis license

My shared ESLint configs.

Usage

The configurations can be mixed, e.g. React + TypeScript.

For all configurations, those packages have to be installed:

yarn add -D eslint @darekkay/eslint-config eslint-plugin-unicorn eslint-plugin-prettier

You may require additional packages, depending on the environment.

Configurations

React

  • @darekkay/eslint-config/react

Configuration for React projects.

yarn add -D babel-eslint eslint-plugin-react eslint-plugin-react-hooks eslint-plugin-import eslint-plugin-jest eslint-plugin-jest-dom eslint-plugin-jsx-a11y eslint-plugin-testing-library

Node

  • @darekkay/eslint-config/node

Configuration for Node (non-browser) projects.

yarn add -D eslint-plugin-node

TypeScript

  • @darekkay/eslint-config/typescript

Configuration for TypeScript projects.

yarn add -D typescript @typescript-eslint/eslint-plugin @typescript-eslint/parser

Common/plugin configs

Errors vs. Warnings

ESLint warnings can and often will be easily ignored. That's why this config treats all ESLint violations as errors.

Publish steps

$ npm publish --access public

Resources

License

This project and its contents are open source under the MIT license.