@atlaskit/eslint-plugin-design-system 5.3.0 → 5.3.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 +12 -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/presets/all.codegen.d.ts +5 -5
- package/dist/types/presets/recommended.codegen.d.ts +5 -5
- package/dist/types/rules/ensure-design-token-usage-spacing/index.d.ts +2 -2
- package/dist/types/rules/ensure-design-token-usage-spacing/utils.d.ts +2 -2
- package/dist/types/rules/use-primitives/types.d.ts +1 -1
- package/dist/types/rules/use-visually-hidden/utils.d.ts +2 -2
- package/dist/types/rules/utils/get-is-exception.d.ts +1 -1
- package/dist/types/rules/utils/is-node.d.ts +2 -2
- package/dist/types/rules/utils/types.d.ts +6 -6
- package/dist/{types-ts4.0 → types-ts4.5}/rules/ensure-design-token-usage-spacing/index.d.ts +2 -2
- package/dist/{types-ts4.0 → types-ts4.5}/rules/ensure-design-token-usage-spacing/utils.d.ts +2 -2
- package/dist/types-ts4.5/rules/use-primitives/types.d.ts +3 -0
- package/dist/{types-ts4.0 → types-ts4.5}/rules/use-visually-hidden/utils.d.ts +2 -2
- package/dist/types-ts4.5/rules/utils/get-is-exception.d.ts +2 -0
- package/dist/{types-ts4.0 → types-ts4.5}/rules/utils/is-node.d.ts +2 -2
- package/dist/{types-ts4.0 → types-ts4.5}/rules/utils/types.d.ts +6 -6
- package/package.json +6 -5
- package/dist/types-ts4.0/rules/use-primitives/types.d.ts +0 -3
- package/dist/types-ts4.0/rules/utils/get-is-exception.d.ts +0 -2
- package/dist/{types-ts4.0 → types-ts4.5}/index.codegen.d.ts +0 -0
- package/dist/{types-ts4.0 → types-ts4.5}/index.d.ts +0 -0
- package/dist/{types-ts4.0 → types-ts4.5}/presets/all.codegen.d.ts +5 -5
- package/dist/{types-ts4.0 → types-ts4.5}/presets/recommended.codegen.d.ts +5 -5
- /package/dist/{types-ts4.0 → types-ts4.5}/rules/ensure-design-token-usage/index.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/rules/icon-label/index.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/rules/index.codegen.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/rules/no-banned-imports/index.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/rules/no-banned-imports/paths.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/rules/no-deprecated-apis/helpers/filter-actionable-deprecations.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/rules/no-deprecated-apis/helpers/validate-deprecated-apis-config.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/rules/no-deprecated-apis/index.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/rules/no-deprecated-design-token-usage/index.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/rules/no-deprecated-imports/index.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/rules/no-margin/index.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/rules/no-unsafe-design-token-usage/index.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/rules/use-primitives/index.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/rules/use-primitives/utils.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/rules/use-visually-hidden/constants.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/rules/use-visually-hidden/fix-jsx.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/rules/use-visually-hidden/fix-vanilla.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/rules/use-visually-hidden/index.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/rules/utils/create-rule.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/rules/utils/get-deprecated-config.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/rules/utils/get-import-node-by-source.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/rules/utils/is-color.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/rules/utils/is-elevation.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/rules/utils/is-token.d.ts +0 -0
- /package/dist/{types-ts4.0 → types-ts4.5}/rules/utils/jsx.d.ts +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# @atlaskit/eslint-plugin-design-system
|
|
2
2
|
|
|
3
|
+
## 5.3.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
|
+
## 5.3.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
|
## 5.3.0
|
|
4
16
|
|
|
5
17
|
### Minor Changes
|
package/dist/cjs/version.json
CHANGED
package/dist/es2019/version.json
CHANGED
package/dist/esm/version.json
CHANGED
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::3f9b973d6350522de7bd32f13c58ce56>>
|
|
4
|
+
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
5
|
+
*/
|
|
1
6
|
declare const _default: {
|
|
2
7
|
plugins: string[];
|
|
3
8
|
rules: {
|
|
@@ -14,9 +19,4 @@ declare const _default: {
|
|
|
14
19
|
'@atlaskit/design-system/use-visually-hidden': string;
|
|
15
20
|
};
|
|
16
21
|
};
|
|
17
|
-
/**
|
|
18
|
-
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
19
|
-
* @codegen <<SignedSource::3f9b973d6350522de7bd32f13c58ce56>>
|
|
20
|
-
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
21
|
-
*/
|
|
22
22
|
export default _default;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::b3d2f24d8d37a87fc2bbd964dfdcb87c>>
|
|
4
|
+
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
5
|
+
*/
|
|
1
6
|
declare const _default: {
|
|
2
7
|
plugins: string[];
|
|
3
8
|
rules: {
|
|
@@ -11,9 +16,4 @@ declare const _default: {
|
|
|
11
16
|
'@atlaskit/design-system/use-visually-hidden': string;
|
|
12
17
|
};
|
|
13
18
|
};
|
|
14
|
-
/**
|
|
15
|
-
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
16
|
-
* @codegen <<SignedSource::b3d2f24d8d37a87fc2bbd964dfdcb87c>>
|
|
17
|
-
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
18
|
-
*/
|
|
19
19
|
export default _default;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Rule, Scope } from 'eslint';
|
|
2
2
|
import { EslintNode, TaggedTemplateExpression } from 'eslint-codemod-utils';
|
|
3
|
-
export
|
|
4
|
-
export
|
|
3
|
+
export type ProcessedCSSLines = [string, string][];
|
|
4
|
+
export type TargetOptions = ('spacing' | 'typography' | 'shape')[];
|
|
5
5
|
/**
|
|
6
6
|
* Currently we have a wide range of experimental spacing tokens that we are testing.
|
|
7
7
|
* We only want transforms to apply to the stable scale values, not the rest.
|
|
@@ -10,11 +10,11 @@ declare const referenceObject: {
|
|
|
10
10
|
overflow: string;
|
|
11
11
|
whiteSpace: string;
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
type KeyValue = {
|
|
14
14
|
key: string;
|
|
15
15
|
value: string;
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type ReferenceObject = typeof referenceObject;
|
|
18
18
|
/**
|
|
19
19
|
* Returns the first import in the esprima AST.
|
|
20
20
|
*/
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { Rule } from 'eslint';
|
|
2
|
-
export declare const getIsException: (exceptions?: string[]
|
|
2
|
+
export declare const getIsException: (exceptions?: string[]) => (node: Rule.Node) => boolean;
|
|
@@ -4,7 +4,7 @@ export declare const isDecendantOfGlobalToken: (node: EslintNode) => boolean;
|
|
|
4
4
|
export declare const isDecendantOfType: (node: Rule.Node, type: Rule.Node['type'], skipNode?: boolean) => boolean;
|
|
5
5
|
export declare const isPropertyKey: (node: Rule.Node) => boolean;
|
|
6
6
|
export declare const isDecendantOfStyleJsxAttribute: (node: Rule.Node) => boolean;
|
|
7
|
-
export declare const isStyledTemplateNode: (node?: Expression | null
|
|
8
|
-
export declare const isStyledObjectNode: (node?: Expression | null
|
|
7
|
+
export declare const isStyledTemplateNode: (node?: Expression | null) => node is TaggedTemplateExpression;
|
|
8
|
+
export declare const isStyledObjectNode: (node?: Expression | null) => node is CallExpression;
|
|
9
9
|
export declare const isDecendantOfStyleBlock: (node: Rule.Node) => boolean;
|
|
10
10
|
export declare const isChildOfType: (node: Rule.Node, type: Rule.Node['type']) => boolean;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
export type DeprecatedCategories = 'jsxAttributes' | 'imports';
|
|
2
|
+
export type DeprecatedConfig = DeprecatedJSXAttributeConfig | DeprecatedImportConfig;
|
|
3
|
+
export type DeprecatedJSXAttributeConfig = {
|
|
4
4
|
[key: string]: DeprecatedJSXAttributeConfigEntry[];
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type DeprecatedJSXAttributeConfigEntry = {
|
|
7
7
|
moduleSpecifier: string;
|
|
8
8
|
namedSpecifiers?: string[];
|
|
9
9
|
actionableVersion?: string;
|
|
10
10
|
};
|
|
11
|
-
export
|
|
11
|
+
export type DeprecatedImportConfig = {
|
|
12
12
|
[key: string]: DeprecatedImportConfigEntry;
|
|
13
13
|
};
|
|
14
|
-
export
|
|
14
|
+
export type DeprecatedImportConfigEntry = {
|
|
15
15
|
message?: string;
|
|
16
16
|
importSpecifiers?: {
|
|
17
17
|
importName: string;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import type { Rule, Scope } from 'eslint';
|
|
2
2
|
import { EslintNode, TaggedTemplateExpression } from 'eslint-codemod-utils';
|
|
3
|
-
export
|
|
3
|
+
export type ProcessedCSSLines = [
|
|
4
4
|
string,
|
|
5
5
|
string
|
|
6
6
|
][];
|
|
7
|
-
export
|
|
7
|
+
export type TargetOptions = ('spacing' | 'typography' | 'shape')[];
|
|
8
8
|
/**
|
|
9
9
|
* Currently we have a wide range of experimental spacing tokens that we are testing.
|
|
10
10
|
* We only want transforms to apply to the stable scale values, not the rest.
|
|
@@ -10,11 +10,11 @@ declare const referenceObject: {
|
|
|
10
10
|
overflow: string;
|
|
11
11
|
whiteSpace: string;
|
|
12
12
|
};
|
|
13
|
-
|
|
13
|
+
type KeyValue = {
|
|
14
14
|
key: string;
|
|
15
15
|
value: string;
|
|
16
16
|
};
|
|
17
|
-
export
|
|
17
|
+
export type ReferenceObject = typeof referenceObject;
|
|
18
18
|
/**
|
|
19
19
|
* Returns the first import in the esprima AST.
|
|
20
20
|
*/
|
|
@@ -4,7 +4,7 @@ export declare const isDecendantOfGlobalToken: (node: EslintNode) => boolean;
|
|
|
4
4
|
export declare const isDecendantOfType: (node: Rule.Node, type: Rule.Node['type'], skipNode?: boolean) => boolean;
|
|
5
5
|
export declare const isPropertyKey: (node: Rule.Node) => boolean;
|
|
6
6
|
export declare const isDecendantOfStyleJsxAttribute: (node: Rule.Node) => boolean;
|
|
7
|
-
export declare const isStyledTemplateNode: (node?: Expression | null
|
|
8
|
-
export declare const isStyledObjectNode: (node?: Expression | null
|
|
7
|
+
export declare const isStyledTemplateNode: (node?: Expression | null) => node is TaggedTemplateExpression;
|
|
8
|
+
export declare const isStyledObjectNode: (node?: Expression | null) => node is CallExpression;
|
|
9
9
|
export declare const isDecendantOfStyleBlock: (node: Rule.Node) => boolean;
|
|
10
10
|
export declare const isChildOfType: (node: Rule.Node, type: Rule.Node['type']) => boolean;
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
export type DeprecatedCategories = 'jsxAttributes' | 'imports';
|
|
2
|
+
export type DeprecatedConfig = DeprecatedJSXAttributeConfig | DeprecatedImportConfig;
|
|
3
|
+
export type DeprecatedJSXAttributeConfig = {
|
|
4
4
|
[key: string]: DeprecatedJSXAttributeConfigEntry[];
|
|
5
5
|
};
|
|
6
|
-
export
|
|
6
|
+
export type DeprecatedJSXAttributeConfigEntry = {
|
|
7
7
|
moduleSpecifier: string;
|
|
8
8
|
namedSpecifiers?: string[];
|
|
9
9
|
actionableVersion?: string;
|
|
10
10
|
};
|
|
11
|
-
export
|
|
11
|
+
export type DeprecatedImportConfig = {
|
|
12
12
|
[key: string]: DeprecatedImportConfigEntry;
|
|
13
13
|
};
|
|
14
|
-
export
|
|
14
|
+
export type DeprecatedImportConfigEntry = {
|
|
15
15
|
message?: string;
|
|
16
16
|
importSpecifiers?: {
|
|
17
17
|
importName: string;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/eslint-plugin-design-system",
|
|
3
3
|
"description": "The essential plugin for use with the Atlassian Design System.",
|
|
4
|
-
"version": "5.3.
|
|
4
|
+
"version": "5.3.2",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"publishConfig": {
|
|
7
7
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -20,9 +20,10 @@
|
|
|
20
20
|
"module:es2019": "dist/es2019/index.js",
|
|
21
21
|
"types": "dist/types/index.d.ts",
|
|
22
22
|
"typesVersions": {
|
|
23
|
-
">=4.
|
|
23
|
+
">=4.5 <4.9": {
|
|
24
24
|
"*": [
|
|
25
|
-
"dist/types-ts4.
|
|
25
|
+
"dist/types-ts4.5/*",
|
|
26
|
+
"dist/types-ts4.5/index.d.ts"
|
|
26
27
|
]
|
|
27
28
|
}
|
|
28
29
|
},
|
|
@@ -32,7 +33,7 @@
|
|
|
32
33
|
".": "./src/index.tsx"
|
|
33
34
|
},
|
|
34
35
|
"dependencies": {
|
|
35
|
-
"@atlaskit/tokens": "^1.
|
|
36
|
+
"@atlaskit/tokens": "^1.4.0",
|
|
36
37
|
"@babel/runtime": "^7.0.0",
|
|
37
38
|
"@typescript-eslint/utils": "^5.48.1",
|
|
38
39
|
"ajv": "^6.12.6",
|
|
@@ -54,7 +55,7 @@
|
|
|
54
55
|
"react": "^16.8.0",
|
|
55
56
|
"ts-node": "^10.9.1",
|
|
56
57
|
"tsconfig-paths": "^3.9.0",
|
|
57
|
-
"typescript": "4.
|
|
58
|
+
"typescript": "~4.9.5"
|
|
58
59
|
},
|
|
59
60
|
"scripts": {
|
|
60
61
|
"ak-postbuild": "cp -r configs dist",
|
|
File without changes
|
|
File without changes
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::3f9b973d6350522de7bd32f13c58ce56>>
|
|
4
|
+
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
5
|
+
*/
|
|
1
6
|
declare const _default: {
|
|
2
7
|
plugins: string[];
|
|
3
8
|
rules: {
|
|
@@ -14,9 +19,4 @@ declare const _default: {
|
|
|
14
19
|
'@atlaskit/design-system/use-visually-hidden': string;
|
|
15
20
|
};
|
|
16
21
|
};
|
|
17
|
-
/**
|
|
18
|
-
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
19
|
-
* @codegen <<SignedSource::3f9b973d6350522de7bd32f13c58ce56>>
|
|
20
|
-
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
21
|
-
*/
|
|
22
22
|
export default _default;
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
+
* @codegen <<SignedSource::b3d2f24d8d37a87fc2bbd964dfdcb87c>>
|
|
4
|
+
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
5
|
+
*/
|
|
1
6
|
declare const _default: {
|
|
2
7
|
plugins: string[];
|
|
3
8
|
rules: {
|
|
@@ -11,9 +16,4 @@ declare const _default: {
|
|
|
11
16
|
'@atlaskit/design-system/use-visually-hidden': string;
|
|
12
17
|
};
|
|
13
18
|
};
|
|
14
|
-
/**
|
|
15
|
-
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
16
|
-
* @codegen <<SignedSource::b3d2f24d8d37a87fc2bbd964dfdcb87c>>
|
|
17
|
-
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
18
|
-
*/
|
|
19
19
|
export default _default;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|