@atlaskit/eslint-plugin-platform 0.2.1 → 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 +6 -0
- package/dist/cjs/version.json +1 -1
- package/dist/es2019/version.json +1 -1
- package/dist/esm/version.json +1 -1
- package/dist/types-ts4.5/index.d.ts +28 -0
- package/dist/types-ts4.5/rules/ensure-feature-flag-prefix/index.d.ts +3 -0
- package/dist/types-ts4.5/rules/ensure-feature-flag-registration/index.d.ts +3 -0
- package/dist/types-ts4.5/rules/ensure-test-runner-arguments/index.d.ts +3 -0
- package/dist/types-ts4.5/rules/ensure-test-runner-nested-count/index.d.ts +3 -0
- package/dist/types-ts4.5/rules/no-invalid-feature-flag-usage/index.d.ts +3 -0
- package/dist/types-ts4.5/rules/no-invalid-storybook-decorator-usage/index.d.ts +3 -0
- package/dist/types-ts4.5/rules/no-pre-post-installs/index.d.ts +3 -0
- package/dist/types-ts4.5/rules/util/registration-utils.d.ts +19 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/cjs/version.json
CHANGED
package/dist/es2019/version.json
CHANGED
package/dist/esm/version.json
CHANGED
|
@@ -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,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.
|
|
4
|
+
"version": "0.2.2",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"atlassian": {
|
|
7
7
|
"team": "UIP - Platform Integration Trust (PITa)",
|