@futdevpro/dynamo-eslint 1.20.2 โ†’ 1.20.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.
Files changed (127) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +305 -305
  3. package/build/configs/ngx.js +2 -2
  4. package/build/configs/ngx.js.map +1 -1
  5. package/build/plugin/rules/ts/no-as-cast.d.ts.map +1 -1
  6. package/build/plugin/rules/ts/no-as-cast.js +43 -0
  7. package/build/plugin/rules/ts/no-as-cast.js.map +1 -1
  8. package/package.json +14 -7
  9. package/.c8rc.json +0 -26
  10. package/.cursor/rules/__assistant_guide.mdc +0 -30
  11. package/.cursor/rules/__main.mdc +0 -64
  12. package/.cursor/rules/_ag_backend-structure.mdc +0 -86
  13. package/.cursor/rules/_ag_backend.mdc +0 -16
  14. package/.cursor/rules/_ag_debug.mdc +0 -8
  15. package/.cursor/rules/_ag_documentation_writing_rules.mdc +0 -372
  16. package/.cursor/rules/_ag_file-refactoring.mdc +0 -113
  17. package/.cursor/rules/_ag_fixes_rules.mdc +0 -6
  18. package/.cursor/rules/_ag_frontend-structure.mdc +0 -87
  19. package/.cursor/rules/_ag_frontend.mdc +0 -40
  20. package/.cursor/rules/_ag_import-rules.mdc +0 -45
  21. package/.cursor/rules/_ag_naming.mdc +0 -116
  22. package/.cursor/rules/_ag_running_commands.mdc +0 -5
  23. package/.cursor/rules/_ag_server-controller.mdc +0 -6
  24. package/.cursor/rules/_ag_should-be.mdc +0 -7
  25. package/.cursor/rules/_ag_swearing.mdc +0 -47
  26. package/.cursor/rules/ai_development_guide.md +0 -61
  27. package/.cursor/rules/ai_directives.md +0 -114
  28. package/.cursor/rules/cursor-rules.md +0 -160
  29. package/.cursor/rules/default-command.mdc +0 -465
  30. package/.cursor/rules/error_code_pattern.md +0 -40
  31. package/.cursor/rules/saved rule mcp server use.md +0 -16
  32. package/.dynamo/pipeline.cicd.config.json +0 -184
  33. package/.dynamo/version-bump.config.json +0 -5
  34. package/.eslintrc.json +0 -4
  35. package/.github/workflows/main.yml +0 -436
  36. package/.husky/pre-commit +0 -2
  37. package/.vscode/settings.json +0 -11
  38. package/__documentations/2026-04-18-ccap-review-integration.md +0 -173
  39. package/__documentations/2026-08-18-bfr-ctm-005-eslint9-validator-report.md +0 -45
  40. package/__documentations/2026-08-22-angular-20-phase2-release.md +0 -79
  41. package/eslint.config.js +0 -15
  42. package/pnpm-workspace.yaml +0 -2
  43. package/samples/.vscode/settings.json +0 -13
  44. package/samples/base/.eslintrc.json +0 -6
  45. package/samples/base/eslint.config.js +0 -3
  46. package/samples/fsm/.eslintrc.json +0 -4
  47. package/samples/fsm/eslint.config.js +0 -3
  48. package/samples/ngx/.eslintrc.json +0 -6
  49. package/samples/ngx/eslint.config.js +0 -3
  50. package/samples/ngx-package/.eslintrc.json +0 -4
  51. package/samples/ngx-package/eslint.config.js +0 -3
  52. package/samples/nts/.eslintrc.json +0 -6
  53. package/samples/nts/eslint.config.js +0 -3
  54. package/samples/nts-package/.eslintrc.json +0 -4
  55. package/samples/nts-package/eslint.config.js +0 -3
  56. package/samples/package.json.example +0 -22
  57. package/samples/poc-sample.ts +0 -38
  58. package/samples/poc-violations.ts +0 -54
  59. package/scripts/run-coverage-tests.js +0 -24
  60. package/spec/support/helpers/ts-node-helper.js +0 -9
  61. package/spec/support/jasmine.coverage.json +0 -23
  62. package/spec/support/jasmine.json +0 -24
  63. package/src/configs/angular20-compatibility.spec.ts +0 -62
  64. package/src/configs/base.ts +0 -156
  65. package/src/configs/fsm.ts +0 -10
  66. package/src/configs/ngx-package.ts +0 -10
  67. package/src/configs/ngx.ts +0 -93
  68. package/src/configs/nts-package.ts +0 -20
  69. package/src/configs/nts.ts +0 -34
  70. package/src/index.ts +0 -4
  71. package/src/plugin/index.ts +0 -86
  72. package/src/plugin/rules/angular/angular-for-track-logic.spec.ts +0 -44
  73. package/src/plugin/rules/angular/angular-for-track-logic.ts +0 -88
  74. package/src/plugin/rules/angular/effect-signal-loop.spec.ts +0 -89
  75. package/src/plugin/rules/angular/effect-signal-loop.ts +0 -125
  76. package/src/plugin/rules/angular/no-async-ngoninit.spec.ts +0 -50
  77. package/src/plugin/rules/angular/no-async-ngoninit.ts +0 -43
  78. package/src/plugin/rules/angular/no-component-direct-api.spec.ts +0 -78
  79. package/src/plugin/rules/angular/no-component-direct-api.ts +0 -82
  80. package/src/plugin/rules/angular/no-method-call-in-template.spec.ts +0 -63
  81. package/src/plugin/rules/angular/no-method-call-in-template.ts +0 -89
  82. package/src/plugin/rules/angular/no-ngfor-directive.spec.ts +0 -44
  83. package/src/plugin/rules/angular/no-ngfor-directive.ts +0 -62
  84. package/src/plugin/rules/angular/no-ngif-directive.spec.ts +0 -44
  85. package/src/plugin/rules/angular/no-ngif-directive.ts +0 -62
  86. package/src/plugin/rules/explicit-types.spec.ts +0 -190
  87. package/src/plugin/rules/explicit-types.ts +0 -186
  88. package/src/plugin/rules/import/import-order.spec.ts +0 -219
  89. package/src/plugin/rules/import/import-order.ts +0 -197
  90. package/src/plugin/rules/import/no-import-type.spec.ts +0 -69
  91. package/src/plugin/rules/import/no-import-type.ts +0 -46
  92. package/src/plugin/rules/import/no-js-import.spec.ts +0 -82
  93. package/src/plugin/rules/import/no-js-import.ts +0 -45
  94. package/src/plugin/rules/naming-patterns.spec.ts +0 -189
  95. package/src/plugin/rules/naming-patterns.ts +0 -426
  96. package/src/plugin/rules/no-getter-logic.spec.ts +0 -591
  97. package/src/plugin/rules/no-getter-logic.ts +0 -220
  98. package/src/plugin/rules/prefer-enum-over-string-union.spec.ts +0 -583
  99. package/src/plugin/rules/prefer-enum-over-string-union.ts +0 -333
  100. package/src/plugin/rules/prefer-interface-over-duplicate-types.spec.ts +0 -404
  101. package/src/plugin/rules/prefer-interface-over-duplicate-types.ts +0 -314
  102. package/src/plugin/rules/require-jsdoc-description.spec.ts +0 -779
  103. package/src/plugin/rules/require-jsdoc-description.ts +0 -572
  104. package/src/plugin/rules/require-test-description-prefix.spec.ts +0 -459
  105. package/src/plugin/rules/require-test-description-prefix.ts +0 -154
  106. package/src/plugin/rules/ts/data-model-extends.spec.ts +0 -84
  107. package/src/plugin/rules/ts/data-model-extends.ts +0 -100
  108. package/src/plugin/rules/ts/no-any-type.spec.ts +0 -28
  109. package/src/plugin/rules/ts/no-any-type.ts +0 -36
  110. package/src/plugin/rules/ts/no-as-cast.spec.ts +0 -51
  111. package/src/plugin/rules/ts/no-as-cast.ts +0 -51
  112. package/src/plugin/rules/ts/no-dynamic-imports.spec.ts +0 -54
  113. package/src/plugin/rules/ts/no-dynamic-imports.ts +0 -49
  114. package/src/plugin/rules/ts/no-native-browser-dialogs.spec.ts +0 -54
  115. package/src/plugin/rules/ts/no-native-browser-dialogs.ts +0 -84
  116. package/src/plugin/rules/ts/no-plain-function-export.spec.ts +0 -72
  117. package/src/plugin/rules/ts/no-plain-function-export.ts +0 -73
  118. package/src/plugin/rules/ts/one-export-per-file.spec.ts +0 -64
  119. package/src/plugin/rules/ts/one-export-per-file.ts +0 -77
  120. package/src/scripts/dynamo-fix.ts +0 -172
  121. package/src/scripts/eslintrc-audit.ts +0 -116
  122. package/src/scripts/fix-return-types.spec.ts +0 -65
  123. package/src/scripts/fix-return-types.ts +0 -289
  124. package/src/scripts/validate-imports.ts +0 -292
  125. package/src/scripts/validate-naming.ts +0 -213
  126. package/src/scripts/validator-cli.integration.spec.ts +0 -99
  127. package/tsconfig.json +0 -32
