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',
],
};
ESLint recommended and TypeScript-ESLint recommended Import Prettier Jest (*.spec.{js,jsx,ts,tsx})
Base +
React recommended React Hooks JSX A11y
Base +
Allows require
Allows console.log