@atlaskit/eslint-plugin-platform 0.2.0 → 0.2.2

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.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [`9d00501a414`](https://bitbucket.org/atlassian/atlassian-frontend/commits/9d00501a414) - Ensure legacy types are published for TS 4.5-4.8
8
+
9
+ ## 0.2.1
10
+
11
+ ### Patch Changes
12
+
13
+ - [`41fae2c6f68`](https://bitbucket.org/atlassian/atlassian-frontend/commits/41fae2c6f68) - Upgrade Typescript from `4.5.5` to `4.9.5`
14
+
3
15
  ## 0.2.0
4
16
 
5
17
  ### Minor Changes
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/eslint-plugin-platform",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/eslint-plugin-platform",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "sideEffects": false
5
5
  }
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "@atlaskit/eslint-plugin-platform",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
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
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
  };
@@ -0,0 +1,28 @@
1
+ import type { Linter } from 'eslint';
2
+ export declare const rules: {
3
+ 'ensure-feature-flag-registration': import("eslint").Rule.RuleModule;
4
+ 'ensure-feature-flag-prefix': import("eslint").Rule.RuleModule;
5
+ 'ensure-test-runner-arguments': import("eslint").Rule.RuleModule;
6
+ 'ensure-test-runner-nested-count': import("eslint").Rule.RuleModule;
7
+ 'no-invalid-feature-flag-usage': import("eslint").Rule.RuleModule;
8
+ 'no-pre-post-install-scripts': import("eslint").Rule.RuleModule;
9
+ 'no-invalid-storybook-decorator-usage': import("eslint").Rule.RuleModule;
10
+ };
11
+ export declare const configs: {
12
+ recommended: {
13
+ plugins: string[];
14
+ rules: {
15
+ '@atlaskit/platform/ensure-feature-flag-registration': string;
16
+ '@atlaskit/platform/ensure-feature-flag-prefix': (string | {
17
+ allowedPrefixes: string[];
18
+ })[];
19
+ '@atlaskit/platform/ensure-test-runner-arguments': string;
20
+ '@atlaskit/platform/ensure-test-runner-nested-count': string;
21
+ '@atlaskit/platform/no-invalid-feature-flag-usage': string;
22
+ '@atlaskit/platform/no-invalid-storybook-decorator-usage': string;
23
+ };
24
+ };
25
+ };
26
+ export declare const processors: {
27
+ 'package-json-processor': Linter.Processor<string | Linter.ProcessorFile>;
28
+ };
@@ -0,0 +1,3 @@
1
+ import type { Rule } from 'eslint';
2
+ declare const rule: Rule.RuleModule;
3
+ export default rule;
@@ -0,0 +1,3 @@
1
+ import type { Rule } from 'eslint';
2
+ declare const rule: Rule.RuleModule;
3
+ export default rule;
@@ -0,0 +1,3 @@
1
+ import type { Rule } from 'eslint';
2
+ declare const rule: Rule.RuleModule;
3
+ export default rule;
@@ -0,0 +1,3 @@
1
+ import type { Rule } from 'eslint';
2
+ declare const rule: Rule.RuleModule;
3
+ export default rule;
@@ -0,0 +1,3 @@
1
+ import type { Rule } from 'eslint';
2
+ declare const rule: Rule.RuleModule;
3
+ export default rule;
@@ -0,0 +1,3 @@
1
+ import type { Rule } from 'eslint';
2
+ declare const rule: Rule.RuleModule;
3
+ export default rule;
@@ -0,0 +1,3 @@
1
+ import type { Rule } from 'eslint';
2
+ declare const rule: Rule.RuleModule;
3
+ export default rule;
@@ -0,0 +1,19 @@
1
+ import readPkgUp from 'read-pkg-up';
2
+ import Fuse from 'fuse.js';
3
+ export declare const getterIdentifierToFlagTypeMap: {
4
+ readonly getBooleanFF: "boolean";
5
+ readonly ffTest: "boolean";
6
+ };
7
+ export type PlatformFeatureFlagRegistrationSection = {
8
+ [key: string]: {
9
+ type: (typeof getterIdentifierToFlagTypeMap)[keyof typeof getterIdentifierToFlagTypeMap];
10
+ };
11
+ };
12
+ export type EnhancedPackageJson = readPkgUp.PackageJson & {
13
+ 'platform-feature-flags'?: PlatformFeatureFlagRegistrationSection;
14
+ };
15
+ export type PkgJsonMetaData = {
16
+ pkgJson: EnhancedPackageJson;
17
+ fuse: Fuse<string> | null;
18
+ };
19
+ export declare const getMetadataForFilename: (filename: string) => PkgJsonMetaData;
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.2.0",
4
+ "version": "0.2.2",
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": {
@@ -0,0 +1,45 @@
1
+ ## API Report File for "@atlaskit/eslint-plugin-platform"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ import type { Linter } from 'eslint';
8
+ import { Rule } from 'eslint';
9
+
10
+ // @public (undocumented)
11
+ export const configs: {
12
+ recommended: {
13
+ plugins: string[];
14
+ rules: {
15
+ '@atlaskit/platform/ensure-feature-flag-registration': string;
16
+ '@atlaskit/platform/ensure-feature-flag-prefix': (string | {
17
+ allowedPrefixes: string[];
18
+ })[];
19
+ '@atlaskit/platform/ensure-test-runner-arguments': string;
20
+ '@atlaskit/platform/ensure-test-runner-nested-count': string;
21
+ '@atlaskit/platform/no-invalid-feature-flag-usage': string;
22
+ '@atlaskit/platform/no-invalid-storybook-decorator-usage': string;
23
+ };
24
+ };
25
+ };
26
+
27
+ // @public (undocumented)
28
+ export const processors: {
29
+ 'package-json-processor': Linter.Processor<Linter.ProcessorFile | string>;
30
+ };
31
+
32
+ // @public (undocumented)
33
+ export const rules: {
34
+ 'ensure-feature-flag-registration': Rule.RuleModule;
35
+ 'ensure-feature-flag-prefix': Rule.RuleModule;
36
+ 'ensure-test-runner-arguments': Rule.RuleModule;
37
+ 'ensure-test-runner-nested-count': Rule.RuleModule;
38
+ 'no-invalid-feature-flag-usage': Rule.RuleModule;
39
+ 'no-pre-post-install-scripts': Rule.RuleModule;
40
+ 'no-invalid-storybook-decorator-usage': Rule.RuleModule;
41
+ };
42
+
43
+ // (No @packageDocumentation comment for this package)
44
+
45
+ ```