Skip to content

Commit

Permalink
fix: add cache to format and lint
Browse files Browse the repository at this point in the history
prettier: node_modules/.cache/prettier

eslint: .eslintcache

Signed-off-by: Anders F Björklund <anders.f.bjorklund@gmail.com>
  • Loading branch information
afbjorklund committed Jun 27, 2023
1 parent 3aba717 commit 1938c6e
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions website/.gitignore
Expand Up @@ -8,6 +8,9 @@
.docusaurus
.cache-loader

# Cache
.eslintcache

# Misc
.DS_Store
.env.local
Expand Down
9 changes: 5 additions & 4 deletions website/package.json
Expand Up @@ -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",
Expand Down

0 comments on commit 1938c6e

Please sign in to comment.