@atlaskit/eslint-plugin-platform 0.1.8 → 0.2.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 CHANGED
@@ -1,5 +1,17 @@
1
1
  # @atlaskit/eslint-plugin-platform
2
2
 
3
+ ## 0.2.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
8
+
9
+ ## 0.2.0
10
+
11
+ ### Minor Changes
12
+
13
+ - [`56507598609`](https://bitbucket.org/atlassian/atlassian-frontend/commits/56507598609) - Skip minor dependency bump
14
+
3
15
  ## 0.1.8
4
16
 
5
17
  ### Patch Changes
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/eslint-plugin-platform",
3
- "version": "0.1.8",
3
+ "version": "0.2.1",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/eslint-plugin-platform",
3
- "version": "0.1.8",
3
+ "version": "0.2.1",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/eslint-plugin-platform",
3
- "version": "0.1.8",
3
+ "version": "0.2.1",
4
4
  "sideEffects": false
5
5
  }
@@ -4,15 +4,15 @@ export declare const getterIdentifierToFlagTypeMap: {
4
4
  readonly getBooleanFF: "boolean";
5
5
  readonly ffTest: "boolean";
6
6
  };
7
- export declare type PlatformFeatureFlagRegistrationSection = {
7
+ export type PlatformFeatureFlagRegistrationSection = {
8
8
  [key: string]: {
9
- type: typeof getterIdentifierToFlagTypeMap[keyof typeof getterIdentifierToFlagTypeMap];
9
+ type: (typeof getterIdentifierToFlagTypeMap)[keyof typeof getterIdentifierToFlagTypeMap];
10
10
  };
11
11
  };
12
- export declare type EnhancedPackageJson = readPkgUp.PackageJson & {
12
+ export type EnhancedPackageJson = readPkgUp.PackageJson & {
13
13
  'platform-feature-flags'?: PlatformFeatureFlagRegistrationSection;
14
14
  };
15
- export declare type PkgJsonMetaData = {
15
+ export type PkgJsonMetaData = {
16
16
  pkgJson: EnhancedPackageJson;
17
17
  fuse: Fuse<string> | null;
18
18
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@atlaskit/eslint-plugin-platform",
3
3
  "description": "The essential plugin for use with Atlassian frontend platform tools",
4
- "version": "0.1.8",
4
+ "version": "0.2.1",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "atlassian": {
7
7
  "team": "UIP - Platform Integration Trust (PITa)",
@@ -16,6 +16,14 @@
16
16
  "module": "dist/esm/index.js",
17
17
  "module:es2019": "dist/es2019/index.js",
18
18
  "types": "dist/types/index.d.ts",
19
+ "typesVersions": {
20
+ ">=4.5 <4.9": {
21
+ "*": [
22
+ "dist/types-ts4.5/*",
23
+ "dist/types-ts4.5/index.d.ts"
24
+ ]
25
+ }
26
+ },
19
27
  "sideEffects": false,
20
28
  "atlaskit:src": "src/index.tsx",
21
29
  "af:exports": {
@@ -8,7 +8,7 @@ const getDepthOfNestedRunner = (
8
8
  node: SimpleCallExpression & Rule.NodeParentExtension,
9
9
  ): number => {
10
10
  // Calculate the depth of a binary tree, using a queue to track path
11
- let queue: typeof node[] = [];
11
+ let queue: (typeof node)[] = [];
12
12
  queue.push(node);
13
13
  let depth = 0;
14
14
  while (queue.length > 0) {
@@ -12,7 +12,7 @@ export const getterIdentifierToFlagTypeMap = {
12
12
  export type PlatformFeatureFlagRegistrationSection = {
13
13
  [key: string]: {
14
14
  // get the values of the object above
15
- type: typeof getterIdentifierToFlagTypeMap[keyof typeof getterIdentifierToFlagTypeMap];
15
+ type: (typeof getterIdentifierToFlagTypeMap)[keyof typeof getterIdentifierToFlagTypeMap];
16
16
  };
17
17
  };
18
18