@@ -1,184 +0,0 @@
1
- {
2
- "name": "Dynamo-ESLint CI/CD Pipeline",
3
- "outputDir": "./logs/cicd-pipeline",
4
- "timing": {
5
- "stepTimeout": "10m",
6
- "teeMaxRuntime": "10m",
7
- "stepCooldown": "1s"
8
- },
9
- "log": {
10
- "runtimeMaxBytes": 5242880,
11
- "trimCheckEveryN": 1000
12
- },
13
- "versionBump": {
14
- "enabled": false
15
- },
16
- "report": {
17
- "fileName": "cicd-report.json",
18
- "includeLogTail": true,
19
- "logTailLines": 10000,
20
- "includeStepLogs": false
21
- },
22
- "steps": [
23
- {
24
- "_comment": "FR-171 (2026-06-13) โ€” auto-introspect ALL steps' condition.envSet + command ${VAR} refs. Reports PRESENT/MISSING env-vars + which downstream steps will silent-skip. Warning-only by default; fail-fast on the `requireSet` list. Goal: never again silent-skip discord/hot-update without surfacing the missing env at step #1.",
25
- "label": "validate-secrets",
26
- "type": "validate-secrets",
27
- "fatal": false,
28
- "discord": {
29
- "emoji": "๐Ÿ”",
30
- "name": "Secrets Check",
31
- "group": "preflight",
32
- "groupName": "Pre-flight Check",
33
- "groupEmoji": "๐Ÿ”"
34
- },
35
- "settings": {
36
- "requireSet": [
37
- "NPM_TOKEN"
38
- ]
39
- }
40
- },
41
- {
42
- "label": "discord-start",
43
- "command": "dc ci-dn-s '{\"appName\":\"Dynamo-ESLint\",\"appEmoji\":\"๐Ÿ”ง\",\"commitMessage\":\"$COMMIT_MESSAGE\",\"branchName\":\"$GITHUB_REF_NAME\",\"author\":\"$GITHUB_ACTOR\",\"runNumber\":\"$GITHUB_RUN_NUMBER\",\"runId\":\"$GITHUB_RUN_ID\",\"repository\":\"$GITHUB_REPOSITORY\",\"eventName\":\"$GITHUB_EVENT_NAME\",\"eventDateTime\":\"$EVENT_DATETIME\"}'",
44
- "fatal": false,
45
- "discord": {
46
- "hide": true
47
- },
48
- "condition": {
49
- "envSet": [
50
- "DISCORD_WEBHOOK_ID"
51
- ]
52
- }
53
- },
54
- {
55
- "label": "pre-flight",
56
- "type": "pre-flight-check",
57
- "fatal": true,
58
- "discord": {
59
- "emoji": "๐Ÿ”",
60
- "name": "Pre-flight Check",
61
- "group": "preflight",
62
- "groupName": "Pre-flight Check",
63
- "groupEmoji": "๐Ÿ”"
64
- },
65
- "settings": {
66
- "requiredEnvVars": [
67
- "NPM_TOKEN"
68
- ]
69
- }
70
- },
71
- {
72
- "label": "install",
73
- "command": "pnpm i",
74
- "fatal": true,
75
- "discord": {
76
- "hide": true
77
- }
78
- },
79
- {
80
- "label": "check-dev-leftovers",
81
- "type": "check-dev-leftovers",
82
- "fatal": false,
83
- "discord": {
84
- "emoji": "๐Ÿ”",
85
- "name": "Dev Leftovers Check",
86
- "group": "preflight"
87
- },
88
- "settings": {
89
- "checks": [
90
- {
91
- "type": "TSCONFIG_PATHS",
92
- "directory": "."
93
- },
94
- {
95
- "type": "PACKAGE_VERSIONS",
96
- "directory": ".",
97
- "packages": [
98
- "@futdevpro/fsm-dynamo"
99
- ]
100
- }
101
- ],
102
- "fix": true,
103
- "patchOnly": true
104
- }
105
- },
106
- {
107
- "label": "build",
108
- "command": "rimraf ./build && npx tsc",
109
- "fatal": true,
110
- "discord": {
111
- "emoji": "๐Ÿ—๏ธ",
112
- "name": "Build",
113
- "group": "build-test",
114
- "groupName": "Build and Test",
115
- "groupEmoji": "๐Ÿ—๏ธ"
116
- }
117
- },
118
- {
119
- "label": "test",
120
- "command": "npx jasmine",
121
- "fatal": true,
122
- "discord": {
123
- "emoji": "๐Ÿงช",
124
- "name": "Tests",
125
- "group": "build-test"
126
- }
127
- },
128
- {
129
- "label": "npm-publish",
130
- "type": "npm-publish",
131
- "fatal": false,
132
- "discord": {
133
- "emoji": "๐Ÿ“ฆ",
134
- "name": "NPM Publish"
135
- },
136
- "condition": {
137
- "branchMatch": [
138
- "master"
139
- ],
140
- "allPassed": [
141
- "build",
142
- "test"
143
- ]
144
- },
145
- "settings": {
146
- "directory": ".",
147
- "skipIfPublished": true,
148
- "retryAttempts": 3,
149
- "retryDelaySeconds": 30
150
- }
151
- },
152
- {
153
- "label": "pipeline-report",
154
- "command": "fdp pipeline-report --report ./logs/cicd-pipeline/cicd-report.json --overseer-secret $OVERSEER_SECRET_KEY --branch $GITHUB_REF_NAME",
155
- "fatal": false,
156
- "always": true,
157
- "discord": {
158
- "emoji": "๐Ÿ“Š",
159
- "name": "Build Report"
160
- },
161
- "condition": {
162
- "envSet": [
163
- "OVERSEER_SECRET_KEY"
164
- ]
165
- }
166
- },
167
- {
168
- "label": "discord-result",
169
- "command": "fdp pipeline-notify --report ./logs/cicd-pipeline/cicd-report.json --config ./pipeline.cicd.config.json --app-name Dynamo-ESLint --app-emoji ๐Ÿ”ง --webhook-id $DISCORD_WEBHOOK_ID --webhook-token $DISCORD_WEBHOOK_TOKEN",
170
- "fatal": false,
171
- "retryOnFail": 2,
172
- "retryDelaySec": 5,
173
- "always": true,
174
- "discord": {
175
- "hide": true
176
- },
177
- "condition": {
178
- "envSet": [
179
- "DISCORD_WEBHOOK_ID"
180
- ]
181
- }
182
- }
183
- ]
184
- }
@@ -1,5 +0,0 @@
1
- {
2
- "subprojects": [],
3
- "generatedConstantFiles": [],
4
- "gitAdd": true
5
- }
package/.eslintrc.json DELETED
@@ -1,4 +0,0 @@
1
- {
2
- "extends": ["./build/configs/nts-package"]
3
- }
4
-
@@ -1,436 +0,0 @@
1
- # WORKSPACE-WIDE DISABLED (2026-06-19) โ€” per user-request
2
- # Az Actions-percek megtakarรญtรกsa miatt; a CICD-t a futdevpro Overseer
3
- # webhook-rendszere irรกnyรญtja. A workflow-trigger NEM aktivรกlรณdik egyetlen
4
- # push-ra sem, amรญg ez a komment-blokk fent van. Visszaรกllรญtรกshoz tรถrรถld
5
- # a header-blokkot + uncomment minden kรถvetkezล‘ sort (egy '# ' eltรกvolรญtรกs).
6
- # โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•โ•
7
- # # =============================================================================
8
- # # Dynamo-ESLint CI/CD โ€” Overseer Pipeline Trigger
9
- # # =============================================================================
10
- # # Ez a workflow CSAK egy webhook-ot kuld az Overseer-nek es AZONNAL kilep.
11
- # # A pipeline-t az Overseer FDP Runner-ek futtatjak (nem a GitHub Actions).
12
- # #
13
- # # A regi workflow-k a fajl vegen kommentben megtalalhatok (fallback).
14
- # # =============================================================================
15
- #
16
- # name: Trigger Pipeline
17
- # on:
18
- # workflow_dispatch:
19
- # # Az org-szintu GitHub webhook kozvetlenul triggereli az Overseer-t.
20
- # # Ez a workflow csak manualis fallback (workflow_dispatch).
21
- #
22
- # jobs:
23
- # trigger:
24
- # name: Overseer Trigger
25
- # runs-on: ubuntu-latest
26
- # timeout-minutes: 1
27
- # steps:
28
- # - uses: actions/checkout@v4
29
- #
30
- # - name: Trigger Overseer Pipeline
31
- # uses: futdevpro/fdp-github-actions/overseer-trigger@master
32
- # with:
33
- # OVERSEER_WEBHOOK_URL: ${{ vars.OVERSEER_URL }}/pipeline-runner/webhook/github
34
- # OVERSEER_WEBHOOK_SECRET: ${{ secrets.OVERSEER_SECRET_KEY }}
35
- #
36
- # # =============================================================================
37
- # # REGI WORKFLOW (fallback) โ€” NE TOROLD!
38
- # # =============================================================================
39
- # # name: Test and Deploy
40
- # # on:
41
- # # push:
42
- # # branches:
43
- # # - '**'
44
- # # permissions:
45
- # # actions: read
46
- # # id-token: write
47
- # # contents: read
48
- # # checks: write
49
- # # issues: read
50
- # # pull-requests: write
51
- # # env:
52
- # # PACKAGE_NAME: ''
53
- # # THIS_VERSION: 0.0.0
54
- # # LATEST_VERSION: 0.0.0
55
- # # VERSION_PUBLISHED: true
56
- # #
57
- # #
58
- # # jobs:
59
- # # notification0:
60
- # # name: ๐Ÿน Discord start Notification
61
- # # runs-on: ubuntu-latest
62
- # # #runs-on: plo-koon
63
- # # timeout-minutes: 20
64
- # # outputs:
65
- # # start: ${{ steps.mark_start.outputs.started }}
66
- # # steps:
67
- # # - uses: actions/checkout@v4
68
- # # - id: mark_start
69
- # # run: echo "started=$(date +%s)" >> "$GITHUB_OUTPUT"
70
- # # - name: Send Discord start notification
71
- # # uses: futdevpro/fdp-github-actions/discord-start-notification@latest
72
- # # with:
73
- # # NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
74
- # # APPLICATION_NAME: "Dynamo-ESLint"
75
- # # APPLICATION_EMOJI: "๐Ÿ”ง"
76
- # # COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
77
- # # EVENT_DATETIME: ${{ github.event.head_commit.timestamp }}
78
- # # DISCORD_WEBHOOK_ID: ${{ secrets.DISCORD_WEBHOOK_ID }}
79
- # # DISCORD_WEBHOOK_TOKEN: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
80
- # #
81
- # # notification0_fail_report:
82
- # # name: ๐Ÿ’ฃ Discord Start Notification Fail Report
83
- # # runs-on: ubuntu-latest
84
- # # #runs-on: plo-koon
85
- # # timeout-minutes: 20
86
- # # if: always() && needs.notification0.result == 'failure'
87
- # # needs: [notification0]
88
- # # steps:
89
- # # - name: send custom message with args
90
- # # uses: appleboy/discord-action@master
91
- # # with:
92
- # # webhook_id: ${{ secrets.DISCORD_WEBHOOK_ID }}
93
- # # webhook_token: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
94
- # # message: |
95
- # # โŒโŒโŒ๐Ÿ”ง Failed to send Discord start notification for ${{ github.repository }}! [๐Ÿ”—](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})
96
- # #
97
- # # check_secrets:
98
- # # name: ๐Ÿ” Check Required Secrets and Variables
99
- # # #runs-on: ubuntu-latest
100
- # # runs-on: plo-koon
101
- # # timeout-minutes: 20
102
- # # steps:
103
- # # - name: Check Required Secrets and Variables
104
- # # uses: futdevpro/fdp-github-actions/check-secrets-and-variables@latest
105
- # # with:
106
- # # NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
107
- # # ITEMS_TO_CHECK: |
108
- # # [
109
- # # {
110
- # # "valueName": "NPM_TOKEN",
111
- # # "value": "${{ secrets.NPM_TOKEN }}",
112
- # # "type": "SECRET"
113
- # # },
114
- # # {
115
- # # "valueName": "DISCORD_WEBHOOK_ID",
116
- # # "value": "${{ secrets.DISCORD_WEBHOOK_ID }}",
117
- # # "type": "SECRET"
118
- # # },
119
- # # {
120
- # # "valueName": "DISCORD_WEBHOOK_TOKEN",
121
- # # "value": "${{ secrets.DISCORD_WEBHOOK_TOKEN }}",
122
- # # "type": "SECRET"
123
- # # },
124
- # # {
125
- # # "valueName": "OVERSEER_SECRET_KEY",
126
- # # "value": "${{ secrets.OVERSEER_SECRET_KEY }}",
127
- # # "type": "SECRET"
128
- # # },
129
- # #
130
- # # {
131
- # # "valueName": "OVERSEER_URL",
132
- # # "value": "${{ vars.OVERSEER_URL }}",
133
- # # "type": "VARIABLE"
134
- # # }
135
- # # ]
136
- # #
137
- # # check_dev_leftovers:
138
- # # name: ๐Ÿ” Check Dev leftovers
139
- # # #runs-on: ubuntu-latest
140
- # # runs-on: plo-koon
141
- # # timeout-minutes: 20
142
- # # steps:
143
- # # - name: Checkout code
144
- # # uses: actions/checkout@v4
145
- # #
146
- # # - name: Install Node.js
147
- # # uses: actions/setup-node@v2
148
- # # with:
149
- # # node-version: '16'
150
- # #
151
- # # # TODO: Check build version (to ALL packages)
152
- # # - name: Check build folder
153
- # # run: |
154
- # # node -e "
155
- # # const buildFolder = './build/';
156
- # # const fs = require('fs');
157
- # #
158
- # # fs.readdir(buildFolder, (err, files) => {
159
- # # if (!files?.length) {
160
- # # console.error(
161
- # # 'FDPError: ./build folder is MISSING!' +
162
- # # '\nbuild the project locally before push!'
163
- # # );
164
- # # process.exit(1);
165
- # # }
166
- # #
167
- # # if (files.includes('dynamo-eslint')) {
168
- # # console.error(
169
- # # 'FDPError: ./build contains dynamo-eslint folder which means this is a local dev build!' +
170
- # # '\nrebuild the project locally before push!'
171
- # # );
172
- # # process.exit(1);
173
- # # }
174
- # # });
175
- # # "
176
- # #
177
- # # test:
178
- # # name: ๐Ÿงช Test Build
179
- # # runs-on: ubuntu-latest
180
- # # needs: [ check_dev_leftovers ]
181
- # # timeout-minutes: 20
182
- # # steps:
183
- # # - name: Checkout code
184
- # # uses: actions/checkout@v4
185
- # #
186
- # # - name: Set NPM RC
187
- # # run: |
188
- # # echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
189
- # #
190
- # # - name: Get safe-chain version
191
- # # run: |
192
- # # VERSION=$(curl -s https://api.github.com/repos/AikidoSec/safe-chain/releases/latest | grep '"tag_name":' | sed -E 's/.*"([^"]+)".*/\1/' | sed 's/^v//')
193
- # # echo "SAFE_CHAIN_VERSION=$VERSION" >> $GITHUB_ENV
194
- # #
195
- # # - name: Install safe-chain
196
- # # run: |
197
- # # curl -fsSL https://raw.githubusercontent.com/AikidoSec/safe-chain/main/install-scripts/install-safe-chain.sh | sh -s -- --ci
198
- # #
199
- # # - name: Install pnpm
200
- # # run: |
201
- # # npm i -g pnpm
202
- # #
203
- # # - name: Install Packages
204
- # # run: |
205
- # # pnpm i --safe-chain-skip-minimum-package-age
206
- # #
207
- # # - name: Build
208
- # # run: |
209
- # # npx tsc
210
- # #
211
- # # - name: Install Jasmine
212
- # # run: |
213
- # # npm i -g jasmine
214
- # #
215
- # # - name: Test
216
- # # run: |
217
- # # jasmine
218
- # #
219
- # # - name: Test Pack
220
- # # run: |
221
- # # pnpm pack
222
- # #
223
- # #
224
- # # check_version:
225
- # # name: ๐Ÿ” Check Version
226
- # # needs: [ test ]
227
- # # #runs-on: ubuntu-latest
228
- # # runs-on: plo-koon
229
- # # timeout-minutes: 20
230
- # # outputs:
231
- # # version_published: ${{ steps.version_check_results.outputs.version_published }}
232
- # # steps:
233
- # # - name: Checkout code
234
- # # uses: actions/checkout@v4
235
- # #
236
- # # - name: Set Package Name
237
- # # run: |
238
- # # echo "PACKAGE_NAME=$(node -p -e "require('./package.json').name")" >> $GITHUB_ENV
239
- # #
240
- # # - name: Set RC
241
- # # run: |
242
- # # echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
243
- # #
244
- # # - name: Get This Version
245
- # # run: |
246
- # # RAW_THIS_VERSION=$(node -p -e "require('./package.json').version")
247
- # # # replace ALL: 'v0' with '', '01' with '1', '.0' with '.'
248
- # # RAW_THIS_VERSION=$(echo $RAW_THIS_VERSION | sed 's:v0::g' | sed 's:01:1:g' | sed -e 's:\.0:\.:g')
249
- # # echo "THIS_VERSION=$RAW_THIS_VERSION" >> $GITHUB_ENV
250
- # #
251
- # # - name: Get Latest Version
252
- # # run: |
253
- # # echo "LATEST_VERSION=$(npm view ${{ env.PACKAGE_NAME }} version)" >> $GITHUB_ENV
254
- # #
255
- # # - name: Check All Versions
256
- # # run: |
257
- # # ALL_VERSIONS=$(npm view ${{ env.PACKAGE_NAME }} versions)
258
- # # if echo "$ALL_VERSIONS" | grep -q "${{ env.THIS_VERSION }}"; then
259
- # # echo "VERSION_PUBLISHED=true" >> $GITHUB_ENV
260
- # # else
261
- # # echo "VERSION_PUBLISHED=false" >> $GITHUB_ENV
262
- # # fi
263
- # #
264
- # # - name: Version Check Results
265
- # # id: version_check_results
266
- # # run: |
267
- # # echo package name: "${{ env.PACKAGE_NAME }}"
268
- # # echo this: "${{ env.THIS_VERSION }}"
269
- # # echo latest: "${{ env.LATEST_VERSION }}"
270
- # # echo this is the latest: "${{ env.LATEST_VERSION == env.THIS_VERSION }}"
271
- # # echo this version is published: "${{ env.VERSION_PUBLISHED }}"
272
- # # echo all published versions: $(npm view ${{ env.PACKAGE_NAME }} versions)
273
- # # echo "::set-output name=version_published::${{ env.VERSION_PUBLISHED }}"
274
- # #
275
- # # deploy:
276
- # # needs: [ check_version ]
277
- # # name: ๐Ÿš€ Deploy to NPM
278
- # # runs-on: ubuntu-latest
279
- # # timeout-minutes: 20
280
- # # if: ${{ needs.check_version.outputs.version_published != 'true' }}
281
- # # steps:
282
- # # - name: Checkout code
283
- # # uses: actions/checkout@v4
284
- # #
285
- # # - name: Set RC
286
- # # run: |
287
- # # echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
288
- # #
289
- # # - name: Install pnpm
290
- # # run: |
291
- # # npm i -g pnpm
292
- # #
293
- # # - name: Install Packages
294
- # # run: |
295
- # # pnpm i
296
- # #
297
- # # - name: Build
298
- # # run: |
299
- # # npx tsc
300
- # #
301
- # # - name: Pack
302
- # # run: |
303
- # # pnpm pack
304
- # #
305
- # # - name: Publish
306
- # # run: |
307
- # # npm publish
308
- # #
309
- # # build_report:
310
- # # name: ๐Ÿ“Š Build Report
311
- # # needs: [
312
- # # notification0,
313
- # # check_dev_leftovers,
314
- # # test,
315
- # # check_version,
316
- # # deploy
317
- # # ]
318
- # # #runs-on: ubuntu-latest
319
- # # runs-on: plo-koon
320
- # # timeout-minutes: 20
321
- # # if: always()
322
- # # steps:
323
- # #
324
- # # # NEW IMPLEMENTATION using futdevpro/fdp-github-actions/send-build-report@master:
325
- # # - name: Checkout code
326
- # # uses: actions/checkout@v4
327
- # #
328
- # # - name: Send Build Report
329
- # # uses: futdevpro/fdp-github-actions/send-build-report@master
330
- # # with:
331
- # # NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
332
- # # SETTINGS: |
333
- # # {
334
- # # "overseerUrl": "${{ vars.OVERSEER_URL }}",
335
- # # "overseerSecret": "${{ secrets.OVERSEER_SECRET_KEY }}",
336
- # # "branchName": "${{ github.ref_name }}",
337
- # # "repository": "${{ github.repository }}",
338
- # # "runId": "${{ github.run_id }}",
339
- # # "linkToAction": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}",
340
- # # "eventDateTime": "${{ needs.notification0.outputs.start }}",
341
- # # "projects": [
342
- # # {
343
- # # "environment": "prod",
344
- # # "stepResults": [
345
- # # {
346
- # # "stepName": "checkDevLeftovers",
347
- # # "resultCode": "${{ needs.check_dev_leftovers.result }}",
348
- # # "requirement": "optional"
349
- # # },
350
- # # {
351
- # # "stepName": "tests",
352
- # # "resultCode": "${{ needs.test.result }}",
353
- # # "requirement": "required"
354
- # # },
355
- # # {
356
- # # "stepName": "checkVersion",
357
- # # "resultCode": "${{ needs.check_version.result }}",
358
- # # "requirement": "required"
359
- # # },
360
- # # {
361
- # # "stepName": "deploy",
362
- # # "resultCode": "${{ needs.deploy.result }}",
363
- # # "requirement": "optional"
364
- # # }
365
- # # ]
366
- # # }
367
- # # ]
368
- # # }
369
- # #
370
- # #
371
- # # end:
372
- # # name: ๐ŸŽฏ Discord Results
373
- # # needs: [
374
- # # notification0,
375
- # # check_secrets,
376
- # # check_dev_leftovers,
377
- # # test,
378
- # # check_version,
379
- # # deploy,
380
- # # build_report
381
- # # ]
382
- # # #runs-on: ubuntu-latest
383
- # # runs-on: plo-koon
384
- # # timeout-minutes: 20
385
- # # if: always()
386
- # # steps:
387
- # # - name: Checkout code
388
- # # uses: actions/checkout@v4
389
- # #
390
- # # - name: Send Discord result notification
391
- # # uses: futdevpro/fdp-github-actions/discord-result-notification@latest
392
- # # with:
393
- # # NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
394
- # # APPLICATION_NAME: "Dynamo-ESLint"
395
- # # APPLICATION_EMOJI: "๐Ÿ”ง"
396
- # # BRANCH: ${{ github.ref_name }}
397
- # # RUN_NUMBER: ${{ github.run_number }}
398
- # # RUN_ID: ${{ github.run_id }}
399
- # # REPOSITORY: ${{ github.repository }}
400
- # # START_TIME: ${{ needs.notification0.outputs.start }}
401
- # # DISCORD_WEBHOOK_ID: ${{ secrets.DISCORD_WEBHOOK_ID }}
402
- # # DISCORD_WEBHOOK_TOKEN: ${{ secrets.DISCORD_WEBHOOK_TOKEN }}
403
- # # STEPS_CONFIG: |
404
- # # [
405
- # # {
406
- # # "stepName": "Secrets Check",
407
- # # "stepEmoji": "๐Ÿ”‘",
408
- # # "resultCode": "${{ needs.check_secrets.result }}"
409
- # # },
410
- # # {
411
- # # "stepName": "Dev Leftovers Check",
412
- # # "stepEmoji": "๐Ÿ”",
413
- # # "resultCode": "${{ needs.check_dev_leftovers.result }}"
414
- # # },
415
- # # {
416
- # # "stepName": "Test Build",
417
- # # "stepEmoji": "๐Ÿงช",
418
- # # "resultCode": "${{ needs.test.result }}"
419
- # # },
420
- # # {
421
- # # "stepName": "Check Version",
422
- # # "stepEmoji": "๐Ÿ”",
423
- # # "resultCode": "${{ needs.check_version.result }}"
424
- # # },
425
- # # {
426
- # # "stepName": "Deploy",
427
- # # "stepEmoji": "๐Ÿ“ฆ",
428
- # # "resultCode": "${{ needs.deploy.result }}",
429
- # # "specialSuccessEmoji": "๐Ÿš€๐Ÿš€๐Ÿš€"
430
- # # },
431
- # # {
432
- # # "stepName": "Build Report",
433
- # # "stepEmoji": "๐Ÿ“Š",
434
- # # "resultCode": "${{ needs.build_report.result }}"
435
- # # }
436
- # # ]
package/.husky/pre-commit DELETED
@@ -1,2 +0,0 @@
1
- dc sync-fdp-deps --patch-only --stage
2
- dc bump-version
@@ -1,11 +0,0 @@
1
- {
2
- "eslint.run": "onSave",
3
- "eslint.workingDirectories": [{ "mode": "auto" }],
4
- "editor.codeActionsOnSave": {
5
- "source.fixAll.eslint": "explicit"
6
- },
7
- "eslint.validate": [
8
- "javascript",
9
- "typescript"
10
- ]
11
- }