Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions .github/workflows/test-and-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,13 @@ jobs:
- name: 🗄 Cache .eslintcache
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # main
with:
path: .eslintcache
key: eslintcache-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}
path: "**/.eslintcache"
# Unique key per commit so the cache is refreshed when code changes,
# while restore-keys reuses the most recent previous cache as a base.
key: eslintcache-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}-${{ github.sha }}
restore-keys: |
eslintcache-${{ runner.os }}-${{ hashFiles('**/package-lock.json') }}-
eslintcache-${{ runner.os }}-

- name: 🔍 Install dependencies
if: steps.cache-node_modules.outputs.cache-hit != 'true'
Expand Down
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,7 @@ build/Release
node_modules

# Generated by TypeScript
dist
dist

# ESLint cache
.eslintcache
20 changes: 10 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,17 +66,17 @@
"release": "semantic-release",
"test": "run-p test:* test:presets:* test:rules:* test:styles:*",
"test:format": "prettier --check .",
"test:lint": "eslint --max-warnings 0 .",
"test:lint": "eslint --cache --max-warnings 0 .",
"test:publishable": "node ./semantic-release/verify-publishable.js",
"test:presets:javascript": "cd eslint/presets/javascript.test; eslint --max-warnings 0 .",
"test:presets:typescript": "cd eslint/presets/typescript.test; eslint --max-warnings 0 .",
"test:presets:typescript-react": "cd eslint/presets/typescript-react.test; eslint --max-warnings 0 .",
"test:rules:vitest": "cd eslint/rules/vitest.test; eslint --max-warnings 0 .",
"test:styles:jsx-no-literals": "cd eslint/styles/jsx-no-literals.test; eslint --max-warnings 0 .",
"test:styles:no-default-export": "cd eslint/styles/no-default-export.test; eslint --max-warnings 0 .",
"test:styles:no-null": "cd eslint/styles/no-null.test; eslint --max-warnings 0 .",
"test:styles:prefer-array-shorthand": "cd eslint/styles/prefer-array-shorthand.test; eslint --max-warnings 0 .",
"test:styles:prefer-interface": "cd eslint/styles/prefer-interface.test; eslint --max-warnings 0 .",
"test:presets:javascript": "cd eslint/presets/javascript.test; eslint --cache --max-warnings 0 .",
"test:presets:typescript": "cd eslint/presets/typescript.test; eslint --cache --max-warnings 0 .",
"test:presets:typescript-react": "cd eslint/presets/typescript-react.test; eslint --cache --max-warnings 0 .",
"test:rules:vitest": "cd eslint/rules/vitest.test; eslint --cache --max-warnings 0 .",
"test:styles:jsx-no-literals": "cd eslint/styles/jsx-no-literals.test; eslint --cache --max-warnings 0 .",
"test:styles:no-default-export": "cd eslint/styles/no-default-export.test; eslint --cache --max-warnings 0 .",
"test:styles:no-null": "cd eslint/styles/no-null.test; eslint --cache --max-warnings 0 .",
"test:styles:prefer-array-shorthand": "cd eslint/styles/prefer-array-shorthand.test; eslint --cache --max-warnings 0 .",
"test:styles:prefer-interface": "cd eslint/styles/prefer-interface.test; eslint --cache --max-warnings 0 .",
"test:types": "tsc --noEmit"
},
"dependencies": {
Expand Down
Loading