@kirill.konshin/lint 0.3.4 → 0.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kirill.konshin/lint",
3
3
  "description": "ESLint + Prettier + lint-staged config and AI agent rules/skills for monorepos",
4
- "version": "0.3.4",
4
+ "version": "0.3.5",
5
5
  "type": "module",
6
6
  "skipGenerate": true,
7
7
  "bin": {
package/rules/github.md CHANGED
@@ -28,6 +28,7 @@ jobs:
28
28
  runs-on: ubuntu-latest
29
29
  env:
30
30
  TURBO_CACHE_DIR: .turbo # if project uses Turbo
31
+ YARN_ENABLE_GLOBAL_CACHE: false # so that .yarn/cache is written
31
32
 
32
33
  # If project publishes to NPM
33
34
  # https://davistobias.com/articles/adding-changeset/#2.1.b-adding-changeset-to-github-workflows
@@ -52,6 +53,10 @@ jobs:
52
53
  - name: Enable Corepack
53
54
  run: corepack enable
54
55
 
56
+ - name: Get yarn cache directory path
57
+ id: yarn-cache-dir-path
58
+ run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT
59
+
55
60
  - name: Install dependencies
56
61
  run: yarn install --immutable
57
62
 
@@ -59,10 +64,18 @@ jobs:
59
64
  - name: Prepare
60
65
  run: yarn prepare
61
66
 
67
+ - uses: actions/cache@v6
68
+ id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
69
+ with:
70
+ path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
71
+ key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
72
+ restore-keys: |
73
+ ${{ runner.os }}-yarn-
74
+
62
75
  #TODO https://turbo.build/repo/docs/guides/ci-vendors/github-actions#remote-caching
63
76
  #TODO https://turborepo.dev/docs/guides/ci-vendors/github-actions#remote-caching-with-github-actionscache
64
77
  - name: Cache turbo build setup
65
- uses: actions/cache@v4
78
+ uses: actions/cache@v6
66
79
  with:
67
80
  path: .turbo
68
81
  key: ${{ runner.os }}-turbo-${{ github.sha }}
package/rules/gitlab.md CHANGED
@@ -13,6 +13,8 @@ paths:
13
13
  ```yml
14
14
  build:
15
15
  image: node:24
16
+ env:
17
+ YARN_ENABLE_GLOBAL_CACHE: false # so that .yarn/cache is written
16
18
  cache:
17
19
  key:
18
20
  files:
@@ -24,7 +26,7 @@ build:
24
26
  - '**/node_modules'
25
27
  - '**/.turbo'
26
28
  - '**/.tscache'
27
- - web/.next/cache
29
+ - '**/.next/cache'
28
30
  script:
29
31
  - yarn --immutable
30
32
  - yarn prepare # Add this if Yarn 2+ is used and package is NOT private
package/rules/npm-yarn.md CHANGED
@@ -60,10 +60,21 @@ All other `package.json`:
60
60
 
61
61
  # `.yarnrc.yml`
62
62
 
63
+ Make sure `yarnPath` is not specified, rely on `packageManager` in `package.json` and Corepack.
64
+
63
65
  ```yml
64
- yarnPath: .yarn/releases/yarn-4.5.1.cjs
66
+ approvedGitRepositories:
67
+ - '**'
68
+
69
+ compressionLevel: mixed
70
+
71
+ enableScripts: true
72
+
65
73
  nodeLinker: node-modules
66
- # compressionLevel: mixed
67
- # enableGlobalCache: false
68
- # checksumBehavior: update
74
+
75
+ npmMinimalAgeGate: 0
76
+
77
+ # own packages are exempt from the minimum-release-age quarantine (npmMinimalAgeGate)
78
+ npmPreapprovedPackages:
79
+ - '@kirill.konshin/*'
69
80
  ```