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 [
{
ignores: ["src/create-edit-client-old/**/*"],
},
...canopyConfig,
{
rules: {
"@typescript-eslint/no-unused-vars": "off",
},
},
];