@atlaskit/eslint-plugin-design-system 10.4.2 → 10.4.4
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 +1024 -1021
- package/README.md +1 -1
- package/constellation/consistent-css-prop-usage/usage.mdx +18 -18
- package/constellation/index/usage.mdx +1 -1
- package/constellation/no-css-tagged-template-expression/usage.mdx +13 -13
- package/constellation/no-deprecated-apis/usage.mdx +26 -26
- package/constellation/no-deprecated-imports/usage.mdx +27 -27
- package/constellation/no-direct-use-of-web-platform-drag-and-drop/usage.mdx +5 -5
- package/constellation/no-empty-styled-expression/usage.mdx +11 -11
- package/constellation/no-exported-css/usage.mdx +7 -7
- package/constellation/no-exported-keyframes/usage.mdx +7 -7
- package/constellation/no-invalid-css-map/usage.mdx +52 -52
- package/constellation/no-keyframes-tagged-template-expression/usage.mdx +14 -14
- package/constellation/no-nested-styles/usage.mdx +13 -13
- package/constellation/no-physical-properties/usage.mdx +9 -9
- package/constellation/no-styled-tagged-template-expression/usage.mdx +30 -30
- package/constellation/no-unsafe-design-token-usage/usage.mdx +4 -4
- package/constellation/no-unsafe-style-overrides/usage.mdx +5 -5
- package/constellation/prefer-primitives/usage.mdx +1 -1
- package/constellation/use-heading/usage.mdx +2 -2
- package/constellation/use-heading-level-in-spotlight-card/usage.mdx +1 -1
- package/constellation/use-latest-xcss-syntax/usage.mdx +2 -2
- package/constellation/use-primitives/usage.mdx +38 -38
- package/constellation/use-tokens-space/usage.mdx +2 -2
- package/dist/cjs/index.codegen.js +1 -1
- package/dist/cjs/presets/all.codegen.js +2 -2
- package/dist/cjs/presets/recommended.codegen.js +3 -2
- package/dist/cjs/rules/index.codegen.js +1 -1
- package/dist/cjs/rules/no-html-button/index.js +1 -1
- package/dist/cjs/rules/use-latest-xcss-syntax/index.js +1 -1
- package/dist/cjs/rules/use-latest-xcss-syntax/transformers/style-property/supported.js +1 -1
- package/dist/es2019/index.codegen.js +1 -1
- package/dist/es2019/presets/all.codegen.js +2 -2
- package/dist/es2019/presets/recommended.codegen.js +3 -2
- package/dist/es2019/rules/index.codegen.js +1 -1
- package/dist/es2019/rules/no-html-button/index.js +1 -1
- package/dist/es2019/rules/use-latest-xcss-syntax/index.js +1 -1
- package/dist/es2019/rules/use-latest-xcss-syntax/transformers/style-property/supported.js +1 -1
- package/dist/esm/index.codegen.js +1 -1
- package/dist/esm/presets/all.codegen.js +2 -2
- package/dist/esm/presets/recommended.codegen.js +3 -2
- package/dist/esm/rules/index.codegen.js +1 -1
- package/dist/esm/rules/no-html-button/index.js +1 -1
- package/dist/esm/rules/use-latest-xcss-syntax/index.js +1 -1
- package/dist/esm/rules/use-latest-xcss-syntax/transformers/style-property/supported.js +1 -1
- package/dist/types/index.codegen.d.ts +1 -0
- package/dist/types/presets/all.codegen.d.ts +1 -1
- package/dist/types/presets/recommended.codegen.d.ts +2 -1
- package/dist/types-ts4.5/index.codegen.d.ts +1 -0
- package/dist/types-ts4.5/presets/all.codegen.d.ts +1 -1
- package/dist/types-ts4.5/presets/recommended.codegen.d.ts +2 -1
- package/package.json +4 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::920113eedc2218488bff48b528364867>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
5
5
|
*/
|
|
6
6
|
import consistentCssPropUsage from './consistent-css-prop-usage';
|
|
@@ -10,7 +10,7 @@ var rule = createLintRule({
|
|
|
10
10
|
docs: {
|
|
11
11
|
description: 'Enforces usage of space design tokens rather than hard-coded values in xcss.',
|
|
12
12
|
recommended: true,
|
|
13
|
-
severity: '
|
|
13
|
+
severity: 'error'
|
|
14
14
|
},
|
|
15
15
|
messages: {
|
|
16
16
|
noRawSpacingValues: noRawSpacingValues
|
|
@@ -2,6 +2,6 @@ export default {
|
|
|
2
2
|
values: {
|
|
3
3
|
ignore: ['auto', 'initial', 'inherit', 'unset', 'revert', 'revert-layer',
|
|
4
4
|
// Currently the DST opinion is that 0 is valid. It doesn't need to be converted to `space.0`
|
|
5
|
-
'0', 'space.negative.025', 'space.negative.050', 'space.negative.075', 'space.negative.100', 'space.negative.150', 'space.negative.200', 'space.negative.250', 'space.negative.300', 'space.negative.400', 'space.025', 'space.050', 'space.075', 'space.100', 'space.150', 'space.200', 'space.250', 'space.300', 'space.400', 'space.500', 'space.600', 'space.800', 'space.1000']
|
|
5
|
+
'0', '0 auto', 'space.negative.025', 'space.negative.050', 'space.negative.075', 'space.negative.100', 'space.negative.150', 'space.negative.200', 'space.negative.250', 'space.negative.300', 'space.negative.400', 'space.0', 'space.025', 'space.050', 'space.075', 'space.100', 'space.150', 'space.200', 'space.250', 'space.300', 'space.400', 'space.500', 'space.600', 'space.800', 'space.1000']
|
|
6
6
|
}
|
|
7
7
|
};
|
|
@@ -56,6 +56,7 @@ export declare const configs: {
|
|
|
56
56
|
'@atlaskit/design-system/no-empty-styled-expression': string;
|
|
57
57
|
'@atlaskit/design-system/no-exported-css': string;
|
|
58
58
|
'@atlaskit/design-system/no-exported-keyframes': string;
|
|
59
|
+
'@atlaskit/design-system/no-html-button': string;
|
|
59
60
|
'@atlaskit/design-system/no-invalid-css-map': string;
|
|
60
61
|
'@atlaskit/design-system/no-nested-styles': string;
|
|
61
62
|
'@atlaskit/design-system/no-unsafe-design-token-usage': string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::ed09a41b825250124299d53a17b16b74>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
5
5
|
*/
|
|
6
6
|
declare const _default: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::f5a2e39689cb7db642a65999cdc6f03a>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
5
5
|
*/
|
|
6
6
|
declare const _default: {
|
|
@@ -17,6 +17,7 @@ declare const _default: {
|
|
|
17
17
|
'@atlaskit/design-system/no-empty-styled-expression': string;
|
|
18
18
|
'@atlaskit/design-system/no-exported-css': string;
|
|
19
19
|
'@atlaskit/design-system/no-exported-keyframes': string;
|
|
20
|
+
'@atlaskit/design-system/no-html-button': string;
|
|
20
21
|
'@atlaskit/design-system/no-invalid-css-map': string;
|
|
21
22
|
'@atlaskit/design-system/no-nested-styles': string;
|
|
22
23
|
'@atlaskit/design-system/no-unsafe-design-token-usage': string;
|
|
@@ -56,6 +56,7 @@ export declare const configs: {
|
|
|
56
56
|
'@atlaskit/design-system/no-empty-styled-expression': string;
|
|
57
57
|
'@atlaskit/design-system/no-exported-css': string;
|
|
58
58
|
'@atlaskit/design-system/no-exported-keyframes': string;
|
|
59
|
+
'@atlaskit/design-system/no-html-button': string;
|
|
59
60
|
'@atlaskit/design-system/no-invalid-css-map': string;
|
|
60
61
|
'@atlaskit/design-system/no-nested-styles': string;
|
|
61
62
|
'@atlaskit/design-system/no-unsafe-design-token-usage': string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::ed09a41b825250124299d53a17b16b74>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
5
5
|
*/
|
|
6
6
|
declare const _default: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::f5a2e39689cb7db642a65999cdc6f03a>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
5
5
|
*/
|
|
6
6
|
declare const _default: {
|
|
@@ -17,6 +17,7 @@ declare const _default: {
|
|
|
17
17
|
'@atlaskit/design-system/no-empty-styled-expression': string;
|
|
18
18
|
'@atlaskit/design-system/no-exported-css': string;
|
|
19
19
|
'@atlaskit/design-system/no-exported-keyframes': string;
|
|
20
|
+
'@atlaskit/design-system/no-html-button': string;
|
|
20
21
|
'@atlaskit/design-system/no-invalid-css-map': string;
|
|
21
22
|
'@atlaskit/design-system/no-nested-styles': string;
|
|
22
23
|
'@atlaskit/design-system/no-unsafe-design-token-usage': 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": "10.4.
|
|
4
|
+
"version": "10.4.4",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"publishConfig": {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"react": "^16.8.0 || ^17.0.0 || ~18.2.0"
|
|
42
42
|
},
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@atlaskit/eslint-utils": "^1.
|
|
44
|
+
"@atlaskit/eslint-utils": "^1.5.0",
|
|
45
45
|
"@atlaskit/tokens": "*",
|
|
46
46
|
"@babel/runtime": "^7.0.0",
|
|
47
47
|
"@typescript-eslint/utils": "^5.48.1",
|
|
@@ -56,9 +56,8 @@
|
|
|
56
56
|
"@af/formatting": "*",
|
|
57
57
|
"@atlaskit/ds-lib": "^2.3.0",
|
|
58
58
|
"@atlaskit/theme": "^12.8.0",
|
|
59
|
-
"@atlassian/atlassian-frontend-prettier-config-1.0.1": "npm:@atlassian/atlassian-frontend-prettier-config@1.0.1",
|
|
60
59
|
"@atlassian/codegen": "*",
|
|
61
|
-
"@atlassian/eslint-utils": "^0.
|
|
60
|
+
"@atlassian/eslint-utils": "^0.5.0",
|
|
62
61
|
"@emotion/react": "^11.7.1",
|
|
63
62
|
"@emotion/styled": "^11.0.0",
|
|
64
63
|
"@types/eslint": "^8.56.6",
|
|
@@ -93,6 +92,5 @@
|
|
|
93
92
|
]
|
|
94
93
|
}
|
|
95
94
|
},
|
|
96
|
-
"homepage": "https://atlassian.design/components/eslint-plugin-design-system"
|
|
97
|
-
"prettier": "@atlassian/atlassian-frontend-prettier-config-1.0.1"
|
|
95
|
+
"homepage": "https://atlassian.design/components/eslint-plugin-design-system"
|
|
98
96
|
}
|