@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-must-be-async.d.ts","sourceRoot":"","sources":["../../src/custom-object-rules/action-must-be-async.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAsEnC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,UAkDhB,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"display-property-tags.d.ts","sourceRoot":"","sources":["../../src/custom-object-rules/display-property-tags.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAwEnC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,UAgIhB,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/custom-object-rules/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AASnC;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,IAAI,CAAC,UAAU,CAQ7D,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"intermediate-must-be-abstract.d.ts","sourceRoot":"","sources":["../../src/custom-object-rules/intermediate-must-be-abstract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAwBnC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,UA8DhB,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-internal-action.d.ts","sourceRoot":"","sources":["../../src/custom-object-rules/no-internal-action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAuBnC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,UA4DhB,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"one-object-per-file.d.ts","sourceRoot":"","sources":["../../src/custom-object-rules/one-object-per-file.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAkDnC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,UA4ChB,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"requires-base-object.d.ts","sourceRoot":"","sources":["../../src/custom-object-rules/requires-base-object.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAqGnC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,UA6EhB,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"requires-custom-object-decorator.d.ts","sourceRoot":"","sources":["../../src/custom-object-rules/requires-custom-object-decorator.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAqRnC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,UAqFhB,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DSL rules for Stripe Apps.
|
|
3
|
+
* @internal
|
|
4
|
+
*/
|
|
5
|
+
export declare const dslRules: {
|
|
6
|
+
'no-module-scoped-let': import("eslint").Rule.RuleModule;
|
|
7
|
+
'no-module-scoped-var': import("eslint").Rule.RuleModule;
|
|
8
|
+
'no-non-public-instance-fields': import("eslint").Rule.RuleModule;
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dsl-rules/index.ts"],"names":[],"mappings":"AAIA;;;GAGG;AACH,eAAO,MAAM,QAAQ;;;;CAI+B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-module-scoped-let.d.ts","sourceRoot":"","sources":["../../src/dsl-rules/no-module-scoped-let.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AASnC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,UA8BhB,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-module-scoped-var.d.ts","sourceRoot":"","sources":["../../src/dsl-rules/no-module-scoped-var.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AASnC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,UA8BhB,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"no-non-public-instance-fields.d.ts","sourceRoot":"","sources":["../../src/dsl-rules/no-non-public-instance-fields.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAmHnC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,UAiDhB,CAAC;AAEF,eAAe,IAAI,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
|
|
20
|
+
import type { ESLint } from 'eslint';
|
|
21
|
+
import type { Linter } from 'eslint';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Base ESLint flat config for Stripe Apps.
|
|
25
|
+
*
|
|
26
|
+
* Use this as the foundation for your ESLint configuration.
|
|
27
|
+
* Includes code quality, security, and FormSpec type-safety rules.
|
|
28
|
+
* Note: This config assumes you have typescript-eslint installed.
|
|
29
|
+
* @public
|
|
30
|
+
*/
|
|
31
|
+
declare const config: Linter.Config[];
|
|
32
|
+
export default config;
|
|
33
|
+
export { config as stripeAppsConfig }
|
|
34
|
+
|
|
35
|
+
/* Excluded from this release type: _CUSTOM_OBJECT_PLUGIN_NAME */
|
|
36
|
+
|
|
37
|
+
/* Excluded from this release type: _customObjectRulesPlugin */
|
|
38
|
+
|
|
39
|
+
/* Excluded from this release type: _extensibilityRulesPlugin */
|
|
40
|
+
|
|
41
|
+
/* Excluded from this release type: _PLUGIN_NAME */
|
|
42
|
+
|
|
43
|
+
/* Excluded from this release type: _recommendedRules */
|
|
44
|
+
|
|
45
|
+
/* Excluded from this release type: _requiredRules */
|
|
46
|
+
|
|
47
|
+
/* Excluded from this release type: _strictRules */
|
|
48
|
+
|
|
49
|
+
export { }
|
|
@@ -0,0 +1,49 @@
|
|
|
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
|
+
|
|
20
|
+
import type { ESLint } from 'eslint';
|
|
21
|
+
import type { Linter } from 'eslint';
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Base ESLint flat config for Stripe Apps.
|
|
25
|
+
*
|
|
26
|
+
* Use this as the foundation for your ESLint configuration.
|
|
27
|
+
* Includes code quality, security, and FormSpec type-safety rules.
|
|
28
|
+
* Note: This config assumes you have typescript-eslint installed.
|
|
29
|
+
* @public
|
|
30
|
+
*/
|
|
31
|
+
declare const config: Linter.Config[];
|
|
32
|
+
export default config;
|
|
33
|
+
export { config as stripeAppsConfig }
|
|
34
|
+
|
|
35
|
+
/* Excluded from this release type: _CUSTOM_OBJECT_PLUGIN_NAME */
|
|
36
|
+
|
|
37
|
+
/* Excluded from this release type: _customObjectRulesPlugin */
|
|
38
|
+
|
|
39
|
+
/* Excluded from this release type: _extensibilityRulesPlugin */
|
|
40
|
+
|
|
41
|
+
/* Excluded from this release type: _PLUGIN_NAME */
|
|
42
|
+
|
|
43
|
+
/* Excluded from this release type: _recommendedRules */
|
|
44
|
+
|
|
45
|
+
/* Excluded from this release type: _requiredRules */
|
|
46
|
+
|
|
47
|
+
/* Excluded from this release type: _strictRules */
|
|
48
|
+
|
|
49
|
+
export { }
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Linter } from 'eslint';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Shared ESLint flat config for custom object packages.
|
|
5
|
+
* This is a superset of the async-with-egress profile.
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
declare const config: Linter.Config[];
|
|
9
|
+
export default config;
|
|
10
|
+
|
|
11
|
+
export { }
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Linter } from 'eslint';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Shared ESLint flat config for custom object packages.
|
|
5
|
+
* This is a superset of the async-with-egress profile.
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
declare const config: Linter.Config[];
|
|
9
|
+
export default config;
|
|
10
|
+
|
|
11
|
+
export { }
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Linter } from 'eslint';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Shared ESLint flat config for custom object packages.
|
|
5
|
+
* This is a superset of the async-with-egress profile.
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
declare const config: Linter.Config[];
|
|
9
|
+
export default config;
|
|
10
|
+
|
|
11
|
+
export { }
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Linter } from 'eslint';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Shared ESLint flat config for custom object packages.
|
|
5
|
+
* This is a superset of the async-with-egress profile.
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
declare const config: Linter.Config[];
|
|
9
|
+
export default config;
|
|
10
|
+
|
|
11
|
+
export { }
|