Skip to content

Echobind's recommended eslint settings.

Notifications You must be signed in to change notification settings

echobind/eslint-plugin-echobind

Repository files navigation

Test

eslint-plugin-echobind

Echobind's recommended eslint rules and configs

Installation

You'll first need to install ESLint:

$ yarn add eslint

Next, install eslint-plugin-echobind:

$ yarn add eslint-plugin-echobind

Note: If you installed ESLint globally (using the -g flag) then you must also install eslint-plugin-echobind globally.

Usage

Eslint configs come bundled with this package. To use one, add it to the extends option in .eslintrc.js. For example, the following will use the React config:

module.exports = {
  extends: ["plugin:echobind/react"],
};

If working on a Node project, use the node config:

module.exports = {
  extends: ["plugin:echobind/node"],
};

Provided Configs

This plugin provides the following configs:

  • React: Use this for React projects with TypeScript
  • NodeJS: Use this for Node projects with TypeScript
  • React Native: Use this for React Native projects with TypeScript