diff --git a/website/.gitignore b/website/.gitignore index b2d6de30624f..1efa5050a160 100644 --- a/website/.gitignore +++ b/website/.gitignore @@ -8,6 +8,9 @@ .docusaurus .cache-loader +# Cache +.eslintcache + # Misc .DS_Store .env.local diff --git a/website/package.json b/website/package.json index ad6426a549fe..f45312b8af75 100644 --- a/website/package.json +++ b/website/package.json @@ -13,12 +13,13 @@ "write-translations": "docusaurus write-translations", "write-heading-ids": "docusaurus write-heading-ids", "typecheck": "tsc", - "format:check": "prettier --check '**/*.{md,js}' 'src/**/*.{css,ts,tsx}'", - "format:fix": "prettier --write '**/*.{md,js}' 'src/**/*.{css,ts,tsx}'", + "format:check": "prettier --cache --check '**/*.{md,js}' 'src/**/*.{css,ts,tsx}'", + "format:fix": "prettier --cache --write '**/*.{md,js}' 'src/**/*.{css,ts,tsx}'", "markdownlint:check": "markdownlint-cli2 --config ../.markdownlint.yaml \"**/*.md\" \"#node_modules\"", "markdownlint:fix": "markdownlint-cli2-fix --config ../.markdownlint.yaml \"**/*.md\" \"#node_modules\"", - "lint:check": "cd .. && eslint website --ext js,ts,tsx", - "lint:fix": "cd .. && eslint website --fix --ext js,ts,tsx" + "lint:check": "cd .. && eslint --cache --cache-location website/.eslintcache website --ext js,ts,tsx", + "lint:fix": "cd .. && eslint --cache --cache-location website/.eslintcache website --fix --ext js,ts,tsx", + "lint:clean": "rimraf .eslintcache" }, "dependencies": { "@docusaurus/core": "2.4.1",