Skip to content

Latest commit

 

History

History
28 lines (22 loc) · 746 Bytes

README.md

File metadata and controls

28 lines (22 loc) · 746 Bytes

canopy-eslint

A standard eslint config for Canopy frontend developers. This assumes that you're using babel and babel-eslint babel-eslint.

Installation

yarn add -D eslint-config-canopy

Usage

Your project needs to use the new ESLint v9 flat config system. Create an eslint.config.mjs file in your project root (Remove .eslintrc if it exists):

import canopyConfig from "eslint-config-canopy";

export default [
  { // Specify directories/files to ignore here
    ignores: ["src/create-edit-client-old/**/*"],
  },
  ...canopyConfig,
  { // Override rules here
    rules: {
      "@typescript-eslint/no-unused-vars": "off",
    },
  },
];