@stripe/extensibility-eslint-plugin 0.15.4
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/LICENSE.md +19 -0
- package/dist/configs/async-with-egress.cjs +8228 -0
- package/dist/configs/async-with-egress.d.ts +8 -0
- package/dist/configs/async-with-egress.d.ts.map +1 -0
- package/dist/configs/async-with-egress.js +8197 -0
- package/dist/configs/billing.bill.discount_calculation.cjs +8245 -0
- package/dist/configs/billing.bill.discount_calculation.d.ts +9 -0
- package/dist/configs/billing.bill.discount_calculation.d.ts.map +1 -0
- package/dist/configs/billing.bill.discount_calculation.js +8214 -0
- package/dist/configs/billing.customer_balance_application.cjs +8245 -0
- package/dist/configs/billing.customer_balance_application.d.ts +9 -0
- package/dist/configs/billing.customer_balance_application.d.ts.map +1 -0
- package/dist/configs/billing.customer_balance_application.js +8214 -0
- package/dist/configs/billing.invoice_collection_setting.cjs +8245 -0
- package/dist/configs/billing.invoice_collection_setting.d.ts +9 -0
- package/dist/configs/billing.invoice_collection_setting.d.ts.map +1 -0
- package/dist/configs/billing.invoice_collection_setting.js +8214 -0
- package/dist/configs/billing.prorations.cjs +8245 -0
- package/dist/configs/billing.prorations.d.ts +8 -0
- package/dist/configs/billing.prorations.d.ts.map +1 -0
- package/dist/configs/billing.prorations.js +8214 -0
- package/dist/configs/billing.recurring_billing_item_handling.cjs +8245 -0
- package/dist/configs/billing.recurring_billing_item_handling.d.ts +9 -0
- package/dist/configs/billing.recurring_billing_item_handling.d.ts.map +1 -0
- package/dist/configs/billing.recurring_billing_item_handling.js +8214 -0
- package/dist/configs/core.workflows.custom_action.cjs +8245 -0
- package/dist/configs/core.workflows.custom_action.d.ts +9 -0
- package/dist/configs/core.workflows.custom_action.d.ts.map +1 -0
- package/dist/configs/core.workflows.custom_action.js +8214 -0
- package/dist/configs/custom-objects.cjs +8238 -0
- package/dist/configs/custom-objects.d.ts +9 -0
- package/dist/configs/custom-objects.d.ts.map +1 -0
- package/dist/configs/custom-objects.js +8207 -0
- package/dist/configs/extend.objects.custom_objects.cjs +8245 -0
- package/dist/configs/extend.objects.custom_objects.d.ts +9 -0
- package/dist/configs/extend.objects.custom_objects.d.ts.map +1 -0
- package/dist/configs/extend.objects.custom_objects.js +8214 -0
- package/dist/configs/extend.workflows.custom_action.cjs +8245 -0
- package/dist/configs/extend.workflows.custom_action.d.ts +9 -0
- package/dist/configs/extend.workflows.custom_action.d.ts.map +1 -0
- package/dist/configs/extend.workflows.custom_action.js +8214 -0
- package/dist/configs/runtime-core.cjs +8218 -0
- package/dist/configs/runtime-core.d.ts +8 -0
- package/dist/configs/runtime-core.d.ts.map +1 -0
- package/dist/configs/runtime-core.js +8187 -0
- package/dist/configs/sync-no-egress.cjs +8228 -0
- package/dist/configs/sync-no-egress.d.ts +8 -0
- package/dist/configs/sync-no-egress.d.ts.map +1 -0
- package/dist/configs/sync-no-egress.js +8197 -0
- package/dist/custom-object-rules/action-must-be-async.d.ts +4 -0
- package/dist/custom-object-rules/action-must-be-async.d.ts.map +1 -0
- package/dist/custom-object-rules/display-property-tags.d.ts +4 -0
- package/dist/custom-object-rules/display-property-tags.d.ts.map +1 -0
- package/dist/custom-object-rules/index.d.ts +8 -0
- package/dist/custom-object-rules/index.d.ts.map +1 -0
- package/dist/custom-object-rules/intermediate-must-be-abstract.d.ts +4 -0
- package/dist/custom-object-rules/intermediate-must-be-abstract.d.ts.map +1 -0
- package/dist/custom-object-rules/no-internal-action.d.ts +4 -0
- package/dist/custom-object-rules/no-internal-action.d.ts.map +1 -0
- package/dist/custom-object-rules/one-object-per-file.d.ts +4 -0
- package/dist/custom-object-rules/one-object-per-file.d.ts.map +1 -0
- package/dist/custom-object-rules/requires-base-object.d.ts +4 -0
- package/dist/custom-object-rules/requires-base-object.d.ts.map +1 -0
- package/dist/custom-object-rules/requires-custom-object-decorator.d.ts +4 -0
- package/dist/custom-object-rules/requires-custom-object-decorator.d.ts.map +1 -0
- package/dist/dsl-rules/index.d.ts +10 -0
- package/dist/dsl-rules/index.d.ts.map +1 -0
- package/dist/dsl-rules/no-module-scoped-let.d.ts +4 -0
- package/dist/dsl-rules/no-module-scoped-let.d.ts.map +1 -0
- package/dist/dsl-rules/no-module-scoped-var.d.ts +4 -0
- package/dist/dsl-rules/no-module-scoped-var.d.ts.map +1 -0
- package/dist/dsl-rules/no-non-public-instance-fields.d.ts +4 -0
- package/dist/dsl-rules/no-non-public-instance-fields.d.ts.map +1 -0
- package/dist/extensibility-eslint-plugin-alpha.d.ts +49 -0
- package/dist/extensibility-eslint-plugin-beta.d.ts +49 -0
- package/dist/extensibility-eslint-plugin-billing.bill.discount_calculation-alpha.d.ts +11 -0
- package/dist/extensibility-eslint-plugin-billing.bill.discount_calculation-beta.d.ts +11 -0
- package/dist/extensibility-eslint-plugin-billing.bill.discount_calculation-internal.d.ts +11 -0
- package/dist/extensibility-eslint-plugin-billing.bill.discount_calculation-public.d.ts +11 -0
- package/dist/extensibility-eslint-plugin-billing.customer_balance_application-alpha.d.ts +11 -0
- package/dist/extensibility-eslint-plugin-billing.customer_balance_application-beta.d.ts +11 -0
- package/dist/extensibility-eslint-plugin-billing.customer_balance_application-internal.d.ts +11 -0
- package/dist/extensibility-eslint-plugin-billing.customer_balance_application-public.d.ts +11 -0
- package/dist/extensibility-eslint-plugin-billing.invoice_collection_setting-alpha.d.ts +11 -0
- package/dist/extensibility-eslint-plugin-billing.invoice_collection_setting-beta.d.ts +11 -0
- package/dist/extensibility-eslint-plugin-billing.invoice_collection_setting-internal.d.ts +11 -0
- package/dist/extensibility-eslint-plugin-billing.invoice_collection_setting-public.d.ts +11 -0
- package/dist/extensibility-eslint-plugin-billing.prorations-alpha.d.ts +10 -0
- package/dist/extensibility-eslint-plugin-billing.prorations-beta.d.ts +10 -0
- package/dist/extensibility-eslint-plugin-billing.prorations-internal.d.ts +10 -0
- package/dist/extensibility-eslint-plugin-billing.prorations-public.d.ts +10 -0
- package/dist/extensibility-eslint-plugin-billing.recurring_billing_item_handling-alpha.d.ts +11 -0
- package/dist/extensibility-eslint-plugin-billing.recurring_billing_item_handling-beta.d.ts +11 -0
- package/dist/extensibility-eslint-plugin-billing.recurring_billing_item_handling-internal.d.ts +11 -0
- package/dist/extensibility-eslint-plugin-billing.recurring_billing_item_handling-public.d.ts +11 -0
- package/dist/extensibility-eslint-plugin-core.workflows.custom_action-alpha.d.ts +11 -0
- package/dist/extensibility-eslint-plugin-core.workflows.custom_action-beta.d.ts +11 -0
- package/dist/extensibility-eslint-plugin-core.workflows.custom_action-internal.d.ts +11 -0
- package/dist/extensibility-eslint-plugin-core.workflows.custom_action-public.d.ts +11 -0
- package/dist/extensibility-eslint-plugin-custom-objects-alpha.d.ts +11 -0
- package/dist/extensibility-eslint-plugin-custom-objects-beta.d.ts +11 -0
- package/dist/extensibility-eslint-plugin-custom-objects-internal.d.ts +11 -0
- package/dist/extensibility-eslint-plugin-custom-objects-public.d.ts +11 -0
- package/dist/extensibility-eslint-plugin-extend.objects.custom_objects-alpha.d.ts +11 -0
- package/dist/extensibility-eslint-plugin-extend.objects.custom_objects-beta.d.ts +11 -0
- package/dist/extensibility-eslint-plugin-extend.objects.custom_objects-internal.d.ts +11 -0
- package/dist/extensibility-eslint-plugin-extend.objects.custom_objects-public.d.ts +11 -0
- package/dist/extensibility-eslint-plugin-extend.workflows.custom_action-alpha.d.ts +11 -0
- package/dist/extensibility-eslint-plugin-extend.workflows.custom_action-beta.d.ts +11 -0
- package/dist/extensibility-eslint-plugin-extend.workflows.custom_action-internal.d.ts +11 -0
- package/dist/extensibility-eslint-plugin-extend.workflows.custom_action-public.d.ts +11 -0
- package/dist/extensibility-eslint-plugin-internal.d.ts +80 -0
- package/dist/extensibility-eslint-plugin-public.d.ts +49 -0
- package/dist/extensibility-rules/index.d.ts +8 -0
- package/dist/extensibility-rules/index.d.ts.map +1 -0
- package/dist/extensibility-rules/no-custom-constructor.d.ts +4 -0
- package/dist/extensibility-rules/no-custom-constructor.d.ts.map +1 -0
- package/dist/extensibility-rules/no-extra-type-params.d.ts +4 -0
- package/dist/extensibility-rules/no-extra-type-params.d.ts.map +1 -0
- package/dist/extensibility-rules/no-public-instance-fields.d.ts +4 -0
- package/dist/extensibility-rules/no-public-instance-fields.d.ts.map +1 -0
- package/dist/extensibility-rules/prefer-es-private.d.ts +4 -0
- package/dist/extensibility-rules/prefer-es-private.d.ts.map +1 -0
- package/dist/extension-type-config.d.ts +13 -0
- package/dist/extension-type-config.d.ts.map +1 -0
- package/dist/index.cjs +37420 -0
- package/dist/index.d.ts +69 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +37408 -0
- package/dist/internal/analysis/apps/manifest-tools.d.ts +26 -0
- package/dist/internal/analysis/apps/manifest-tools.d.ts.map +1 -0
- package/dist/internal/analysis/docs/comments.d.ts +23 -0
- package/dist/internal/analysis/docs/comments.d.ts.map +1 -0
- package/dist/internal/analysis/docs/decorators.d.ts +6 -0
- package/dist/internal/analysis/docs/decorators.d.ts.map +1 -0
- package/dist/internal/analysis/docs/release-tags.d.ts +5 -0
- package/dist/internal/analysis/docs/release-tags.d.ts.map +1 -0
- package/dist/internal/analysis/eslint/ast-like.d.ts +78 -0
- package/dist/internal/analysis/eslint/ast-like.d.ts.map +1 -0
- package/dist/internal/analysis/eslint/import-fixes.d.ts +29 -0
- package/dist/internal/analysis/eslint/import-fixes.d.ts.map +1 -0
- package/dist/internal/analysis/eslint/locations.d.ts +20 -0
- package/dist/internal/analysis/eslint/locations.d.ts.map +1 -0
- package/dist/internal/analysis/eslint/module-scope.d.ts +99 -0
- package/dist/internal/analysis/eslint/module-scope.d.ts.map +1 -0
- package/dist/internal/analysis/index.d.ts +14 -0
- package/dist/internal/analysis/index.d.ts.map +1 -0
- package/dist/internal/analysis/naming/api-name-validation.d.ts +55 -0
- package/dist/internal/analysis/naming/api-name-validation.d.ts.map +1 -0
- package/dist/internal/analysis/naming/api-name.d.ts +8 -0
- package/dist/internal/analysis/naming/api-name.d.ts.map +1 -0
- package/dist/internal/analysis/package-names.d.ts +5 -0
- package/dist/internal/analysis/package-names.d.ts.map +1 -0
- package/dist/internal/analysis/scoping/files.d.ts +14 -0
- package/dist/internal/analysis/scoping/files.d.ts.map +1 -0
- package/dist/internal/analysis/scoping/packages.d.ts +17 -0
- package/dist/internal/analysis/scoping/packages.d.ts.map +1 -0
- package/dist/internal/analysis/surfaces/api-name-targets.d.ts +10 -0
- package/dist/internal/analysis/surfaces/api-name-targets.d.ts.map +1 -0
- package/dist/internal/analysis/surfaces/class-declarations.d.ts +4 -0
- package/dist/internal/analysis/surfaces/class-declarations.d.ts.map +1 -0
- package/dist/internal/analysis/surfaces/class-targets.d.ts +27 -0
- package/dist/internal/analysis/surfaces/class-targets.d.ts.map +1 -0
- package/dist/internal/analysis/surfaces/custom-object.d.ts +11 -0
- package/dist/internal/analysis/surfaces/custom-object.d.ts.map +1 -0
- package/dist/internal/analysis/surfaces/extension.d.ts +5 -0
- package/dist/internal/analysis/surfaces/extension.d.ts.map +1 -0
- package/dist/internal/analysis/surfaces/members.d.ts +16 -0
- package/dist/internal/analysis/surfaces/members.d.ts.map +1 -0
- package/dist/internal/analysis/ts/program.d.ts +42 -0
- package/dist/internal/analysis/ts/program.d.ts.map +1 -0
- package/dist/internal/analysis/ts/symbols.d.ts +13 -0
- package/dist/internal/analysis/ts/symbols.d.ts.map +1 -0
- package/dist/internal/analysis/ts/types.d.ts +16 -0
- package/dist/internal/analysis/ts/types.d.ts.map +1 -0
- package/dist/internal/analysis/types.d.ts +70 -0
- package/dist/internal/analysis/types.d.ts.map +1 -0
- package/dist/internal/index.d.ts +2 -0
- package/dist/internal/index.d.ts.map +1 -0
- package/dist/naming-rules/index.d.ts +7 -0
- package/dist/naming-rules/index.d.ts.map +1 -0
- package/dist/naming-rules/valid-api-name.d.ts +4 -0
- package/dist/naming-rules/valid-api-name.d.ts.map +1 -0
- package/dist/rule-config.d.ts +30 -0
- package/dist/rule-config.d.ts.map +1 -0
- package/dist/security-rules/index.d.ts +14 -0
- package/dist/security-rules/index.d.ts.map +1 -0
- package/dist/security-rules/no-secrets.d.ts +9 -0
- package/dist/security-rules/no-secrets.d.ts.map +1 -0
- package/dist/security-rules/valid-endpoint-id.d.ts +4 -0
- package/dist/security-rules/valid-endpoint-id.d.ts.map +1 -0
- package/dist/security-rules/valid-extension-interface.d.ts +4 -0
- package/dist/security-rules/valid-extension-interface.d.ts.map +1 -0
- package/dist/tsconfig.build.tsbuildinfo +1 -0
- package/package.json +108 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@stripe/extensibility-eslint-plugin`
|
|
3
|
+
*
|
|
4
|
+
* ESLint plugin and flat config for Stripe Apps development.
|
|
5
|
+
*
|
|
6
|
+
* @example
|
|
7
|
+
* ```javascript
|
|
8
|
+
* // eslint.config.mjs
|
|
9
|
+
* import stripeAppsConfig from '@stripe/extensibility-eslint-plugin';
|
|
10
|
+
*
|
|
11
|
+
* export default [
|
|
12
|
+
* ...stripeAppsConfig,
|
|
13
|
+
* // Your custom rules here
|
|
14
|
+
* ];
|
|
15
|
+
* ```
|
|
16
|
+
*
|
|
17
|
+
* @packageDocumentation
|
|
18
|
+
*/
|
|
19
|
+
import type { Linter, ESLint } from 'eslint';
|
|
20
|
+
/**
|
|
21
|
+
* Canonical plugin name used in rule IDs (e.g. `@stripe/extensibility-eslint-plugin/no-secrets`).
|
|
22
|
+
* @internal
|
|
23
|
+
*/
|
|
24
|
+
export declare const _PLUGIN_NAME = "@stripe/extensibility-eslint-plugin";
|
|
25
|
+
/**
|
|
26
|
+
* Canonical plugin name used for custom-object rules (e.g. `co/requires-custom-object-decorator`).
|
|
27
|
+
* @internal
|
|
28
|
+
*/
|
|
29
|
+
export declare const _CUSTOM_OBJECT_PLUGIN_NAME = "co";
|
|
30
|
+
/**
|
|
31
|
+
* Custom eslint rule implementations provided by the extensibility plugin.
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
export declare const _extensibilityRulesPlugin: ESLint.Plugin;
|
|
35
|
+
/**
|
|
36
|
+
* Custom object lint rules, registered under the `co` namespace.
|
|
37
|
+
* @internal
|
|
38
|
+
*/
|
|
39
|
+
export declare const _customObjectRulesPlugin: ESLint.Plugin;
|
|
40
|
+
/**
|
|
41
|
+
* Required rules — security and safety checks that must always be enabled.
|
|
42
|
+
* @internal
|
|
43
|
+
*/
|
|
44
|
+
export declare const _requiredRules: Linter.RulesRecord;
|
|
45
|
+
/**
|
|
46
|
+
* Recommended ESLint rules for Stripe Apps.
|
|
47
|
+
*
|
|
48
|
+
* These rules help ensure code quality and catch common mistakes
|
|
49
|
+
* when developing Stripe Apps.
|
|
50
|
+
* @internal
|
|
51
|
+
*/
|
|
52
|
+
export declare const _recommendedRules: Linter.RulesRecord;
|
|
53
|
+
/**
|
|
54
|
+
* Stricter variant of recommendedRules.
|
|
55
|
+
* @internal
|
|
56
|
+
*/
|
|
57
|
+
export declare const _strictRules: Linter.RulesRecord;
|
|
58
|
+
/**
|
|
59
|
+
* Base ESLint flat config for Stripe Apps.
|
|
60
|
+
*
|
|
61
|
+
* Use this as the foundation for your ESLint configuration.
|
|
62
|
+
* Includes code quality, security, and FormSpec type-safety rules.
|
|
63
|
+
* Note: This config assumes you have typescript-eslint installed.
|
|
64
|
+
* @public
|
|
65
|
+
*/
|
|
66
|
+
declare const config: Linter.Config[];
|
|
67
|
+
export default config;
|
|
68
|
+
export { config as stripeAppsConfig };
|
|
69
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AA0B7C;;;GAGG;AACH,eAAO,MAAM,YAAY,wCAAwC,CAAC;AAClE;;;GAGG;AACH,eAAO,MAAM,0BAA0B,OAAO,CAAC;AAE/C;;;GAGG;AACH,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,MAE9C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,wBAAwB,EAAE,MAAM,CAAC,MAE7C,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,cAAc,EAAE,MAAM,CAAC,WAWnC,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,WAmBtC,CAAC;AAEF;;;GAGG;AACH,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,WAOjC,CAAC;AAIF;;;;;;;GAOG;AACH,QAAA,MAAM,MAAM,EAAE,MAAM,CAAC,MAAM,EAwG1B,CAAC;AAEF,eAAe,MAAM,CAAC;AACtB,OAAO,EAAE,MAAM,IAAI,gBAAgB,EAAE,CAAC"}
|