@stripe/extensibility-eslint-plugin 0.15.5 → 0.16.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.
Files changed (51) hide show
  1. package/README.md +34 -0
  2. package/dist/dsl-rules/index.d.ts +1 -0
  3. package/dist/dsl-rules/index.d.ts.map +1 -1
  4. package/dist/dsl-rules/no-module-scoped-mutable-const.d.ts +4 -0
  5. package/dist/dsl-rules/no-module-scoped-mutable-const.d.ts.map +1 -0
  6. package/dist/index.cjs +532 -29
  7. package/dist/index.js +532 -29
  8. package/dist/internal/analysis/eslint/module-scope.d.ts +10 -0
  9. package/dist/internal/analysis/eslint/module-scope.d.ts.map +1 -1
  10. package/dist/tsconfig.build.tsbuildinfo +1 -1
  11. package/package.json +3 -3
  12. package/dist/extensibility-eslint-plugin-alpha.d.ts +0 -49
  13. package/dist/extensibility-eslint-plugin-beta.d.ts +0 -49
  14. package/dist/extensibility-eslint-plugin-billing.bill.discount_calculation-alpha.d.ts +0 -11
  15. package/dist/extensibility-eslint-plugin-billing.bill.discount_calculation-beta.d.ts +0 -11
  16. package/dist/extensibility-eslint-plugin-billing.bill.discount_calculation-internal.d.ts +0 -11
  17. package/dist/extensibility-eslint-plugin-billing.bill.discount_calculation-public.d.ts +0 -11
  18. package/dist/extensibility-eslint-plugin-billing.customer_balance_application-alpha.d.ts +0 -11
  19. package/dist/extensibility-eslint-plugin-billing.customer_balance_application-beta.d.ts +0 -11
  20. package/dist/extensibility-eslint-plugin-billing.customer_balance_application-internal.d.ts +0 -11
  21. package/dist/extensibility-eslint-plugin-billing.customer_balance_application-public.d.ts +0 -11
  22. package/dist/extensibility-eslint-plugin-billing.invoice_collection_setting-alpha.d.ts +0 -11
  23. package/dist/extensibility-eslint-plugin-billing.invoice_collection_setting-beta.d.ts +0 -11
  24. package/dist/extensibility-eslint-plugin-billing.invoice_collection_setting-internal.d.ts +0 -11
  25. package/dist/extensibility-eslint-plugin-billing.invoice_collection_setting-public.d.ts +0 -11
  26. package/dist/extensibility-eslint-plugin-billing.prorations-alpha.d.ts +0 -10
  27. package/dist/extensibility-eslint-plugin-billing.prorations-beta.d.ts +0 -10
  28. package/dist/extensibility-eslint-plugin-billing.prorations-internal.d.ts +0 -10
  29. package/dist/extensibility-eslint-plugin-billing.prorations-public.d.ts +0 -10
  30. package/dist/extensibility-eslint-plugin-billing.recurring_billing_item_handling-alpha.d.ts +0 -11
  31. package/dist/extensibility-eslint-plugin-billing.recurring_billing_item_handling-beta.d.ts +0 -11
  32. package/dist/extensibility-eslint-plugin-billing.recurring_billing_item_handling-internal.d.ts +0 -11
  33. package/dist/extensibility-eslint-plugin-billing.recurring_billing_item_handling-public.d.ts +0 -11
  34. package/dist/extensibility-eslint-plugin-core.workflows.custom_action-alpha.d.ts +0 -11
  35. package/dist/extensibility-eslint-plugin-core.workflows.custom_action-beta.d.ts +0 -11
  36. package/dist/extensibility-eslint-plugin-core.workflows.custom_action-internal.d.ts +0 -11
  37. package/dist/extensibility-eslint-plugin-core.workflows.custom_action-public.d.ts +0 -11
  38. package/dist/extensibility-eslint-plugin-custom-objects-alpha.d.ts +0 -11
  39. package/dist/extensibility-eslint-plugin-custom-objects-beta.d.ts +0 -11
  40. package/dist/extensibility-eslint-plugin-custom-objects-internal.d.ts +0 -11
  41. package/dist/extensibility-eslint-plugin-custom-objects-public.d.ts +0 -11
  42. package/dist/extensibility-eslint-plugin-extend.objects.custom_objects-alpha.d.ts +0 -11
  43. package/dist/extensibility-eslint-plugin-extend.objects.custom_objects-beta.d.ts +0 -11
  44. package/dist/extensibility-eslint-plugin-extend.objects.custom_objects-internal.d.ts +0 -11
  45. package/dist/extensibility-eslint-plugin-extend.objects.custom_objects-public.d.ts +0 -11
  46. package/dist/extensibility-eslint-plugin-extend.workflows.custom_action-alpha.d.ts +0 -11
  47. package/dist/extensibility-eslint-plugin-extend.workflows.custom_action-beta.d.ts +0 -11
  48. package/dist/extensibility-eslint-plugin-extend.workflows.custom_action-internal.d.ts +0 -11
  49. package/dist/extensibility-eslint-plugin-extend.workflows.custom_action-public.d.ts +0 -11
  50. package/dist/extensibility-eslint-plugin-internal.d.ts +0 -80
  51. package/dist/extensibility-eslint-plugin-public.d.ts +0 -49
