@forge/lint 5.13.3 → 5.14.0-next.1
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/CHANGELOG.md +21 -0
- package/out/lint/lint.d.ts.map +1 -1
- package/out/lint/lint.js +0 -2
- package/package.json +4 -4
- package/out/lint/linters/manifest-linter/remote-compute-manifest-linter.d.ts +0 -10
- package/out/lint/linters/manifest-linter/remote-compute-manifest-linter.d.ts.map +0 -1
- package/out/lint/linters/manifest-linter/remote-compute-manifest-linter.js +0 -18
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,26 @@
|
|
|
1
1
|
# @forge/lint
|
|
2
2
|
|
|
3
|
+
## 5.14.0-next.1
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- e21f32f: Remove remote oauth scopes lint check as scopes are no longer required in manifest
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- Updated dependencies [e8cce7f]
|
|
12
|
+
- Updated dependencies [e21f32f]
|
|
13
|
+
- @forge/cli-shared@8.15.0-next.1
|
|
14
|
+
- @forge/manifest@11.4.0-next.1
|
|
15
|
+
|
|
16
|
+
## 5.13.4-next.0
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies [545ecc1]
|
|
21
|
+
- @forge/manifest@11.3.3-next.0
|
|
22
|
+
- @forge/cli-shared@8.14.1-next.0
|
|
23
|
+
|
|
3
24
|
## 5.13.3
|
|
4
25
|
|
|
5
26
|
### Patch Changes
|
package/out/lint/lint.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lint.d.ts","sourceRoot":"","sources":["../../src/lint/lint.ts"],"names":[],"mappings":"AAAA,OAAO,EAOL,cAAc,EACf,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,cAAc,IAAI,QAAQ,EAAE,MAAM,iBAAiB,CAAC;A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}
|
package/out/lint/lint.js
CHANGED
|
@@ -14,7 +14,6 @@ const permissions_manifest_linter_1 = require("./linters/manifest-linter/permiss
|
|
|
14
14
|
const permission_linter_1 = require("./linters/permission-linter/permission-linter");
|
|
15
15
|
const deprecated_csp_permissions_manifest_linter_1 = require("./linters/manifest-linter/deprecated-csp-permissions-manifest-linter");
|
|
16
16
|
const dynamic_properties_permissions_linter_1 = require("./linters/dynamic-properties-linter/dynamic-properties-permissions-linter");
|
|
17
|
-
const remote_compute_manifest_linter_1 = require("./linters/manifest-linter/remote-compute-manifest-linter");
|
|
18
17
|
const invoke_remote_linter_1 = require("./linters/remote-linter/invoke-remote-linter");
|
|
19
18
|
const storage_module_linter_1 = require("./linters/storage-module-linter/storage-module-linter");
|
|
20
19
|
const frame_component_linter_1 = require("./linters/frame-component-linter/frame-component-linter");
|
|
@@ -85,7 +84,6 @@ const lint = async (filesToLint, manifest, environment, logger, statsigService,
|
|
|
85
84
|
new permission_linter_1.PermissionLinter(environment, manifest, logger),
|
|
86
85
|
new permissions_manifest_linter_1.PermissionsManifestLinter(logger, statsigService),
|
|
87
86
|
new deprecated_csp_permissions_manifest_linter_1.DeprecatedCspPermissionsManifestLinter(logger, statsigService),
|
|
88
|
-
new remote_compute_manifest_linter_1.RemoteComputeManifestLinter(logger, statsigService),
|
|
89
87
|
new full_manifest_linter_1.FullManifestLinter(logger, statsigService),
|
|
90
88
|
new handler_linter_1.HandlerLinter(environment, manifest, logger),
|
|
91
89
|
new dynamic_properties_permissions_linter_1.DynamicPropertiesPermissionsLinter(environment, manifest, logger),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@forge/lint",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.14.0-next.1",
|
|
4
4
|
"description": "Linting for forge apps",
|
|
5
5
|
"main": "out/index.js",
|
|
6
6
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
},
|
|
12
12
|
"devDependencies": {
|
|
13
13
|
"@atlassian/xen-test-util": "^4.2.0",
|
|
14
|
-
"@forge/api": "^6.4.
|
|
14
|
+
"@forge/api": "^6.4.4-next.1",
|
|
15
15
|
"@types/array.prototype.flatmap": "^1.2.6",
|
|
16
16
|
"@types/cross-spawn": "^6.0.6",
|
|
17
17
|
"@types/eslint": "8.56.12",
|
|
@@ -19,10 +19,10 @@
|
|
|
19
19
|
"eslint-plugin-import": "^2.29.1"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@forge/cli-shared": "8.
|
|
22
|
+
"@forge/cli-shared": "8.15.0-next.1",
|
|
23
23
|
"@forge/csp": "5.6.1",
|
|
24
24
|
"@forge/egress": "2.3.1",
|
|
25
|
-
"@forge/manifest": "11.
|
|
25
|
+
"@forge/manifest": "11.4.0-next.1",
|
|
26
26
|
"@typescript-eslint/typescript-estree": "^5.62.0",
|
|
27
27
|
"array.prototype.flatmap": "^1.3.3",
|
|
28
28
|
"@atlassian/atlassian-openapi": "^1.0.6",
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ManifestValidationResult, SchemaValidationError } from '@forge/manifest';
|
|
2
|
-
import { AbstractManifestLinter } from './abstract-manifest-linter';
|
|
3
|
-
import { LintResultRule, LintFixState, LintLogger } from '../../linter-interface';
|
|
4
|
-
import { StatsigService } from '@forge/cli-shared';
|
|
5
|
-
export declare class RemoteComputeManifestLinter extends AbstractManifestLinter {
|
|
6
|
-
constructor(logger: LintLogger, statsigService: StatsigService);
|
|
7
|
-
getFixer(): ((errors: LintResultRule[], warnings: LintResultRule[], state: LintFixState) => Promise<LintFixState>) | undefined;
|
|
8
|
-
getResultsForFixer(results: ManifestValidationResult<any>): SchemaValidationError[];
|
|
9
|
-
}
|
|
10
|
-
//# sourceMappingURL=remote-compute-manifest-linter.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"remote-compute-manifest-linter.d.ts","sourceRoot":"","sources":["../../../../src/lint/linters/manifest-linter/remote-compute-manifest-linter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,wBAAwB,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAC;AACnG,OAAO,EAAE,sBAAsB,EAAE,MAAM,4BAA4B,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAElF,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAEnD,qBAAa,2BAA4B,SAAQ,sBAAsB;gBACzD,MAAM,EAAE,UAAU,EAAE,cAAc,EAAE,cAAc;IAI9D,QAAQ,IACJ,CAAC,CAAC,MAAM,EAAE,cAAc,EAAE,EAAE,QAAQ,EAAE,cAAc,EAAE,EAAE,KAAK,EAAE,YAAY,KAAK,OAAO,CAAC,YAAY,CAAC,CAAC,GACtG,SAAS;IAIb,kBAAkB,CAAC,OAAO,EAAE,wBAAwB,CAAC,GAAG,CAAC,GAAG,qBAAqB,EAAE;CAGpF"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RemoteComputeManifestLinter = void 0;
|
|
4
|
-
const manifest_1 = require("@forge/manifest");
|
|
5
|
-
const abstract_manifest_linter_1 = require("./abstract-manifest-linter");
|
|
6
|
-
const permission_linter_1 = require("../permission-linter/permission-linter");
|
|
7
|
-
class RemoteComputeManifestLinter extends abstract_manifest_linter_1.AbstractManifestLinter {
|
|
8
|
-
constructor(logger, statsigService) {
|
|
9
|
-
super(manifest_1.ValidationTypes.FORGE_REMOTE_COMPUTE, logger, statsigService);
|
|
10
|
-
}
|
|
11
|
-
getFixer() {
|
|
12
|
-
return permission_linter_1.fixMissingPermissions;
|
|
13
|
-
}
|
|
14
|
-
getResultsForFixer(results) {
|
|
15
|
-
return results.errors?.filter((error) => error.metadata?.missingPermission) || [];
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
exports.RemoteComputeManifestLinter = RemoteComputeManifestLinter;
|