Skip to content

Latest commit

 

History

History
42 lines (33 loc) · 888 Bytes

README.md

File metadata and controls

42 lines (33 loc) · 888 Bytes

@clipboard-health/eslint-config

Our ESLint configuration.

Table of contents

Install

npm install -D @clipboard-health/eslint-config eslint-config-prettier prettier

Then, modify your .eslintrc.js file:

module.exports = {
  extends: ["@clipboard-health", "prettier"],
  overrides: [
    {
      files: ["*.ts", "*.tsx", "*.js", "*.jsx"],
      parserOptions: {
        project: "tsconfig.lint.json",
        tsconfigRootDir: __dirname,
      },
    },
    {
      files: ["*.spec.ts", "*.spec.tsx", "*.spec.js", "*.spec.jsx"],
      env: {
        jest: true,
      },
    },
  ],
  root: true,
};

Local development commands

See package.json scripts for a list of commands.