@clipboard-health/eslint-config
Shared 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.