@culur/config-eslint 1.2.7 → 1.4.0
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/CHANGELOG.md +39 -0
- package/dist/chunk-34KGRL7Y.js +60 -0
- package/dist/chunk-34KGRL7Y.js.map +1 -0
- package/dist/{chunk-KN3PLU2G.cjs → chunk-4QPI2SAB.cjs} +9 -9
- package/dist/chunk-4QPI2SAB.cjs.map +1 -0
- package/dist/chunk-57VLPYOX.cjs +169 -0
- package/dist/chunk-57VLPYOX.cjs.map +1 -0
- package/dist/chunk-7AK343NH.js +29 -0
- package/dist/chunk-7AK343NH.js.map +1 -0
- package/dist/chunk-7E5Q2JAD.cjs +11 -0
- package/dist/chunk-7E5Q2JAD.cjs.map +1 -0
- package/dist/chunk-7XSKNEKZ.js +42 -0
- package/dist/chunk-7XSKNEKZ.js.map +1 -0
- package/dist/chunk-ADFLVWBI.js +71 -0
- package/dist/chunk-ADFLVWBI.js.map +1 -0
- package/dist/chunk-B5LT54QB.cjs +4 -0
- package/dist/{chunk-E5EMCYCV.cjs.map → chunk-B5LT54QB.cjs.map} +1 -1
- package/dist/chunk-EIOVMZZG.cjs +35 -0
- package/dist/chunk-EIOVMZZG.cjs.map +1 -0
- package/dist/chunk-FAZZKQ2N.js +37 -0
- package/dist/chunk-FAZZKQ2N.js.map +1 -0
- package/dist/chunk-IDYE4YOL.cjs +44 -0
- package/dist/chunk-IDYE4YOL.cjs.map +1 -0
- package/dist/chunk-IW6EN63T.js +167 -0
- package/dist/chunk-IW6EN63T.js.map +1 -0
- package/dist/chunk-IZ6BHA77.cjs +38 -0
- package/dist/chunk-IZ6BHA77.cjs.map +1 -0
- package/dist/{chunk-HTFVO7PM.js → chunk-L7ZLPRIG.js} +2 -2
- package/dist/chunk-L7ZLPRIG.js.map +1 -0
- package/dist/chunk-LTO3ELVV.cjs +62 -0
- package/dist/chunk-LTO3ELVV.cjs.map +1 -0
- package/dist/{chunk-CXG4MLTZ.cjs → chunk-LYCFRD6B.cjs} +2 -2
- package/dist/chunk-LYCFRD6B.cjs.map +1 -0
- package/dist/chunk-N23I5XG5.cjs +39 -0
- package/dist/chunk-N23I5XG5.cjs.map +1 -0
- package/dist/chunk-NBGGFQGT.cjs +73 -0
- package/dist/chunk-NBGGFQGT.cjs.map +1 -0
- package/dist/chunk-NJ4DHXCJ.js +187 -0
- package/dist/chunk-NJ4DHXCJ.js.map +1 -0
- package/dist/chunk-OP3ZXBGI.js +3 -0
- package/dist/{chunk-5VT4PGNG.js.map → chunk-OP3ZXBGI.js.map} +1 -1
- package/dist/chunk-PLLR3GUB.cjs +47 -0
- package/dist/chunk-PLLR3GUB.cjs.map +1 -0
- package/dist/chunk-PQWFXG2M.js +3 -0
- package/dist/{chunk-BV3HMMMY.js.map → chunk-PQWFXG2M.js.map} +1 -1
- package/dist/chunk-RCWWFUNP.cjs +43 -0
- package/dist/chunk-RCWWFUNP.cjs.map +1 -0
- package/dist/chunk-RQTUYUMU.js +9 -0
- package/dist/chunk-RQTUYUMU.js.map +1 -0
- package/dist/chunk-S6FJNCD7.js +41 -0
- package/dist/chunk-S6FJNCD7.js.map +1 -0
- package/dist/chunk-TA5YEKPP.cjs +4 -0
- package/dist/{chunk-KA55FMNP.cjs.map → chunk-TA5YEKPP.cjs.map} +1 -1
- package/dist/chunk-VQCPNYZY.cjs +189 -0
- package/dist/chunk-VQCPNYZY.cjs.map +1 -0
- package/dist/chunk-X5D52UEW.js +45 -0
- package/dist/chunk-X5D52UEW.js.map +1 -0
- package/dist/chunk-ZJQ4LO2W.js +36 -0
- package/dist/chunk-ZJQ4LO2W.js.map +1 -0
- package/dist/{chunk-HXCKETJH.js → chunk-ZPBJ5K4H.js} +8 -8
- package/dist/chunk-ZPBJ5K4H.js.map +1 -0
- package/dist/index.cjs +21 -8
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +18 -5
- package/dist/index.js.map +1 -1
- package/dist/overrides/imports-rules.d.cts +1 -0
- package/dist/overrides/imports-rules.d.ts +1 -0
- package/dist/overrides/index.cjs +6 -1
- package/dist/overrides/index.d.cts +2 -0
- package/dist/overrides/index.d.ts +2 -0
- package/dist/overrides/index.js +2 -1
- package/dist/overrides/sort-package-json.d.cts +1 -0
- package/dist/overrides/sort-package-json.d.ts +1 -0
- package/dist/overrides/test-rules.cjs +12 -0
- package/dist/overrides/test-rules.cjs.map +1 -0
- package/dist/overrides/test-rules.d.cts +20 -0
- package/dist/overrides/test-rules.d.ts +20 -0
- package/dist/overrides/test-rules.js +3 -0
- package/dist/overrides/test-rules.js.map +1 -0
- package/dist/overrides/vue-rules.d.cts +1 -0
- package/dist/overrides/vue-rules.d.ts +1 -0
- package/dist/rules/index.cjs +24 -10
- package/dist/rules/index.d.cts +2 -1
- package/dist/rules/index.d.ts +2 -1
- package/dist/rules/index.js +12 -2
- package/dist/rules/renovate-json/base/assignees-and-reviewers-config.cjs +12 -0
- package/dist/rules/renovate-json/base/assignees-and-reviewers-config.cjs.map +1 -0
- package/dist/rules/renovate-json/base/assignees-and-reviewers-config.d.cts +7 -0
- package/dist/rules/renovate-json/base/assignees-and-reviewers-config.d.ts +7 -0
- package/dist/rules/renovate-json/base/assignees-and-reviewers-config.js +3 -0
- package/dist/rules/renovate-json/base/assignees-and-reviewers-config.js.map +1 -0
- package/dist/rules/renovate-json/base/config-migration.cjs +12 -0
- package/dist/rules/renovate-json/base/config-migration.cjs.map +1 -0
- package/dist/rules/renovate-json/base/config-migration.d.cts +3 -0
- package/dist/rules/renovate-json/base/config-migration.d.ts +3 -0
- package/dist/rules/renovate-json/base/config-migration.js +3 -0
- package/dist/rules/renovate-json/base/config-migration.js.map +1 -0
- package/dist/rules/renovate-json/base/legacy-admin-config.cjs +12 -0
- package/dist/rules/renovate-json/base/legacy-admin-config.cjs.map +1 -0
- package/dist/rules/renovate-json/base/legacy-admin-config.d.cts +7 -0
- package/dist/rules/renovate-json/base/legacy-admin-config.d.ts +7 -0
- package/dist/rules/renovate-json/base/legacy-admin-config.js +3 -0
- package/dist/rules/renovate-json/base/legacy-admin-config.js.map +1 -0
- package/dist/rules/renovate-json/base/package-rule.cjs +12 -0
- package/dist/rules/renovate-json/base/package-rule.cjs.map +1 -0
- package/dist/rules/renovate-json/base/package-rule.d.cts +10 -0
- package/dist/rules/renovate-json/base/package-rule.d.ts +10 -0
- package/dist/rules/renovate-json/base/package-rule.js +3 -0
- package/dist/rules/renovate-json/base/package-rule.js.map +1 -0
- package/dist/rules/renovate-json/base/renovate-config.cjs +12 -0
- package/dist/rules/renovate-json/base/renovate-config.cjs.map +1 -0
- package/dist/rules/renovate-json/base/renovate-config.d.cts +20 -0
- package/dist/rules/renovate-json/base/renovate-config.d.ts +20 -0
- package/dist/rules/renovate-json/base/renovate-config.js +3 -0
- package/dist/rules/renovate-json/base/renovate-config.js.map +1 -0
- package/dist/rules/renovate-json/base/renovate-shared-config.cjs +12 -0
- package/dist/rules/renovate-json/base/renovate-shared-config.cjs.map +1 -0
- package/dist/rules/renovate-json/base/renovate-shared-config.d.cts +15 -0
- package/dist/rules/renovate-json/base/renovate-shared-config.d.ts +15 -0
- package/dist/rules/renovate-json/base/renovate-shared-config.js +3 -0
- package/dist/rules/renovate-json/base/renovate-shared-config.js.map +1 -0
- package/dist/rules/renovate-json/base/types.cjs +4 -0
- package/dist/rules/renovate-json/base/types.cjs.map +1 -0
- package/dist/rules/renovate-json/base/types.d.cts +9 -0
- package/dist/rules/renovate-json/base/types.d.ts +9 -0
- package/dist/rules/renovate-json/base/types.js +3 -0
- package/dist/rules/renovate-json/base/types.js.map +1 -0
- package/dist/rules/renovate-json/base/update-config.cjs +12 -0
- package/dist/rules/renovate-json/base/update-config.cjs.map +1 -0
- package/dist/rules/renovate-json/base/update-config.d.cts +8 -0
- package/dist/rules/renovate-json/base/update-config.d.ts +8 -0
- package/dist/rules/renovate-json/base/update-config.js +3 -0
- package/dist/rules/renovate-json/base/update-config.js.map +1 -0
- package/dist/rules/renovate-json/index.cjs +21 -0
- package/dist/rules/renovate-json/index.cjs.map +1 -0
- package/dist/rules/renovate-json/index.d.cts +5 -0
- package/dist/rules/renovate-json/index.d.ts +5 -0
- package/dist/rules/renovate-json/index.js +12 -0
- package/dist/rules/renovate-json/index.js.map +1 -0
- package/dist/rules/renovate-json/order/package-rule.cjs +15 -0
- package/dist/rules/renovate-json/order/package-rule.cjs.map +1 -0
- package/dist/rules/renovate-json/order/package-rule.d.cts +8 -0
- package/dist/rules/renovate-json/order/package-rule.d.ts +8 -0
- package/dist/rules/renovate-json/order/package-rule.js +6 -0
- package/dist/rules/renovate-json/order/package-rule.js.map +1 -0
- package/dist/rules/renovate-json/order/root.cjs +18 -0
- package/dist/rules/renovate-json/order/root.cjs.map +1 -0
- package/dist/rules/renovate-json/order/root.d.cts +8 -0
- package/dist/rules/renovate-json/order/root.d.ts +8 -0
- package/dist/rules/renovate-json/order/root.js +9 -0
- package/dist/rules/renovate-json/order/root.js.map +1 -0
- package/dist/rules/yarnrc-yml.cjs +6 -6
- package/dist/rules/yarnrc-yml.d.cts +3 -3
- package/dist/rules/yarnrc-yml.d.ts +3 -3
- package/dist/rules/yarnrc-yml.js +1 -1
- package/dist/types/index.cjs +2 -2
- package/dist/types/index.d.cts +4 -2
- package/dist/types/index.d.ts +4 -2
- package/dist/types/index.js +1 -1
- package/package.json +7 -6
- package/src/index.ts +5 -2
- package/src/overrides/index.ts +1 -0
- package/src/overrides/test-rules.ts +43 -0
- package/src/rules/index.ts +1 -0
- package/src/rules/renovate-json/base/assignees-and-reviewers-config.ts +26 -0
- package/src/rules/renovate-json/base/config-migration.ts +5 -0
- package/src/rules/renovate-json/base/legacy-admin-config.ts +30 -0
- package/src/rules/renovate-json/base/package-rule.ts +49 -0
- package/src/rules/renovate-json/base/renovate-config.ts +132 -0
- package/src/rules/renovate-json/base/renovate-shared-config.ts +114 -0
- package/src/rules/renovate-json/base/types.ts +15 -0
- package/src/rules/renovate-json/base/update-config.ts +34 -0
- package/src/rules/renovate-json/index.ts +32 -0
- package/src/rules/renovate-json/order/package-rule.ts +48 -0
- package/src/rules/renovate-json/order/root.ts +69 -0
- package/src/rules/yarnrc-yml.ts +5 -5
- package/src/types/index.ts +12 -1
- package/dist/chunk-5VT4PGNG.js +0 -3
- package/dist/chunk-BV3HMMMY.js +0 -3
- package/dist/chunk-CXG4MLTZ.cjs.map +0 -1
- package/dist/chunk-E5EMCYCV.cjs +0 -4
- package/dist/chunk-HTFVO7PM.js.map +0 -1
- package/dist/chunk-HXCKETJH.js.map +0 -1
- package/dist/chunk-KA55FMNP.cjs +0 -4
- package/dist/chunk-KN3PLU2G.cjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,44 @@
|
|
|
1
1
|
# @culur/config-eslint
|
|
2
2
|
|
|
3
|
+
## 1.4.0
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- ✨ Add `@vitest/eslint-plugin` ([`dee4cd3`](https://github.com/culur/culur/commit/dee4cd34d146a79867f6cc6b3f065f3e988732d0)) ([@phamhongphuc](https://github.com/phamhongphuc)).
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- 🔨 Refactor: rename `yamlYarnrcRules` to `yarnrcYmlRules`, nothing changes in the bundle code ([`2d2c2b5`](https://github.com/culur/culur/commit/2d2c2b56805af2bba36fc52064145f1ebbd02029)) ([@phamhongphuc](https://github.com/phamhongphuc)).
|
|
12
|
+
|
|
13
|
+
- 🚨 Test: update unit tests for new ESLint setup ([`a59db17`](https://github.com/culur/culur/commit/a59db173a6ce8389beb04d11f2afcebcaf862b05)) ([@phamhongphuc](https://github.com/phamhongphuc)).
|
|
14
|
+
|
|
15
|
+
- 📦 Update workspace dependencies:
|
|
16
|
+
- [`@culur/utils-packages@1.2.1`](https://github.com/culur/culur/tree/main/packages/utils-packages#readme)
|
|
17
|
+
|
|
18
|
+
## 1.3.0
|
|
19
|
+
|
|
20
|
+
### Minor Changes
|
|
21
|
+
|
|
22
|
+
- ✨ Add `culur/renovate-json/rules` for **Renovate configurations** ([`5ba37f6`](https://github.com/culur/culur/commit/5ba37f611ea1240a75af798762bc88c2fef7f281)) ([@phamhongphuc](https://github.com/phamhongphuc)):
|
|
23
|
+
|
|
24
|
+
- This new rule enforces consistent key sorting within Renovate configuration files
|
|
25
|
+
- Currently, it automatically sorts the keys in the following sections:
|
|
26
|
+
- The root-level configuration object.
|
|
27
|
+
- Each individual object within the `packageRules` array.
|
|
28
|
+
|
|
29
|
+
### Patch Changes
|
|
30
|
+
|
|
31
|
+
- ⚙️ Update dependencies ([`3e1bde7`](https://github.com/culur/culur/commit/3e1bde7c0641a97c5b48e44294bb856b1b1988b4)) ([@renovate](https://github.com/apps/renovate)):
|
|
32
|
+
|
|
33
|
+
- `dependencies`:
|
|
34
|
+
- `@antfu/eslint-config@^4.12.0`
|
|
35
|
+
- `devDependencies`:
|
|
36
|
+
- `@eslint/eslintrc@^3.3.1`
|
|
37
|
+
- `type-fest@^4.40.1`
|
|
38
|
+
|
|
39
|
+
- 📦 Update workspace dependencies:
|
|
40
|
+
- [`@culur/utils-packages@1.2.1`](https://github.com/culur/culur/tree/main/packages/utils-packages#readme)
|
|
41
|
+
|
|
3
42
|
## 1.2.7
|
|
4
43
|
|
|
5
44
|
### Patch Changes
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { renovateSharedConfig } from './chunk-IW6EN63T.js';
|
|
2
|
+
import { updateConfig } from './chunk-X5D52UEW.js';
|
|
3
|
+
import { assigneesAndReviewersConfig } from './chunk-FAZZKQ2N.js';
|
|
4
|
+
import { configMigration } from './chunk-RQTUYUMU.js';
|
|
5
|
+
import { legacyAdminConfig } from './chunk-7XSKNEKZ.js';
|
|
6
|
+
import { renovateConfig } from './chunk-NJ4DHXCJ.js';
|
|
7
|
+
|
|
8
|
+
// src/rules/renovate-json/order/root.ts
|
|
9
|
+
var rootOrder = [
|
|
10
|
+
//? core config
|
|
11
|
+
...renovateSharedConfig.config,
|
|
12
|
+
...renovateConfig.metadata,
|
|
13
|
+
...renovateConfig.repository,
|
|
14
|
+
...renovateConfig.forkHandling,
|
|
15
|
+
...renovateSharedConfig.branch,
|
|
16
|
+
//? migration & dashboard
|
|
17
|
+
...configMigration,
|
|
18
|
+
...renovateConfig.dependencyDashboard,
|
|
19
|
+
...renovateSharedConfig.dependencyDashboard,
|
|
20
|
+
//? schedule
|
|
21
|
+
...renovateSharedConfig.schedule,
|
|
22
|
+
...renovateSharedConfig.automerge,
|
|
23
|
+
...renovateConfig.limits,
|
|
24
|
+
//? grouping
|
|
25
|
+
...renovateSharedConfig.grouping,
|
|
26
|
+
...renovateSharedConfig.commit,
|
|
27
|
+
...renovateSharedConfig.pr,
|
|
28
|
+
...renovateSharedConfig.labels,
|
|
29
|
+
...renovateSharedConfig.filtering,
|
|
30
|
+
...renovateConfig.namingSpecifics,
|
|
31
|
+
...assigneesAndReviewersConfig.assignees,
|
|
32
|
+
...assigneesAndReviewersConfig.reviewers,
|
|
33
|
+
...assigneesAndReviewersConfig.common,
|
|
34
|
+
//? registriesNetwork
|
|
35
|
+
...renovateConfig.registriesNetwork,
|
|
36
|
+
//? vulnerabilities
|
|
37
|
+
...renovateConfig.vulnerabilities,
|
|
38
|
+
...renovateConfig.vulnerabilitiesShared,
|
|
39
|
+
//? rarely
|
|
40
|
+
...renovateSharedConfig.advanced,
|
|
41
|
+
...renovateConfig.customization,
|
|
42
|
+
...renovateConfig.reporting,
|
|
43
|
+
...renovateConfig.inheritance,
|
|
44
|
+
...renovateConfig.processControl,
|
|
45
|
+
...renovateConfig.constraints,
|
|
46
|
+
...renovateConfig.internalContext,
|
|
47
|
+
...legacyAdminConfig.onboarding,
|
|
48
|
+
...legacyAdminConfig.executionLogging,
|
|
49
|
+
...legacyAdminConfig.configurationRequirements,
|
|
50
|
+
//? overrides
|
|
51
|
+
...updateConfig.semantic_versioning,
|
|
52
|
+
...updateConfig.pinning_digests,
|
|
53
|
+
...updateConfig.lock_file,
|
|
54
|
+
...updateConfig.special_cases,
|
|
55
|
+
...renovateConfig.packageRules
|
|
56
|
+
];
|
|
57
|
+
|
|
58
|
+
export { rootOrder };
|
|
59
|
+
//# sourceMappingURL=chunk-34KGRL7Y.js.map
|
|
60
|
+
//# sourceMappingURL=chunk-34KGRL7Y.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/rules/renovate-json/order/root.ts"],"names":[],"mappings":";;;;;;;;AAcO,IAAM,SAAY,GAAA;AAAA;AAAA,EAEvB,GAAG,oBAAqB,CAAA,MAAA;AAAA,EACxB,GAAG,cAAe,CAAA,QAAA;AAAA,EAClB,GAAG,cAAe,CAAA,UAAA;AAAA,EAClB,GAAG,cAAe,CAAA,YAAA;AAAA,EAClB,GAAG,oBAAqB,CAAA,MAAA;AAAA;AAAA,EAGxB,GAAG,eAAA;AAAA,EACH,GAAG,cAAe,CAAA,mBAAA;AAAA,EAClB,GAAG,oBAAqB,CAAA,mBAAA;AAAA;AAAA,EAGxB,GAAG,oBAAqB,CAAA,QAAA;AAAA,EACxB,GAAG,oBAAqB,CAAA,SAAA;AAAA,EACxB,GAAG,cAAe,CAAA,MAAA;AAAA;AAAA,EAGlB,GAAG,oBAAqB,CAAA,QAAA;AAAA,EACxB,GAAG,oBAAqB,CAAA,MAAA;AAAA,EACxB,GAAG,oBAAqB,CAAA,EAAA;AAAA,EACxB,GAAG,oBAAqB,CAAA,MAAA;AAAA,EACxB,GAAG,oBAAqB,CAAA,SAAA;AAAA,EACxB,GAAG,cAAe,CAAA,eAAA;AAAA,EAClB,GAAG,2BAA4B,CAAA,SAAA;AAAA,EAC/B,GAAG,2BAA4B,CAAA,SAAA;AAAA,EAC/B,GAAG,2BAA4B,CAAA,MAAA;AAAA;AAAA,EAG/B,GAAG,cAAe,CAAA,iBAAA;AAAA;AAAA,EAGlB,GAAG,cAAe,CAAA,eAAA;AAAA,EAClB,GAAG,cAAe,CAAA,qBAAA;AAAA;AAAA,EAGlB,GAAG,oBAAqB,CAAA,QAAA;AAAA,EACxB,GAAG,cAAe,CAAA,aAAA;AAAA,EAClB,GAAG,cAAe,CAAA,SAAA;AAAA,EAClB,GAAG,cAAe,CAAA,WAAA;AAAA,EAClB,GAAG,cAAe,CAAA,cAAA;AAAA,EAClB,GAAG,cAAe,CAAA,WAAA;AAAA,EAClB,GAAG,cAAe,CAAA,eAAA;AAAA,EAClB,GAAG,iBAAkB,CAAA,UAAA;AAAA,EACrB,GAAG,iBAAkB,CAAA,gBAAA;AAAA,EACrB,GAAG,iBAAkB,CAAA,yBAAA;AAAA;AAAA,EAGrB,GAAG,YAAa,CAAA,mBAAA;AAAA,EAChB,GAAG,YAAa,CAAA,eAAA;AAAA,EAChB,GAAG,YAAa,CAAA,SAAA;AAAA,EAChB,GAAG,YAAa,CAAA,aAAA;AAAA,EAChB,GAAG,cAAe,CAAA;AACpB","file":"chunk-34KGRL7Y.js","sourcesContent":["import type { JsoncSortKeysOrder } from '../base/types';\nimport { assigneesAndReviewersConfig } from '../base/assignees-and-reviewers-config';\nimport { configMigration } from '../base/config-migration';\nimport { legacyAdminConfig } from '../base/legacy-admin-config';\nimport { renovateConfig } from '../base/renovate-config';\nimport { renovateSharedConfig } from '../base/renovate-shared-config';\nimport { updateConfig } from '../base/update-config';\n\n// RenovateConfig\n// LegacyAdminConfig,\n// RenovateSharedConfig,\n// UpdateConfig<PackageRule>,\n// AssigneesAndReviewersConfig,\n// ConfigMigration,\nexport const rootOrder = [\n //? core config\n ...renovateSharedConfig.config,\n ...renovateConfig.metadata,\n ...renovateConfig.repository,\n ...renovateConfig.forkHandling,\n ...renovateSharedConfig.branch,\n\n //? migration & dashboard\n ...configMigration,\n ...renovateConfig.dependencyDashboard,\n ...renovateSharedConfig.dependencyDashboard,\n\n //? schedule\n ...renovateSharedConfig.schedule,\n ...renovateSharedConfig.automerge,\n ...renovateConfig.limits,\n\n //? grouping\n ...renovateSharedConfig.grouping,\n ...renovateSharedConfig.commit,\n ...renovateSharedConfig.pr,\n ...renovateSharedConfig.labels,\n ...renovateSharedConfig.filtering,\n ...renovateConfig.namingSpecifics,\n ...assigneesAndReviewersConfig.assignees,\n ...assigneesAndReviewersConfig.reviewers,\n ...assigneesAndReviewersConfig.common,\n\n //? registriesNetwork\n ...renovateConfig.registriesNetwork,\n\n //? vulnerabilities\n ...renovateConfig.vulnerabilities,\n ...renovateConfig.vulnerabilitiesShared,\n\n //? rarely\n ...renovateSharedConfig.advanced,\n ...renovateConfig.customization,\n ...renovateConfig.reporting,\n ...renovateConfig.inheritance,\n ...renovateConfig.processControl,\n ...renovateConfig.constraints,\n ...renovateConfig.internalContext,\n ...legacyAdminConfig.onboarding,\n ...legacyAdminConfig.executionLogging,\n ...legacyAdminConfig.configurationRequirements,\n\n //? overrides\n ...updateConfig.semantic_versioning,\n ...updateConfig.pinning_digests,\n ...updateConfig.lock_file,\n ...updateConfig.special_cases,\n ...renovateConfig.packageRules,\n] as const as JsoncSortKeysOrder;\n"]}
|
|
@@ -6,7 +6,7 @@ var yamlOrder = {
|
|
|
6
6
|
caseSensitive: false,
|
|
7
7
|
natural: true
|
|
8
8
|
};
|
|
9
|
-
var
|
|
9
|
+
var yarnrcYmlSortKeys = {
|
|
10
10
|
packageExtensions: {
|
|
11
11
|
packages: {
|
|
12
12
|
pathPattern: /^packageExtensions$/.source,
|
|
@@ -22,21 +22,21 @@ var yamlYarnrcSortKeys = {
|
|
|
22
22
|
}
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
var
|
|
25
|
+
var yarnrcYmlRules = {
|
|
26
26
|
name: "culur/yarnrc-yml/rules",
|
|
27
27
|
files: [".yarnrc.yml"],
|
|
28
28
|
rules: {
|
|
29
29
|
"yaml/sort-keys": [
|
|
30
30
|
"error",
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
yarnrcYmlSortKeys.packageExtensions.packages,
|
|
32
|
+
yarnrcYmlSortKeys.packageExtensions.dependenciesTypes,
|
|
33
|
+
yarnrcYmlSortKeys.packageExtensions.childPackages
|
|
34
34
|
]
|
|
35
35
|
}
|
|
36
36
|
};
|
|
37
37
|
|
|
38
38
|
exports.yamlOrder = yamlOrder;
|
|
39
|
-
exports.
|
|
40
|
-
exports.
|
|
41
|
-
//# sourceMappingURL=chunk-
|
|
42
|
-
//# sourceMappingURL=chunk-
|
|
39
|
+
exports.yarnrcYmlRules = yarnrcYmlRules;
|
|
40
|
+
exports.yarnrcYmlSortKeys = yarnrcYmlSortKeys;
|
|
41
|
+
//# sourceMappingURL=chunk-4QPI2SAB.cjs.map
|
|
42
|
+
//# sourceMappingURL=chunk-4QPI2SAB.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/rules/yarnrc-yml.ts"],"names":[],"mappings":";;;AAUO,IAAM,SAAY,GAAA;AAAA,EACvB,IAAM,EAAA,KAAA;AAAA,EACN,aAAe,EAAA,KAAA;AAAA,EACf,OAAS,EAAA;AACX;AAEO,IAAM,iBAAoB,GAAA;AAAA,EAC/B,iBAAmB,EAAA;AAAA,IACjB,QAAU,EAAA;AAAA,MACR,aAAa,qBAAsB,CAAA,MAAA;AAAA,MACnC,KAAO,EAAA;AAAA,KACT;AAAA,IACA,iBAAmB,EAAA;AAAA,MACjB,aAAa,yCAA0C,CAAA,MAAA;AAAA,MACvD,KAAO,EAAA;AAAA,KACT;AAAA,IACA,aAAe,EAAA;AAAA,MACb,aACE,iGACG,CAAA,MAAA;AAAA,MACL,KAAO,EAAA;AAAA;AACT;AAEJ;AAEO,IAAM,cAAsC,GAAA;AAAA,EACjD,IAAM,EAAA,wBAAA;AAAA,EACN,KAAA,EAAO,CAAC,aAAa,CAAA;AAAA,EACrB,KAAO,EAAA;AAAA,IACL,gBAAkB,EAAA;AAAA,MAChB,OAAA;AAAA,MACA,kBAAkB,iBAAkB,CAAA,QAAA;AAAA,MACpC,kBAAkB,iBAAkB,CAAA,iBAAA;AAAA,MACpC,kBAAkB,iBAAkB,CAAA;AAAA;AACtC;AAEJ","file":"chunk-4QPI2SAB.cjs","sourcesContent":["import type { Rules, TypedFlatConfigItem } from '@antfu/eslint-config';\nimport type { Linter } from 'eslint';\n\ntype YamlSortKeys =\n NonNullable<Rules['yaml/sort-keys']> extends Linter.RuleEntry<infer F>\n ? F\n : never;\n\ntype YamlSortKeysRecord = YamlSortKeys[0];\n\nexport const yamlOrder = {\n type: 'asc',\n caseSensitive: false,\n natural: true,\n} as const;\n\nexport const yarnrcYmlSortKeys = {\n packageExtensions: {\n packages: {\n pathPattern: /^packageExtensions$/.source,\n order: yamlOrder,\n },\n dependenciesTypes: {\n pathPattern: /^packageExtensions(?:\\[\".+\"\\]|\\.[^.]+)$/.source,\n order: yamlOrder,\n },\n childPackages: {\n pathPattern:\n /^packageExtensions(?:\\[\".+\"\\]|\\.[^.]+)\\.(?:dependencies|peerDependencies|peerDependenciesMeta)$/\n .source,\n order: yamlOrder,\n },\n },\n} satisfies Record<string, Record<string, YamlSortKeysRecord>>;\n\nexport const yarnrcYmlRules: TypedFlatConfigItem = {\n name: 'culur/yarnrc-yml/rules',\n files: ['.yarnrc.yml'],\n rules: {\n 'yaml/sort-keys': [\n 'error',\n yarnrcYmlSortKeys.packageExtensions.packages,\n yarnrcYmlSortKeys.packageExtensions.dependenciesTypes,\n yarnrcYmlSortKeys.packageExtensions.childPackages,\n ],\n },\n};\n"]}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// src/rules/renovate-json/base/renovate-shared-config.ts
|
|
4
|
+
var renovateSharedConfig = {
|
|
5
|
+
// --- Core Configuration ---
|
|
6
|
+
config: [
|
|
7
|
+
"$schema",
|
|
8
|
+
// string: Reference to the JSON schema for validation.
|
|
9
|
+
"extends",
|
|
10
|
+
// string[]: Specifies configuration presets to inherit from.
|
|
11
|
+
"enabled",
|
|
12
|
+
// boolean: Enables or disables Renovate for the repository or rule.
|
|
13
|
+
"enabledManagers"
|
|
14
|
+
// string[]: List of package managers to enable (e.g., ["npm", "docker"]).
|
|
15
|
+
],
|
|
16
|
+
// --- Dependency Dashboard ---
|
|
17
|
+
dependencyDashboard: [
|
|
18
|
+
"dependencyDashboardApproval"
|
|
19
|
+
// boolean: Requires manual approval via the Dependency Dashboard checkbox before a PR is created.
|
|
20
|
+
],
|
|
21
|
+
// --- Scheduling and Timezone ---
|
|
22
|
+
schedule: [
|
|
23
|
+
"schedule",
|
|
24
|
+
// string[]: Defines when Renovate should run using cron syntax or presets.
|
|
25
|
+
"timezone"
|
|
26
|
+
// string: Timezone to use for scheduling (e.g., "UTC", "America/New_York").
|
|
27
|
+
],
|
|
28
|
+
// --- Automerge ---
|
|
29
|
+
automerge: [
|
|
30
|
+
"automerge",
|
|
31
|
+
// boolean: Enables automatic merging of PRs when conditions are met.
|
|
32
|
+
"automergeType",
|
|
33
|
+
// 'pr' | 'branch-push' | 'pr-comment': Specifies the automerge mechanism. Deprecated/renamed? (Note: Not in original list, added for context, potentially maps to other settings).
|
|
34
|
+
"automergeStrategy",
|
|
35
|
+
// MergeStrategy ('auto', 'merge', 'rebase', 'squash'): The merge strategy to use for automerging.
|
|
36
|
+
"automergeSchedule",
|
|
37
|
+
// string[]: Schedules automerging attempts independently of PR updates.
|
|
38
|
+
"internalChecksAsSuccess",
|
|
39
|
+
// boolean: Considers Renovate's internal checks as successful for automerge status checks.
|
|
40
|
+
"platformAutomerge"
|
|
41
|
+
// boolean: Use the platform's native automerge feature if available. (Note: Not in original list, but common).
|
|
42
|
+
],
|
|
43
|
+
// --- Branch Management ---
|
|
44
|
+
branch: [
|
|
45
|
+
"branchPrefix",
|
|
46
|
+
// string: Prefix added to all Renovate-created branches.
|
|
47
|
+
"branchName",
|
|
48
|
+
// string: Template for naming Renovate branches.
|
|
49
|
+
"branchNameStrict",
|
|
50
|
+
// boolean: If true, enforces stricter validation for branch names.
|
|
51
|
+
"hashedBranchLength",
|
|
52
|
+
// number: Length of the hash appended to branch names when needed.
|
|
53
|
+
"pruneBranchAfterAutomerge"
|
|
54
|
+
// boolean: Automatically delete the branch after a PR is automerged.
|
|
55
|
+
// 'branchPrefixOld', // string: Potentially deprecated or for specific migration scenarios.
|
|
56
|
+
],
|
|
57
|
+
// --- Grouping Dependencies ---
|
|
58
|
+
grouping: [
|
|
59
|
+
"group",
|
|
60
|
+
// GroupConfig: More detailed configuration for grouping dependencies.
|
|
61
|
+
"groupName",
|
|
62
|
+
// string: A custom name for a group of dependencies updated together in one PR.
|
|
63
|
+
"groupSlug"
|
|
64
|
+
// string: A URL-friendly slug for the group name.
|
|
65
|
+
],
|
|
66
|
+
// --- Commit Management ---
|
|
67
|
+
commit: [
|
|
68
|
+
"semanticCommits",
|
|
69
|
+
// 'auto' | 'enabled' | 'disabled': Controls the use of semantic commit messages.
|
|
70
|
+
"semanticCommitType",
|
|
71
|
+
// string: The type used in semantic commits (e.g., "fix", "chore").
|
|
72
|
+
"semanticCommitScope",
|
|
73
|
+
// string | null: The scope used in semantic commits.
|
|
74
|
+
"commitMessagePrefix",
|
|
75
|
+
// string: Prefix added to all commit messages.
|
|
76
|
+
"commitMessage",
|
|
77
|
+
// string: Template for the commit message body.
|
|
78
|
+
"commitMessageAction",
|
|
79
|
+
// string: Action part of the commit message (e.g., "Update", "Pin").
|
|
80
|
+
"commitMessageTopic",
|
|
81
|
+
// string: Topic part of the commit message (e.g., dependency name).
|
|
82
|
+
"commitMessageExtra",
|
|
83
|
+
// string: Additional details appended to the commit message.
|
|
84
|
+
"commitMessageLowerCase",
|
|
85
|
+
// 'auto' | 'never': Controls the casing of the commit message header.
|
|
86
|
+
"platformCommit"
|
|
87
|
+
// PlatformCommitOptions: Platform-specific commit options.
|
|
88
|
+
],
|
|
89
|
+
// --- Pull Request (PR) Management ---
|
|
90
|
+
pr: [
|
|
91
|
+
"prCreation",
|
|
92
|
+
// 'immediate' | 'not-pending' | 'status-success' | 'approval': Controls when PRs are created based on checks/approvals.
|
|
93
|
+
"draftPR",
|
|
94
|
+
// boolean: Creates PRs as drafts initially.
|
|
95
|
+
"recreateClosed",
|
|
96
|
+
// boolean: Recreate PRs if they were manually closed without merging.
|
|
97
|
+
"recreateWhen",
|
|
98
|
+
// RecreateWhen: Specifies conditions under which closed PRs should be recreated.
|
|
99
|
+
"prBodyColumns",
|
|
100
|
+
// string[]: Specifies which columns to include in the PR body's dependency table.
|
|
101
|
+
"prBodyDefinitions",
|
|
102
|
+
// Record<string, string>: Custom definitions/text for sections within the PR body.
|
|
103
|
+
"prPriority",
|
|
104
|
+
// number: Sets a priority level for the PR (platform-dependent).
|
|
105
|
+
"confidential",
|
|
106
|
+
// boolean: Marks the PR as confidential (platform-dependent, e.g., GitLab).
|
|
107
|
+
"milestone"
|
|
108
|
+
// number: Assigns the PR to a specific milestone number.
|
|
109
|
+
],
|
|
110
|
+
// --- Labels ---
|
|
111
|
+
labels: [
|
|
112
|
+
"labels",
|
|
113
|
+
// string[]: List of labels to be added to created PRs.
|
|
114
|
+
"addLabels",
|
|
115
|
+
// string[]: Additional labels to add (often used in package rules).
|
|
116
|
+
"keepUpdatedLabel",
|
|
117
|
+
// string: Label indicating a PR should be kept up-to-date by Renovate, even if tests fail.
|
|
118
|
+
"rebaseLabel",
|
|
119
|
+
// string: Label that triggers Renovate to rebase the PR.
|
|
120
|
+
"stopUpdatingLabel"
|
|
121
|
+
// string: Label that tells Renovate to stop updating a specific PR.
|
|
122
|
+
],
|
|
123
|
+
// --- Dependency Filtering and Matching ---
|
|
124
|
+
filtering: [
|
|
125
|
+
"ignoreDeps",
|
|
126
|
+
// string[]: List of dependency names to ignore completely.
|
|
127
|
+
"ignorePaths",
|
|
128
|
+
// string[]: List of file paths or glob patterns to ignore during scanning.
|
|
129
|
+
"includePaths",
|
|
130
|
+
// string[]: List of file paths or glob patterns to explicitly include (if others are ignored).
|
|
131
|
+
"fileMatch",
|
|
132
|
+
// string[]: Glob patterns for matching dependency files.
|
|
133
|
+
"respectLatest",
|
|
134
|
+
// boolean: Whether to strictly respect the 'latest' tag instead of potentially newer versions.
|
|
135
|
+
"ignoreTests"
|
|
136
|
+
// boolean: Option to ignore dependencies typically found only in test/development scopes.
|
|
137
|
+
],
|
|
138
|
+
// --- Advanced / Less Common ---
|
|
139
|
+
advanced: [
|
|
140
|
+
"postUpgradeTasks",
|
|
141
|
+
// PostUpgradeTasks: Defines commands or scripts to run after dependency upgrades.
|
|
142
|
+
"npmrc",
|
|
143
|
+
// string: Allows providing custom .npmrc content for Renovate's operations.
|
|
144
|
+
"npmrcMerge",
|
|
145
|
+
// boolean: Whether to merge provided npmrc content with existing files.
|
|
146
|
+
"changelogUrl",
|
|
147
|
+
// string: A custom URL template for linking to changelogs.
|
|
148
|
+
"gitIgnoredAuthors",
|
|
149
|
+
// string[]: List of git commit authors whose commits should be ignored by Renovate (e.g., bots).
|
|
150
|
+
"unicodeEmoji",
|
|
151
|
+
// boolean: Use Unicode emojis (e.g., ✨) instead of text alternatives (e.g., :sparkles:).
|
|
152
|
+
"suppressNotifications",
|
|
153
|
+
// string[]: List of notification types to suppress.
|
|
154
|
+
"productLinks",
|
|
155
|
+
// Record<string, string>: Custom links for product documentation shown in PRs.
|
|
156
|
+
"rebaseWhen"
|
|
157
|
+
// string ('auto', 'behind-base-branch', 'conflicted', 'never'): Conditions under which Renovate should rebase PRs.
|
|
158
|
+
// 'manager', // string: Usually context-specific, identifies the package manager being used.
|
|
159
|
+
// 'repository', // string: Usually context-specific, the name of the repository.
|
|
160
|
+
// 'repositoryCache', // RepositoryCacheConfig: Configuration for caching repository data.
|
|
161
|
+
// 'repositoryCacheType', // RepositoryCacheType: Type of repository cache ('local', 'shared', etc.).
|
|
162
|
+
// 'autoReplaceGlobalMatch',// boolean: Advanced feature related to global replacements (less common).
|
|
163
|
+
// 'force', // RenovateConfig: Allows forcing specific configurations, overriding others (use with caution).
|
|
164
|
+
]
|
|
165
|
+
};
|
|
166
|
+
|
|
167
|
+
exports.renovateSharedConfig = renovateSharedConfig;
|
|
168
|
+
//# sourceMappingURL=chunk-57VLPYOX.cjs.map
|
|
169
|
+
//# sourceMappingURL=chunk-57VLPYOX.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/rules/renovate-json/base/renovate-shared-config.ts"],"names":[],"mappings":";;;AAEO,IAAM,oBAAuB,GAAA;AAAA;AAAA,EAElC,MAAQ,EAAA;AAAA,IACN,SAAA;AAAA;AAAA,IACA,SAAA;AAAA;AAAA,IACA,SAAA;AAAA;AAAA,IACA;AAAA;AAAA,GACF;AAAA;AAAA,EAGA,mBAAqB,EAAA;AAAA,IACnB;AAAA;AAAA,GACF;AAAA;AAAA,EAGA,QAAU,EAAA;AAAA,IACR,UAAA;AAAA;AAAA,IACA;AAAA;AAAA,GACF;AAAA;AAAA,EAGA,SAAW,EAAA;AAAA,IACT,WAAA;AAAA;AAAA,IACA,eAAA;AAAA;AAAA,IACA,mBAAA;AAAA;AAAA,IACA,mBAAA;AAAA;AAAA,IACA,yBAAA;AAAA;AAAA,IACA;AAAA;AAAA,GACF;AAAA;AAAA,EAGA,MAAQ,EAAA;AAAA,IACN,cAAA;AAAA;AAAA,IACA,YAAA;AAAA;AAAA,IACA,kBAAA;AAAA;AAAA,IACA,oBAAA;AAAA;AAAA,IACA;AAAA;AAAA;AAAA,GAEF;AAAA;AAAA,EAGA,QAAU,EAAA;AAAA,IACR,OAAA;AAAA;AAAA,IACA,WAAA;AAAA;AAAA,IACA;AAAA;AAAA,GACF;AAAA;AAAA,EAGA,MAAQ,EAAA;AAAA,IACN,iBAAA;AAAA;AAAA,IACA,oBAAA;AAAA;AAAA,IACA,qBAAA;AAAA;AAAA,IACA,qBAAA;AAAA;AAAA,IACA,eAAA;AAAA;AAAA,IACA,qBAAA;AAAA;AAAA,IACA,oBAAA;AAAA;AAAA,IACA,oBAAA;AAAA;AAAA,IACA,wBAAA;AAAA;AAAA,IACA;AAAA;AAAA,GACF;AAAA;AAAA,EAGA,EAAI,EAAA;AAAA,IACF,YAAA;AAAA;AAAA,IACA,SAAA;AAAA;AAAA,IACA,gBAAA;AAAA;AAAA,IACA,cAAA;AAAA;AAAA,IACA,eAAA;AAAA;AAAA,IACA,mBAAA;AAAA;AAAA,IACA,YAAA;AAAA;AAAA,IACA,cAAA;AAAA;AAAA,IACA;AAAA;AAAA,GACF;AAAA;AAAA,EAGA,MAAQ,EAAA;AAAA,IACN,QAAA;AAAA;AAAA,IACA,WAAA;AAAA;AAAA,IACA,kBAAA;AAAA;AAAA,IACA,aAAA;AAAA;AAAA,IACA;AAAA;AAAA,GACF;AAAA;AAAA,EAGA,SAAW,EAAA;AAAA,IACT,YAAA;AAAA;AAAA,IACA,aAAA;AAAA;AAAA,IACA,cAAA;AAAA;AAAA,IACA,WAAA;AAAA;AAAA,IACA,eAAA;AAAA;AAAA,IACA;AAAA;AAAA,GACF;AAAA;AAAA,EAGA,QAAU,EAAA;AAAA,IACR,kBAAA;AAAA;AAAA,IACA,OAAA;AAAA;AAAA,IACA,YAAA;AAAA;AAAA,IACA,cAAA;AAAA;AAAA,IACA,mBAAA;AAAA;AAAA,IACA,cAAA;AAAA;AAAA,IACA,uBAAA;AAAA;AAAA,IACA,cAAA;AAAA;AAAA,IACA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQJ","file":"chunk-57VLPYOX.cjs","sourcesContent":["import type { JsoncSortKeysOrderMap } from './types';\n\nexport const renovateSharedConfig = {\n // --- Core Configuration ---\n config: [\n '$schema', // string: Reference to the JSON schema for validation.\n 'extends', // string[]: Specifies configuration presets to inherit from.\n 'enabled', // boolean: Enables or disables Renovate for the repository or rule.\n 'enabledManagers', // string[]: List of package managers to enable (e.g., [\"npm\", \"docker\"]).\n ],\n\n // --- Dependency Dashboard ---\n dependencyDashboard: [\n 'dependencyDashboardApproval', // boolean: Requires manual approval via the Dependency Dashboard checkbox before a PR is created.\n ],\n\n // --- Scheduling and Timezone ---\n schedule: [\n 'schedule', // string[]: Defines when Renovate should run using cron syntax or presets.\n 'timezone', // string: Timezone to use for scheduling (e.g., \"UTC\", \"America/New_York\").\n ],\n\n // --- Automerge ---\n automerge: [\n 'automerge', // boolean: Enables automatic merging of PRs when conditions are met.\n 'automergeType', // 'pr' | 'branch-push' | 'pr-comment': Specifies the automerge mechanism. Deprecated/renamed? (Note: Not in original list, added for context, potentially maps to other settings).\n 'automergeStrategy', // MergeStrategy ('auto', 'merge', 'rebase', 'squash'): The merge strategy to use for automerging.\n 'automergeSchedule', // string[]: Schedules automerging attempts independently of PR updates.\n 'internalChecksAsSuccess', // boolean: Considers Renovate's internal checks as successful for automerge status checks.\n 'platformAutomerge', // boolean: Use the platform's native automerge feature if available. (Note: Not in original list, but common).\n ],\n\n // --- Branch Management ---\n branch: [\n 'branchPrefix', // string: Prefix added to all Renovate-created branches.\n 'branchName', // string: Template for naming Renovate branches.\n 'branchNameStrict', // boolean: If true, enforces stricter validation for branch names.\n 'hashedBranchLength', // number: Length of the hash appended to branch names when needed.\n 'pruneBranchAfterAutomerge', // boolean: Automatically delete the branch after a PR is automerged.\n // 'branchPrefixOld', // string: Potentially deprecated or for specific migration scenarios.\n ],\n\n // --- Grouping Dependencies ---\n grouping: [\n 'group', // GroupConfig: More detailed configuration for grouping dependencies.\n 'groupName', // string: A custom name for a group of dependencies updated together in one PR.\n 'groupSlug', // string: A URL-friendly slug for the group name.\n ],\n\n // --- Commit Management ---\n commit: [\n 'semanticCommits', // 'auto' | 'enabled' | 'disabled': Controls the use of semantic commit messages.\n 'semanticCommitType', // string: The type used in semantic commits (e.g., \"fix\", \"chore\").\n 'semanticCommitScope', // string | null: The scope used in semantic commits.\n 'commitMessagePrefix', // string: Prefix added to all commit messages.\n 'commitMessage', // string: Template for the commit message body.\n 'commitMessageAction', // string: Action part of the commit message (e.g., \"Update\", \"Pin\").\n 'commitMessageTopic', // string: Topic part of the commit message (e.g., dependency name).\n 'commitMessageExtra', // string: Additional details appended to the commit message.\n 'commitMessageLowerCase', // 'auto' | 'never': Controls the casing of the commit message header.\n 'platformCommit', // PlatformCommitOptions: Platform-specific commit options.\n ],\n\n // --- Pull Request (PR) Management ---\n pr: [\n 'prCreation', // 'immediate' | 'not-pending' | 'status-success' | 'approval': Controls when PRs are created based on checks/approvals.\n 'draftPR', // boolean: Creates PRs as drafts initially.\n 'recreateClosed', // boolean: Recreate PRs if they were manually closed without merging.\n 'recreateWhen', // RecreateWhen: Specifies conditions under which closed PRs should be recreated.\n 'prBodyColumns', // string[]: Specifies which columns to include in the PR body's dependency table.\n 'prBodyDefinitions', // Record<string, string>: Custom definitions/text for sections within the PR body.\n 'prPriority', // number: Sets a priority level for the PR (platform-dependent).\n 'confidential', // boolean: Marks the PR as confidential (platform-dependent, e.g., GitLab).\n 'milestone', // number: Assigns the PR to a specific milestone number.\n ],\n\n // --- Labels ---\n labels: [\n 'labels', // string[]: List of labels to be added to created PRs.\n 'addLabels', // string[]: Additional labels to add (often used in package rules).\n 'keepUpdatedLabel', // string: Label indicating a PR should be kept up-to-date by Renovate, even if tests fail.\n 'rebaseLabel', // string: Label that triggers Renovate to rebase the PR.\n 'stopUpdatingLabel', // string: Label that tells Renovate to stop updating a specific PR.\n ],\n\n // --- Dependency Filtering and Matching ---\n filtering: [\n 'ignoreDeps', // string[]: List of dependency names to ignore completely.\n 'ignorePaths', // string[]: List of file paths or glob patterns to ignore during scanning.\n 'includePaths', // string[]: List of file paths or glob patterns to explicitly include (if others are ignored).\n 'fileMatch', // string[]: Glob patterns for matching dependency files.\n 'respectLatest', // boolean: Whether to strictly respect the 'latest' tag instead of potentially newer versions.\n 'ignoreTests', // boolean: Option to ignore dependencies typically found only in test/development scopes.\n ],\n\n // --- Advanced / Less Common ---\n advanced: [\n 'postUpgradeTasks', // PostUpgradeTasks: Defines commands or scripts to run after dependency upgrades.\n 'npmrc', // string: Allows providing custom .npmrc content for Renovate's operations.\n 'npmrcMerge', // boolean: Whether to merge provided npmrc content with existing files.\n 'changelogUrl', // string: A custom URL template for linking to changelogs.\n 'gitIgnoredAuthors', // string[]: List of git commit authors whose commits should be ignored by Renovate (e.g., bots).\n 'unicodeEmoji', // boolean: Use Unicode emojis (e.g., ✨) instead of text alternatives (e.g., :sparkles:).\n 'suppressNotifications', // string[]: List of notification types to suppress.\n 'productLinks', // Record<string, string>: Custom links for product documentation shown in PRs.\n 'rebaseWhen', // string ('auto', 'behind-base-branch', 'conflicted', 'never'): Conditions under which Renovate should rebase PRs.\n // 'manager', // string: Usually context-specific, identifies the package manager being used.\n // 'repository', // string: Usually context-specific, the name of the repository.\n // 'repositoryCache', // RepositoryCacheConfig: Configuration for caching repository data.\n // 'repositoryCacheType', // RepositoryCacheType: Type of repository cache ('local', 'shared', etc.).\n // 'autoReplaceGlobalMatch',// boolean: Advanced feature related to global replacements (less common).\n // 'force', // RenovateConfig: Allows forcing specific configurations, overriding others (use with caution).\n ],\n} as const satisfies JsoncSortKeysOrderMap;\n"]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import vitest from '@vitest/eslint-plugin';
|
|
2
|
+
|
|
3
|
+
// src/overrides/test-rules.ts
|
|
4
|
+
var testRules = {
|
|
5
|
+
name: "antfu/test/rules",
|
|
6
|
+
partialConfig: {
|
|
7
|
+
// Same `include` in @culur/config-vite
|
|
8
|
+
files: ["**/*\\.{test,test-d}.?(c|m)[jt]s?(x)"],
|
|
9
|
+
rules: {
|
|
10
|
+
...vitest.configs.recommended.rules,
|
|
11
|
+
"test/valid-title": ["error", { allowArguments: true }],
|
|
12
|
+
"test/expect-expect": [
|
|
13
|
+
"error",
|
|
14
|
+
{
|
|
15
|
+
assertFunctionNames: [
|
|
16
|
+
"expect",
|
|
17
|
+
"expectTypeOf",
|
|
18
|
+
"assert",
|
|
19
|
+
"assertType"
|
|
20
|
+
]
|
|
21
|
+
}
|
|
22
|
+
]
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
export { testRules };
|
|
28
|
+
//# sourceMappingURL=chunk-7AK343NH.js.map
|
|
29
|
+
//# sourceMappingURL=chunk-7AK343NH.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/overrides/test-rules.ts"],"names":[],"mappings":";;;AAqBO,IAAM,SAA4B,GAAA;AAAA,EACvC,IAAM,EAAA,kBAAA;AAAA,EACN,aAAe,EAAA;AAAA;AAAA,IAEb,KAAA,EAAO,CAAC,sCAAsC,CAAA;AAAA,IAC9C,KAAO,EAAA;AAAA,MACL,GAAG,MAAO,CAAA,OAAA,CAAQ,WAAY,CAAA,KAAA;AAAA,MAC9B,oBAAoB,CAAC,OAAA,EAAS,EAAE,cAAA,EAAgB,MAAM,CAAA;AAAA,MACtD,oBAAsB,EAAA;AAAA,QACpB,OAAA;AAAA,QACA;AAAA,UACE,mBAAqB,EAAA;AAAA,YACnB,QAAA;AAAA,YACA,cAAA;AAAA,YACA,QAAA;AAAA,YACA;AAAA;AACF;AACF;AACF;AACF;AAEJ","file":"chunk-7AK343NH.js","sourcesContent":["import type { Linter } from 'eslint';\nimport type { OverrideConfig } from '~/types';\nimport vitest from '@vitest/eslint-plugin';\n\ndeclare module '@antfu/eslint-config' {\n export interface Rules {\n // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-title.md\n 'test/valid-title': Linter.RuleEntry<\n [\n {\n ignoreTypeOfDescribeName?: boolean;\n allowArguments?: boolean;\n disallowedWords?: string[];\n mustNotMatch?: string[];\n mustMatch?: string[];\n },\n ]\n >;\n }\n}\n\nexport const testRules: OverrideConfig = {\n name: 'antfu/test/rules',\n partialConfig: {\n // Same `include` in @culur/config-vite\n files: ['**/*\\\\.{test,test-d}.?(c|m)[jt]s?(x)'],\n rules: {\n ...vitest.configs.recommended.rules,\n 'test/valid-title': ['error', { allowArguments: true }],\n 'test/expect-expect': [\n 'error',\n {\n assertFunctionNames: [\n 'expect',\n 'expectTypeOf',\n 'assert',\n 'assertType',\n ],\n },\n ],\n },\n },\n};\n"]}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
// src/rules/renovate-json/base/config-migration.ts
|
|
4
|
+
var configMigration = [
|
|
5
|
+
"configMigration"
|
|
6
|
+
// boolean: Enable this to get config migration PRs when needed
|
|
7
|
+
];
|
|
8
|
+
|
|
9
|
+
exports.configMigration = configMigration;
|
|
10
|
+
//# sourceMappingURL=chunk-7E5Q2JAD.cjs.map
|
|
11
|
+
//# sourceMappingURL=chunk-7E5Q2JAD.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/rules/renovate-json/base/config-migration.ts"],"names":[],"mappings":";;;AAEO,IAAM,eAAkB,GAAA;AAAA,EAC7B;AAAA;AACF","file":"chunk-7E5Q2JAD.cjs","sourcesContent":["import type { JsoncSortKeysOrder } from './types';\n\nexport const configMigration = [\n 'configMigration', // boolean: Enable this to get config migration PRs when needed\n] as const satisfies JsoncSortKeysOrder;\n"]}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
// src/rules/renovate-json/base/legacy-admin-config.ts
|
|
2
|
+
var legacyAdminConfig = {
|
|
3
|
+
// --- Onboarding Configuration ---
|
|
4
|
+
// Controls the behavior of the initial "onboarding" PR that Renovate creates
|
|
5
|
+
// when it's first enabled on a repository, typically adding the renovate.json config file.
|
|
6
|
+
onboarding: [
|
|
7
|
+
"onboarding",
|
|
8
|
+
// boolean: Enables or disables the onboarding process. If false, Renovate might not start if no config exists.
|
|
9
|
+
"onboardingBranch",
|
|
10
|
+
// string: The name of the branch to use for the onboarding PR (e.g., "renovate/configure").
|
|
11
|
+
"onboardingCommitMessage",
|
|
12
|
+
// string: Custom commit message for the onboarding commit.
|
|
13
|
+
"onboardingPrTitle",
|
|
14
|
+
// string: Custom title for the onboarding PR.
|
|
15
|
+
"onboardingConfig",
|
|
16
|
+
// RenovateSharedConfig: A minimal Renovate configuration object to propose in the onboarding PR.
|
|
17
|
+
"onboardingConfigFileName",
|
|
18
|
+
// string: The filename for the proposed configuration file (e.g., "renovate.json", ".github/renovate.json").
|
|
19
|
+
"onboardingRebaseCheckbox",
|
|
20
|
+
// boolean: Adds a checkbox to the onboarding PR body allowing users to request Renovate to rebase the PR. (Note: Specific to platform integration).
|
|
21
|
+
"onboardingNoDeps"
|
|
22
|
+
// 'auto' | 'enabled' | 'disabled': Controls whether the onboarding PR should include initial dependency updates or just the configuration file. 'auto' usually means include updates if few dependencies exist.
|
|
23
|
+
],
|
|
24
|
+
// --- Configuration Requirements ---
|
|
25
|
+
// Defines requirements for the Renovate configuration itself.
|
|
26
|
+
configurationRequirements: [
|
|
27
|
+
"requireConfig"
|
|
28
|
+
// RequiredConfig ('required', 'optional', 'ignored'): Specifies whether a Renovate configuration file (`renovate.json`, etc.) is mandatory for Renovate to run on the repository. 'ignored' might be used in centrally managed setups.
|
|
29
|
+
],
|
|
30
|
+
// --- Execution Environment & Logging (Legacy/Admin) ---
|
|
31
|
+
// These settings are often more relevant for self-hosted Renovate instances or specific admin controls.
|
|
32
|
+
executionLogging: [
|
|
33
|
+
"localDir",
|
|
34
|
+
// string: Specifies a local directory path, potentially used for caching or temporary files in self-hosted environments. (Note: Less common in typical SaaS usage).
|
|
35
|
+
"logContext"
|
|
36
|
+
// string: Adds a custom string/context to log messages, helpful for identifying logs from specific Renovate instances or runs.
|
|
37
|
+
]
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export { legacyAdminConfig };
|
|
41
|
+
//# sourceMappingURL=chunk-7XSKNEKZ.js.map
|
|
42
|
+
//# sourceMappingURL=chunk-7XSKNEKZ.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/rules/renovate-json/base/legacy-admin-config.ts"],"names":[],"mappings":";AAEO,IAAM,iBAAoB,GAAA;AAAA;AAAA;AAAA;AAAA,EAI/B,UAAY,EAAA;AAAA,IACV,YAAA;AAAA;AAAA,IACA,kBAAA;AAAA;AAAA,IACA,yBAAA;AAAA;AAAA,IACA,mBAAA;AAAA;AAAA,IACA,kBAAA;AAAA;AAAA,IACA,0BAAA;AAAA;AAAA,IACA,0BAAA;AAAA;AAAA,IACA;AAAA;AAAA,GACF;AAAA;AAAA;AAAA,EAIA,yBAA2B,EAAA;AAAA,IACzB;AAAA;AAAA,GACF;AAAA;AAAA;AAAA,EAIA,gBAAkB,EAAA;AAAA,IAChB,UAAA;AAAA;AAAA,IACA;AAAA;AAAA;AAEJ","file":"chunk-7XSKNEKZ.js","sourcesContent":["import type { JsoncSortKeysOrderMap } from './types';\n\nexport const legacyAdminConfig = {\n // --- Onboarding Configuration ---\n // Controls the behavior of the initial \"onboarding\" PR that Renovate creates\n // when it's first enabled on a repository, typically adding the renovate.json config file.\n onboarding: [\n 'onboarding', // boolean: Enables or disables the onboarding process. If false, Renovate might not start if no config exists.\n 'onboardingBranch', // string: The name of the branch to use for the onboarding PR (e.g., \"renovate/configure\").\n 'onboardingCommitMessage', // string: Custom commit message for the onboarding commit.\n 'onboardingPrTitle', // string: Custom title for the onboarding PR.\n 'onboardingConfig', // RenovateSharedConfig: A minimal Renovate configuration object to propose in the onboarding PR.\n 'onboardingConfigFileName', // string: The filename for the proposed configuration file (e.g., \"renovate.json\", \".github/renovate.json\").\n 'onboardingRebaseCheckbox', // boolean: Adds a checkbox to the onboarding PR body allowing users to request Renovate to rebase the PR. (Note: Specific to platform integration).\n 'onboardingNoDeps', // 'auto' | 'enabled' | 'disabled': Controls whether the onboarding PR should include initial dependency updates or just the configuration file. 'auto' usually means include updates if few dependencies exist.\n ],\n\n // --- Configuration Requirements ---\n // Defines requirements for the Renovate configuration itself.\n configurationRequirements: [\n 'requireConfig', // RequiredConfig ('required', 'optional', 'ignored'): Specifies whether a Renovate configuration file (`renovate.json`, etc.) is mandatory for Renovate to run on the repository. 'ignored' might be used in centrally managed setups.\n ],\n\n // --- Execution Environment & Logging (Legacy/Admin) ---\n // These settings are often more relevant for self-hosted Renovate instances or specific admin controls.\n executionLogging: [\n 'localDir', // string: Specifies a local directory path, potentially used for caching or temporary files in self-hosted environments. (Note: Less common in typical SaaS usage).\n 'logContext', // string: Adds a custom string/context to log messages, helpful for identifying logs from specific Renovate instances or runs.\n ],\n} as const satisfies JsoncSortKeysOrderMap;\n"]}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
// src/rules/renovate-json/base/package-rule.ts
|
|
2
|
+
var packageRule = {
|
|
3
|
+
// --- Metadata ---
|
|
4
|
+
metadata: [
|
|
5
|
+
"description"
|
|
6
|
+
// string | string[]: Human-readable description of what this package rule does, useful for documenting complex configurations.
|
|
7
|
+
],
|
|
8
|
+
// --- Range Strategy ---
|
|
9
|
+
rangeStrategy: [
|
|
10
|
+
"rangeStrategy"
|
|
11
|
+
// 'auto' | 'pin' | 'bump' | 'replace' | 'widen' | 'update-lockfile' | 'in-range-only': Determines how to modify or update existing ranges
|
|
12
|
+
],
|
|
13
|
+
// --- Rule Matching Criteria (Core) ---
|
|
14
|
+
// These properties determine *which* dependencies or updates this rule applies to.
|
|
15
|
+
matching: [
|
|
16
|
+
"matchPackageNames",
|
|
17
|
+
// string[]: Apply rule if dependency name matches any in this list (e.g., ["react", "lodash"]).
|
|
18
|
+
"matchDepNames",
|
|
19
|
+
// string[]: Apply rule if dependency name matches (similar to matchPackageNames, can be broader).
|
|
20
|
+
"matchManagers",
|
|
21
|
+
// string[]: Apply rule if the dependency is managed by one of these package managers (e.g., ["npm", "docker"]).
|
|
22
|
+
"matchDatasources",
|
|
23
|
+
// string[]: Apply rule if the dependency's version source matches (e.g., ["npm", "git-tags", "docker"]).
|
|
24
|
+
"matchDepTypes",
|
|
25
|
+
// string[]: Apply rule if the dependency type matches (e.g., ["dependencies", "devDependencies", "peerDependencies"]).
|
|
26
|
+
"matchUpdateTypes",
|
|
27
|
+
// UpdateType[]: Apply rule based on the type of update (e.g., ["major", "minor", "patch", "pin", "digest"]).
|
|
28
|
+
"matchCategories",
|
|
29
|
+
// string[]: Apply rule if dependency belongs to specified categories (defined via extractConfigs or presets like "linters").
|
|
30
|
+
"matchCurrentVersion",
|
|
31
|
+
// string: Apply rule if the *currently installed* version matches this pattern (supports regex).
|
|
32
|
+
"matchSourceUrls",
|
|
33
|
+
// string[]: Apply rule if the dependency's source repository URL matches any pattern in the list.
|
|
34
|
+
"matchFileNames",
|
|
35
|
+
// string[]: Apply rule if the dependency is found in a file matching any pattern in this list.
|
|
36
|
+
"matchBaseBranches",
|
|
37
|
+
// string[]: Apply rule only when Renovate is running against one of these base branches.
|
|
38
|
+
"matchRepositories",
|
|
39
|
+
// string[]: Apply rule only when Renovate is running in a repository matching one of these names.
|
|
40
|
+
"matchCurrentValue",
|
|
41
|
+
// string: Apply rule if the current value (e.g., Docker tag) matches this pattern.
|
|
42
|
+
"matchNewValue",
|
|
43
|
+
// string: Apply rule if the proposed new value/version matches this pattern.
|
|
44
|
+
"matchCurrentAge",
|
|
45
|
+
// string: Apply rule based on how long the current version has been used (e.g., "> 3 months").
|
|
46
|
+
"matchConfidence",
|
|
47
|
+
// MergeConfidence[]: Apply rule based on Renovate's calculated merge confidence level (e.g., ["high", "very-high"]).
|
|
48
|
+
"matchJsonata"
|
|
49
|
+
// string[]: Advanced matching using JSONata queries against dependency metadata.
|
|
50
|
+
],
|
|
51
|
+
// --- Registry & Network Configuration ---
|
|
52
|
+
registriesNetwork: [
|
|
53
|
+
"registryUrls"
|
|
54
|
+
// string[] | null: Override the global or default registry URLs specifically for dependencies matched by this rule.
|
|
55
|
+
],
|
|
56
|
+
// --- Vulnerability Specific Matching ---
|
|
57
|
+
vulnerabilities: [
|
|
58
|
+
"isVulnerabilityAlert",
|
|
59
|
+
// boolean: (Note: Likely an internal flag set by Renovate, used to *match* rules against updates that *are* vulnerability fixes, rather than being set directly by the user). Apply rule if the update addresses a known vulnerability.
|
|
60
|
+
"vulnerabilityFixVersion"
|
|
61
|
+
// string: Apply rule if the vulnerability fix is targeting this specific version.
|
|
62
|
+
],
|
|
63
|
+
vulnerabilitiesShared: [
|
|
64
|
+
"vulnerabilitySeverity"
|
|
65
|
+
// string: Minimum vulnerability severity level to report or act upon (e.g., "high", "critical").
|
|
66
|
+
]
|
|
67
|
+
};
|
|
68
|
+
|
|
69
|
+
export { packageRule };
|
|
70
|
+
//# sourceMappingURL=chunk-ADFLVWBI.js.map
|
|
71
|
+
//# sourceMappingURL=chunk-ADFLVWBI.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/rules/renovate-json/base/package-rule.ts"],"names":[],"mappings":";AAEO,IAAM,WAAc,GAAA;AAAA;AAAA,EAEzB,QAAU,EAAA;AAAA,IACR;AAAA;AAAA,GACF;AAAA;AAAA,EAGA,aAAe,EAAA;AAAA,IACb;AAAA;AAAA,GACF;AAAA;AAAA;AAAA,EAIA,QAAU,EAAA;AAAA,IACR,mBAAA;AAAA;AAAA,IACA,eAAA;AAAA;AAAA,IACA,eAAA;AAAA;AAAA,IACA,kBAAA;AAAA;AAAA,IACA,eAAA;AAAA;AAAA,IACA,kBAAA;AAAA;AAAA,IACA,iBAAA;AAAA;AAAA,IACA,qBAAA;AAAA;AAAA,IACA,iBAAA;AAAA;AAAA,IACA,gBAAA;AAAA;AAAA,IACA,mBAAA;AAAA;AAAA,IACA,mBAAA;AAAA;AAAA,IACA,mBAAA;AAAA;AAAA,IACA,eAAA;AAAA;AAAA,IACA,iBAAA;AAAA;AAAA,IACA,iBAAA;AAAA;AAAA,IACA;AAAA;AAAA,GACF;AAAA;AAAA,EAGA,iBAAmB,EAAA;AAAA,IACjB;AAAA;AAAA,GACF;AAAA;AAAA,EAGA,eAAiB,EAAA;AAAA,IACf,sBAAA;AAAA;AAAA,IACA;AAAA;AAAA,GACF;AAAA,EACA,qBAAuB,EAAA;AAAA,IACrB;AAAA;AAAA;AAEJ","file":"chunk-ADFLVWBI.js","sourcesContent":["import type { JsoncSortKeysOrderMap } from './types';\n\nexport const packageRule = {\n // --- Metadata ---\n metadata: [\n 'description', // string | string[]: Human-readable description of what this package rule does, useful for documenting complex configurations.\n ],\n\n // --- Range Strategy ---\n rangeStrategy: [\n 'rangeStrategy', // 'auto' | 'pin' | 'bump' | 'replace' | 'widen' | 'update-lockfile' | 'in-range-only': Determines how to modify or update existing ranges\n ],\n\n // --- Rule Matching Criteria (Core) ---\n // These properties determine *which* dependencies or updates this rule applies to.\n matching: [\n 'matchPackageNames', // string[]: Apply rule if dependency name matches any in this list (e.g., [\"react\", \"lodash\"]).\n 'matchDepNames', // string[]: Apply rule if dependency name matches (similar to matchPackageNames, can be broader).\n 'matchManagers', // string[]: Apply rule if the dependency is managed by one of these package managers (e.g., [\"npm\", \"docker\"]).\n 'matchDatasources', // string[]: Apply rule if the dependency's version source matches (e.g., [\"npm\", \"git-tags\", \"docker\"]).\n 'matchDepTypes', // string[]: Apply rule if the dependency type matches (e.g., [\"dependencies\", \"devDependencies\", \"peerDependencies\"]).\n 'matchUpdateTypes', // UpdateType[]: Apply rule based on the type of update (e.g., [\"major\", \"minor\", \"patch\", \"pin\", \"digest\"]).\n 'matchCategories', // string[]: Apply rule if dependency belongs to specified categories (defined via extractConfigs or presets like \"linters\").\n 'matchCurrentVersion', // string: Apply rule if the *currently installed* version matches this pattern (supports regex).\n 'matchSourceUrls', // string[]: Apply rule if the dependency's source repository URL matches any pattern in the list.\n 'matchFileNames', // string[]: Apply rule if the dependency is found in a file matching any pattern in this list.\n 'matchBaseBranches', // string[]: Apply rule only when Renovate is running against one of these base branches.\n 'matchRepositories', // string[]: Apply rule only when Renovate is running in a repository matching one of these names.\n 'matchCurrentValue', // string: Apply rule if the current value (e.g., Docker tag) matches this pattern.\n 'matchNewValue', // string: Apply rule if the proposed new value/version matches this pattern.\n 'matchCurrentAge', // string: Apply rule based on how long the current version has been used (e.g., \"> 3 months\").\n 'matchConfidence', // MergeConfidence[]: Apply rule based on Renovate's calculated merge confidence level (e.g., [\"high\", \"very-high\"]).\n 'matchJsonata', // string[]: Advanced matching using JSONata queries against dependency metadata.\n ],\n\n // --- Registry & Network Configuration ---\n registriesNetwork: [\n 'registryUrls', // string[] | null: Override the global or default registry URLs specifically for dependencies matched by this rule.\n ],\n\n // --- Vulnerability Specific Matching ---\n vulnerabilities: [\n 'isVulnerabilityAlert', // boolean: (Note: Likely an internal flag set by Renovate, used to *match* rules against updates that *are* vulnerability fixes, rather than being set directly by the user). Apply rule if the update addresses a known vulnerability.\n 'vulnerabilityFixVersion', // string: Apply rule if the vulnerability fix is targeting this specific version.\n ],\n vulnerabilitiesShared: [\n 'vulnerabilitySeverity', // string: Minimum vulnerability severity level to report or act upon (e.g., \"high\", \"critical\").\n ],\n} as const satisfies JsoncSortKeysOrderMap;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"chunk-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"chunk-B5LT54QB.cjs"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var vitest = require('@vitest/eslint-plugin');
|
|
4
|
+
|
|
5
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
6
|
+
|
|
7
|
+
var vitest__default = /*#__PURE__*/_interopDefault(vitest);
|
|
8
|
+
|
|
9
|
+
// src/overrides/test-rules.ts
|
|
10
|
+
var testRules = {
|
|
11
|
+
name: "antfu/test/rules",
|
|
12
|
+
partialConfig: {
|
|
13
|
+
// Same `include` in @culur/config-vite
|
|
14
|
+
files: ["**/*\\.{test,test-d}.?(c|m)[jt]s?(x)"],
|
|
15
|
+
rules: {
|
|
16
|
+
...vitest__default.default.configs.recommended.rules,
|
|
17
|
+
"test/valid-title": ["error", { allowArguments: true }],
|
|
18
|
+
"test/expect-expect": [
|
|
19
|
+
"error",
|
|
20
|
+
{
|
|
21
|
+
assertFunctionNames: [
|
|
22
|
+
"expect",
|
|
23
|
+
"expectTypeOf",
|
|
24
|
+
"assert",
|
|
25
|
+
"assertType"
|
|
26
|
+
]
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
exports.testRules = testRules;
|
|
34
|
+
//# sourceMappingURL=chunk-EIOVMZZG.cjs.map
|
|
35
|
+
//# sourceMappingURL=chunk-EIOVMZZG.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/overrides/test-rules.ts"],"names":["vitest"],"mappings":";;;;;;;;;AAqBO,IAAM,SAA4B,GAAA;AAAA,EACvC,IAAM,EAAA,kBAAA;AAAA,EACN,aAAe,EAAA;AAAA;AAAA,IAEb,KAAA,EAAO,CAAC,sCAAsC,CAAA;AAAA,IAC9C,KAAO,EAAA;AAAA,MACL,GAAGA,uBAAO,CAAA,OAAA,CAAQ,WAAY,CAAA,KAAA;AAAA,MAC9B,oBAAoB,CAAC,OAAA,EAAS,EAAE,cAAA,EAAgB,MAAM,CAAA;AAAA,MACtD,oBAAsB,EAAA;AAAA,QACpB,OAAA;AAAA,QACA;AAAA,UACE,mBAAqB,EAAA;AAAA,YACnB,QAAA;AAAA,YACA,cAAA;AAAA,YACA,QAAA;AAAA,YACA;AAAA;AACF;AACF;AACF;AACF;AAEJ","file":"chunk-EIOVMZZG.cjs","sourcesContent":["import type { Linter } from 'eslint';\nimport type { OverrideConfig } from '~/types';\nimport vitest from '@vitest/eslint-plugin';\n\ndeclare module '@antfu/eslint-config' {\n export interface Rules {\n // https://github.com/vitest-dev/eslint-plugin-vitest/blob/main/docs/rules/valid-title.md\n 'test/valid-title': Linter.RuleEntry<\n [\n {\n ignoreTypeOfDescribeName?: boolean;\n allowArguments?: boolean;\n disallowedWords?: string[];\n mustNotMatch?: string[];\n mustMatch?: string[];\n },\n ]\n >;\n }\n}\n\nexport const testRules: OverrideConfig = {\n name: 'antfu/test/rules',\n partialConfig: {\n // Same `include` in @culur/config-vite\n files: ['**/*\\\\.{test,test-d}.?(c|m)[jt]s?(x)'],\n rules: {\n ...vitest.configs.recommended.rules,\n 'test/valid-title': ['error', { allowArguments: true }],\n 'test/expect-expect': [\n 'error',\n {\n assertFunctionNames: [\n 'expect',\n 'expectTypeOf',\n 'assert',\n 'assertType',\n ],\n },\n ],\n },\n },\n};\n"]}
|