Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 634 Bytes

README.md

File metadata and controls

47 lines (32 loc) · 634 Bytes

@ejhammond/eslint-plugin

Usage

This package is included in @ejhammond/JSKit but can also be installed on its own.

yarn add @ejhammond/eslint-plugin

Depending on the project, extend react, or node.

// .eslintrc.js

module.exports = {
  extends: [
    'plugin:@ejhammond/react',
    // or
    'plugin:@ejhammond/node',
  ],
};

Rules

Base

ESLint recommended and TypeScript-ESLint recommended Import Prettier Jest (*.spec.{js,jsx,ts,tsx})

React

Base +

React recommended React Hooks JSX A11y

Node

Base +

Allows require Allows console.log