@webpieces/ai-hook-rules 0.4.843 → 0.4.845
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/README.md +3 -1
- package/package.json +10 -5
- package/src/adapters/hook-app-fixtures.js +5 -2
- package/src/adapters/hook-app-fixtures.js.map +1 -1
- package/src/configs/rule-configs.d.ts +23 -0
- package/src/configs/rule-configs.js +38 -0
- package/src/configs/rule-configs.js.map +1 -0
- package/src/core/load-rules.d.ts +1 -1
- package/src/core/load-rules.js.map +1 -1
- package/src/core/rules/catch-error-pattern.d.ts +3 -3
- package/src/core/rules/catch-error-pattern.js +1 -1
- package/src/core/rules/catch-error-pattern.js.map +1 -1
- package/src/core/rules/max-file-lines.d.ts +3 -3
- package/src/core/rules/max-file-lines.js.map +1 -1
- package/src/core/rules/no-any-unknown.d.ts +3 -3
- package/src/core/rules/no-any-unknown.js +1 -2
- package/src/core/rules/no-any-unknown.js.map +1 -1
- package/src/core/rules/no-custom-css.d.ts +3 -3
- package/src/core/rules/no-custom-css.js +1 -1
- package/src/core/rules/no-custom-css.js.map +1 -1
- package/src/core/rules/no-destructure.d.ts +3 -3
- package/src/core/rules/no-destructure.js +1 -1
- package/src/core/rules/no-destructure.js.map +1 -1
- package/src/core/rules/no-implicit-any.d.ts +3 -3
- package/src/core/rules/no-implicit-any.js +1 -2
- package/src/core/rules/no-implicit-any.js.map +1 -1
- package/src/core/rules/no-js-files.d.ts +1 -1
- package/src/core/rules/no-js-files.js.map +1 -1
- package/src/core/rules/no-process-exit-outside-main.d.ts +3 -3
- package/src/core/rules/no-process-exit-outside-main.js +1 -1
- package/src/core/rules/no-process-exit-outside-main.js.map +1 -1
- package/src/core/rules/no-symbol-di-tokens.d.ts +3 -3
- package/src/core/rules/no-symbol-di-tokens.js +1 -1
- package/src/core/rules/no-symbol-di-tokens.js.map +1 -1
- package/src/core/rules/no-unmanaged-exceptions.d.ts +3 -3
- package/src/core/rules/no-unmanaged-exceptions.js +1 -1
- package/src/core/rules/no-unmanaged-exceptions.js.map +1 -1
- package/src/core/rules/require-return-type.d.ts +3 -3
- package/src/core/rules/require-return-type.js +1 -2
- package/src/core/rules/require-return-type.js.map +1 -1
- package/src/core/rules/throw-cause-required.d.ts +1 -1
- package/src/core/rules/throw-cause-required.js +1 -1
- package/src/core/rules/throw-cause-required.js.map +1 -1
- package/src/core/rules/validate-ts-in-src.d.ts +1 -1
- package/src/core/rules/validate-ts-in-src.js.map +1 -1
- package/src/core/source-contribution-config.d.ts +9 -0
- package/src/core/source-contribution-config.js +14 -0
- package/src/core/source-contribution-config.js.map +1 -0
- package/src/index.d.ts +2 -0
- package/src/index.js +9 -2
- package/src/index.js.map +1 -1
- package/src/rule-pack.d.ts +2 -0
- package/src/rule-pack.js +27 -0
- package/src/rule-pack.js.map +1 -0
- package/src/rule-settings.d.ts +5 -0
- package/src/rule-settings.js +40 -0
- package/src/rule-settings.js.map +1 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.recommendedSeeds = exports.optionalTuning = void 0;
|
|
4
|
+
/** Optional knobs only. Required behaviour is always supplied by the repository. */
|
|
5
|
+
exports.optionalTuning = {
|
|
6
|
+
"throw-cause-required": {},
|
|
7
|
+
"no-js-files": {},
|
|
8
|
+
"validate-ts-in-src": {
|
|
9
|
+
"allowedRootFiles": [
|
|
10
|
+
"jest.setup.ts"
|
|
11
|
+
],
|
|
12
|
+
"excludePaths": [
|
|
13
|
+
"node_modules",
|
|
14
|
+
"dist",
|
|
15
|
+
".nx",
|
|
16
|
+
".git",
|
|
17
|
+
"**/*.d.ts",
|
|
18
|
+
"**/jest.config.ts"
|
|
19
|
+
]
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
/** Written for review by setup/sync; never used as a loader fallback. */
|
|
23
|
+
exports.recommendedSeeds = {
|
|
24
|
+
"throw-cause-required": {
|
|
25
|
+
"mode": "NEW_AND_MODIFIED_CODE",
|
|
26
|
+
"turnOffRuleUntilEpoch": 0,
|
|
27
|
+
"turnOffRuleWhileOnBranch": null
|
|
28
|
+
},
|
|
29
|
+
"no-js-files": {
|
|
30
|
+
"mode": "NEW_AND_MODIFIED_FILES",
|
|
31
|
+
"turnOffRuleUntilEpoch": 0,
|
|
32
|
+
"turnOffRuleWhileOnBranch": null
|
|
33
|
+
},
|
|
34
|
+
"validate-ts-in-src": {
|
|
35
|
+
"mode": "NEW_AND_MODIFIED_FILES",
|
|
36
|
+
"turnOffRuleUntilEpoch": 0,
|
|
37
|
+
"turnOffRuleWhileOnBranch": null
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=rule-settings.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rule-settings.js","sourceRoot":"","sources":["../../../../../packages/tooling/ai-hook-rules/src/rule-settings.ts"],"names":[],"mappings":";;;AAEA,oFAAoF;AACvE,QAAA,cAAc,GAA2C;IAClE,sBAAsB,EAAE,EAAE;IAC1B,aAAa,EAAE,EAAE;IACjB,oBAAoB,EAAE;QAClB,kBAAkB,EAAE;YAChB,eAAe;SAClB;QACD,cAAc,EAAE;YACZ,cAAc;YACd,MAAM;YACN,KAAK;YACL,MAAM;YACN,WAAW;YACX,mBAAmB;SACtB;KACJ;CACJ,CAAC;AAEF,yEAAyE;AAC5D,QAAA,gBAAgB,GAA2C;IACpE,sBAAsB,EAAE;QACpB,MAAM,EAAE,uBAAuB;QAC/B,uBAAuB,EAAE,CAAC;QAC1B,0BAA0B,EAAE,IAAI;KACnC;IACD,aAAa,EAAE;QACX,MAAM,EAAE,wBAAwB;QAChC,uBAAuB,EAAE,CAAC;QAC1B,0BAA0B,EAAE,IAAI;KACnC;IACD,oBAAoB,EAAE;QAClB,MAAM,EAAE,wBAAwB;QAChC,uBAAuB,EAAE,CAAC;QAC1B,0BAA0B,EAAE,IAAI;KACnC;CACJ,CAAC","sourcesContent":["import { ConfigObject } from '@webpieces/rules-sdk';\n\n/** Optional knobs only. Required behaviour is always supplied by the repository. */\nexport const optionalTuning: Readonly<Record<string, ConfigObject>> = {\n \"throw-cause-required\": {},\n \"no-js-files\": {},\n \"validate-ts-in-src\": {\n \"allowedRootFiles\": [\n \"jest.setup.ts\"\n ],\n \"excludePaths\": [\n \"node_modules\",\n \"dist\",\n \".nx\",\n \".git\",\n \"**/*.d.ts\",\n \"**/jest.config.ts\"\n ]\n }\n};\n\n/** Written for review by setup/sync; never used as a loader fallback. */\nexport const recommendedSeeds: Readonly<Record<string, ConfigObject>> = {\n \"throw-cause-required\": {\n \"mode\": \"NEW_AND_MODIFIED_CODE\",\n \"turnOffRuleUntilEpoch\": 0,\n \"turnOffRuleWhileOnBranch\": null\n },\n \"no-js-files\": {\n \"mode\": \"NEW_AND_MODIFIED_FILES\",\n \"turnOffRuleUntilEpoch\": 0,\n \"turnOffRuleWhileOnBranch\": null\n },\n \"validate-ts-in-src\": {\n \"mode\": \"NEW_AND_MODIFIED_FILES\",\n \"turnOffRuleUntilEpoch\": 0,\n \"turnOffRuleWhileOnBranch\": null\n }\n};\n"]}
|