package/README.md ADDED
@@ -0,0 +1,34 @@
1
+ # @stripe/extensibility-eslint-plugin
2
+
3
+ ESLint plugin and flat config for Stripe Apps development. Includes security checks, code quality rules, and FormSpec type-safety rules.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ npm install --save-dev @stripe/extensibility-eslint-plugin
9
+ ```
10
+
11
+ Requires `eslint ^9.0.0` and `typescript ^5.8.0` as peer dependencies. The default config uses `@typescript-eslint` rules, so you also need `typescript-eslint` installed:
12
+
13
+ ```bash
14
+ npm install --save-dev eslint typescript typescript-eslint
15
+ ```
16
+
17
+ ## Usage
18
+
19
+ Add the default config to your `eslint.config.mjs`:
20
+
21
+ ```javascript
22
+ import stripeAppsConfig from '@stripe/extensibility-eslint-plugin';
23
+
24
+ export default [
25
+ ...stripeAppsConfig,
26
+ // Your custom rules here
27
+ ];
28
+ ```
29
+
30
+ ## Exported configs
31
+
32
+ | Export | Description |
33
+ | ------------------------------ | -------------------------------------------------- |
34
+ | `default` / `stripeAppsConfig` | Full flat config with recommended + FormSpec rules |
@@ -4,6 +4,7 @@
4
4
  */
5
5
  export declare const dslRules: {
6
6
  'no-module-scoped-let': import("eslint").Rule.RuleModule;
7
+ 'no-module-scoped-mutable-const': import("eslint").Rule.RuleModule;
7
8
  'no-module-scoped-var': import("eslint").Rule.RuleModule;
8
9
  'no-non-public-instance-fields': import("eslint").Rule.RuleModule;
9
10
  };
@@ -1 +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"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/dsl-rules/index.ts"],"names":[],"mappings":"AAKA;;;GAGG;AACH,eAAO,MAAM,QAAQ;;;;;CAK+B,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { Rule } from 'eslint';
2
+ declare const rule: Rule.RuleModule;
3
+ export default rule;
4
+ //# sourceMappingURL=no-module-scoped-mutable-const.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"no-module-scoped-mutable-const.d.ts","sourceRoot":"","sources":["../../src/dsl-rules/no-module-scoped-mutable-const.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAsInC,QAAA,MAAM,IAAI,EAAE,IAAI,CAAC,UAiGhB,CAAC;AAEF,eAAe,IAAI,CAAC"}