Skip to content

darekkay/darekkay-eslint-config

Repository files navigation

@darekkay/eslint-config

npm (scoped) Build license

My shared ESLint configs.

Usage

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

For all configurations, install the following package:

npm install --save-dev @darekkay/eslint-config

You may require additional packages, depending on your environment:

# Babel
npm install --save-dev @babel/core @babel/preset-env @babel/preset-react @babel/eslint-parser

# TypeScript
npm install --save-dev typescript

Configurations

Those configurations are ready-to-use:

  • @darekkay/eslint-config/react: Config for React projects.
  • @darekkay/eslint-config/nodejs: Config for Node (non-browser) projects.
  • @darekkay/eslint-config/typescript: Config for TypeScript projects.

Common/plugin configs

Each plugin config can be imported individually:

Errors vs. Warnings

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

Similar projects

Unused plugins

There are some more useful ESLint plugins that are not (yet) part of this project.

Resources

License

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