@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.
- package/README.md +34 -0
- package/dist/dsl-rules/index.d.ts +1 -0
- package/dist/dsl-rules/index.d.ts.map +1 -1
- package/dist/dsl-rules/no-module-scoped-mutable-const.d.ts +4 -0
- package/dist/dsl-rules/no-module-scoped-mutable-const.d.ts.map +1 -0
- package/dist/index.cjs +532 -29
- package/dist/index.js +532 -29
- package/dist/internal/analysis/eslint/module-scope.d.ts +10 -0
- package/dist/internal/analysis/eslint/module-scope.d.ts.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/dist/extensibility-eslint-plugin-alpha.d.ts +0 -49
- package/dist/extensibility-eslint-plugin-beta.d.ts +0 -49
- package/dist/extensibility-eslint-plugin-billing.bill.discount_calculation-alpha.d.ts +0 -11
- package/dist/extensibility-eslint-plugin-billing.bill.discount_calculation-beta.d.ts +0 -11
- package/dist/extensibility-eslint-plugin-billing.bill.discount_calculation-internal.d.ts +0 -11
- package/dist/extensibility-eslint-plugin-billing.bill.discount_calculation-public.d.ts +0 -11
- package/dist/extensibility-eslint-plugin-billing.customer_balance_application-alpha.d.ts +0 -11
- package/dist/extensibility-eslint-plugin-billing.customer_balance_application-beta.d.ts +0 -11
- package/dist/extensibility-eslint-plugin-billing.customer_balance_application-internal.d.ts +0 -11
- package/dist/extensibility-eslint-plugin-billing.customer_balance_application-public.d.ts +0 -11
- package/dist/extensibility-eslint-plugin-billing.invoice_collection_setting-alpha.d.ts +0 -11
- package/dist/extensibility-eslint-plugin-billing.invoice_collection_setting-beta.d.ts +0 -11
- package/dist/extensibility-eslint-plugin-billing.invoice_collection_setting-internal.d.ts +0 -11
- package/dist/extensibility-eslint-plugin-billing.invoice_collection_setting-public.d.ts +0 -11
- package/dist/extensibility-eslint-plugin-billing.prorations-alpha.d.ts +0 -10
- package/dist/extensibility-eslint-plugin-billing.prorations-beta.d.ts +0 -10
- package/dist/extensibility-eslint-plugin-billing.prorations-internal.d.ts +0 -10
- package/dist/extensibility-eslint-plugin-billing.prorations-public.d.ts +0 -10
- package/dist/extensibility-eslint-plugin-billing.recurring_billing_item_handling-alpha.d.ts +0 -11
- package/dist/extensibility-eslint-plugin-billing.recurring_billing_item_handling-beta.d.ts +0 -11
- package/dist/extensibility-eslint-plugin-billing.recurring_billing_item_handling-internal.d.ts +0 -11
- package/dist/extensibility-eslint-plugin-billing.recurring_billing_item_handling-public.d.ts +0 -11
- package/dist/extensibility-eslint-plugin-core.workflows.custom_action-alpha.d.ts +0 -11
- package/dist/extensibility-eslint-plugin-core.workflows.custom_action-beta.d.ts +0 -11
- package/dist/extensibility-eslint-plugin-core.workflows.custom_action-internal.d.ts +0 -11
- package/dist/extensibility-eslint-plugin-core.workflows.custom_action-public.d.ts +0 -11
- package/dist/extensibility-eslint-plugin-custom-objects-alpha.d.ts +0 -11
- package/dist/extensibility-eslint-plugin-custom-objects-beta.d.ts +0 -11
- package/dist/extensibility-eslint-plugin-custom-objects-internal.d.ts +0 -11
- package/dist/extensibility-eslint-plugin-custom-objects-public.d.ts +0 -11
- package/dist/extensibility-eslint-plugin-extend.objects.custom_objects-alpha.d.ts +0 -11
- package/dist/extensibility-eslint-plugin-extend.objects.custom_objects-beta.d.ts +0 -11
- package/dist/extensibility-eslint-plugin-extend.objects.custom_objects-internal.d.ts +0 -11
- package/dist/extensibility-eslint-plugin-extend.objects.custom_objects-public.d.ts +0 -11
- package/dist/extensibility-eslint-plugin-extend.workflows.custom_action-alpha.d.ts +0 -11
- package/dist/extensibility-eslint-plugin-extend.workflows.custom_action-beta.d.ts +0 -11
- package/dist/extensibility-eslint-plugin-extend.workflows.custom_action-internal.d.ts +0 -11
- package/dist/extensibility-eslint-plugin-extend.workflows.custom_action-public.d.ts +0 -11
- package/dist/extensibility-eslint-plugin-internal.d.ts +0 -80
- package/dist/extensibility-eslint-plugin-public.d.ts +0 -49
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stripe/extensibility-eslint-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -70,12 +70,12 @@
|
|
|
70
70
|
"eslint-plugin-no-secrets": "^2.2.1",
|
|
71
71
|
"eslint-plugin-security": "^3.0.1",
|
|
72
72
|
"yaml": "^2.8.3",
|
|
73
|
-
"@stripe/extensibility-jsonschema-tools": "0.6.
|
|
73
|
+
"@stripe/extensibility-jsonschema-tools": "0.6.6"
|
|
74
74
|
},
|
|
75
75
|
"devDependencies": {
|
|
76
76
|
"@types/estree": "^1.0.8",
|
|
77
77
|
"typescript-eslint": "^8.57.0",
|
|
78
|
-
"@stripe/extensibility-sdk": "0.
|
|
78
|
+
"@stripe/extensibility-sdk": "0.25.0"
|
|
79
79
|
},
|
|
80
80
|
"peerDependencies": {
|
|
81
81
|
"eslint": "^9.0.0",
|
|
@@ -1,49 +0,0 @@
|
|
|
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 { }
|
|
@@ -1,49 +0,0 @@
|
|
|
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 { }
|
|
@@ -1,11 +0,0 @@
|
|
|
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 { }
|
|
@@ -1,11 +0,0 @@
|
|
|
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 { }
|
|
@@ -1,11 +0,0 @@
|
|
|
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 { }
|
|
@@ -1,11 +0,0 @@
|
|
|
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 { }
|
|
@@ -1,80 +0,0 @@
|
|
|
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
|
-
/**
|
|
36
|
-
* Canonical plugin name used for custom-object rules (e.g. `co/requires-custom-object-decorator`).
|
|
37
|
-
* @internal
|
|
38
|
-
*/
|
|
39
|
-
export declare const _CUSTOM_OBJECT_PLUGIN_NAME = "co";
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* Custom object lint rules, registered under the `co` namespace.
|
|
43
|
-
* @internal
|
|
44
|
-
*/
|
|
45
|
-
export declare const _customObjectRulesPlugin: ESLint.Plugin;
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Custom eslint rule implementations provided by the extensibility plugin.
|
|
49
|
-
* @internal
|
|
50
|
-
*/
|
|
51
|
-
export declare const _extensibilityRulesPlugin: ESLint.Plugin;
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Canonical plugin name used in rule IDs (e.g. `@stripe/extensibility-eslint-plugin/no-secrets`).
|
|
55
|
-
* @internal
|
|
56
|
-
*/
|
|
57
|
-
export declare const _PLUGIN_NAME = "@stripe/extensibility-eslint-plugin";
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Recommended ESLint rules for Stripe Apps.
|
|
61
|
-
*
|
|
62
|
-
* These rules help ensure code quality and catch common mistakes
|
|
63
|
-
* when developing Stripe Apps.
|
|
64
|
-
* @internal
|
|
65
|
-
*/
|
|
66
|
-
export declare const _recommendedRules: Linter.RulesRecord;
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Required rules — security and safety checks that must always be enabled.
|
|
70
|
-
* @internal
|
|
71
|
-
*/
|
|
72
|
-
export declare const _requiredRules: Linter.RulesRecord;
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Stricter variant of recommendedRules.
|
|
76
|
-
* @internal
|
|
77
|
-
*/
|
|
78
|
-
export declare const _strictRules: Linter.RulesRecord;
|
|
79
|
-
|
|
80
|
-
export { }
|