From 2b60961812b9661ef0b444ea62132696965a17f1 Mon Sep 17 00:00:00 2001 From: Zach Pomerantz Date: Thu, 20 Apr 2023 13:44:57 -0700 Subject: [PATCH] build: use ignore-path for craco eslint (#6372) * build: add caching to eslint * build: add caching to jest * build: add caching to tsc * build: add caching to actions * fix: upgrade upload-artifact to v3 * build: update craco eslint cacheLocation * build: use ignore-path for craco eslint --- .eslintignore | 5 ----- .github/actions/setup/action.yml | 1 - craco.config.cjs | 1 + tsconfig.json | 1 + 4 files changed, 2 insertions(+), 6 deletions(-) delete mode 100644 .eslintignore diff --git a/.eslintignore b/.eslintignore deleted file mode 100644 index 98ca688355..0000000000 --- a/.eslintignore +++ /dev/null @@ -1,5 +0,0 @@ -*.config.ts -*.d.ts -/src/graphql/data/__generated__/types-and-hooks.ts -/src/graphql/thegraph/__generated__/types-and-hooks.ts -/src/schema/schema.graphql diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml index 7ccbb93061..c769821b72 100644 --- a/.github/actions/setup/action.yml +++ b/.github/actions/setup/action.yml @@ -10,7 +10,6 @@ runs: with: node-version: 14 registry-url: https://registry.npmjs.org - cache: yarn # node_modules/.cache is intentionally omitted, as this is used for build tool caches. - uses: actions/cache@v3 diff --git a/craco.config.cjs b/craco.config.cjs index c065fdf35a..5f9e54ecaa 100644 --- a/craco.config.cjs +++ b/craco.config.cjs @@ -29,6 +29,7 @@ module.exports = { return Object.assign(eslintConfig, { cache: true, cacheLocation: 'node_modules/.cache/eslint/', + ignorePath: '.gitignore', }) }, }, diff --git a/tsconfig.json b/tsconfig.json index 1ed396349e..0af1aa8827 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -8,6 +8,7 @@ "downlevelIteration": true, "esModuleInterop": true, "forceConsistentCasingInFileNames": true, + "incremental": true, "isolatedModules": true, "jsx": "react-jsx", "lib": ["DOM", "DOM.Iterable", "ESNext"],