Module @clipboard-health/eslint-config - v4.18.2

@clipboard-health/eslint-config

Our ESLint configuration.

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,
};

See package.json scripts for a list of commands.