@atlaskit/eslint-plugin-design-system 10.4.1 → 10.4.3
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 +17 -0
- package/constellation/index/usage.mdx +39 -39
- package/dist/cjs/presets/all.codegen.js +2 -2
- package/dist/cjs/presets/recommended.codegen.js +2 -2
- package/dist/cjs/rules/no-banned-imports/paths.js +0 -6
- 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/presets/all.codegen.js +2 -2
- package/dist/es2019/presets/recommended.codegen.js +2 -2
- package/dist/es2019/rules/no-banned-imports/paths.js +0 -6
- 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/presets/all.codegen.js +2 -2
- package/dist/esm/presets/recommended.codegen.js +2 -2
- package/dist/esm/rules/no-banned-imports/paths.js +0 -6
- 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/presets/all.codegen.d.ts +1 -1
- package/dist/types/presets/recommended.codegen.d.ts +1 -1
- package/dist/types-ts4.5/presets/all.codegen.d.ts +1 -1
- package/dist/types-ts4.5/presets/recommended.codegen.d.ts +1 -1
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,22 @@
|
|
|
1
1
|
# @atlaskit/eslint-plugin-design-system
|
|
2
2
|
|
|
3
|
+
## 10.4.3
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#103109](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/103109)
|
|
8
|
+
[`387067d94233`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/387067d94233) -
|
|
9
|
+
`use-latest-xcss-syntax` - Update to `error` in `recommended` and `all`.
|
|
10
|
+
- Updated dependencies
|
|
11
|
+
|
|
12
|
+
## 10.4.2
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#104190](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/104190)
|
|
17
|
+
[`a6243f719741`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/a6243f719741) -
|
|
18
|
+
`no-banned-imports`: Remove banned paths for unsafe Buttons and Pressable primitive
|
|
19
|
+
|
|
3
20
|
## 10.4.1
|
|
4
21
|
|
|
5
22
|
### Patch Changes
|
|
@@ -10,44 +10,44 @@ This plugin contains rules that should be used when working with the
|
|
|
10
10
|
<!-- START_RULE_TABLE_CODEGEN -->
|
|
11
11
|
<!-- @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen -->
|
|
12
12
|
|
|
13
|
-
| Rule
|
|
14
|
-
|
|
|
15
|
-
| <a href="consistent-css-prop-usage/usage">consistent-css-prop-usage</a> | Ensures consistency with `css` and `xcss` prop usages | Yes | Yes | |
|
|
16
|
-
| <a href="ensure-design-token-usage/usage">ensure-design-token-usage</a> | Enforces usage of design tokens rather than hard-coded values. | Yes | Yes | Yes |
|
|
17
|
-
| <a href="ensure-design-token-usage-preview/usage">ensure-design-token-usage/preview</a> | Enforces usage of pre-release design tokens rather than hard-coded values. | | Yes | Yes |
|
|
18
|
-
| <a href="icon-label/usage">icon-label</a> | Enforces accessible usage of icon labels when composed with Atlassian Design System components. | Yes | Yes | |
|
|
19
|
-
| <a href="no-banned-imports/usage">no-banned-imports</a> | Disallow importing banned modules. | Yes | | |
|
|
20
|
-
| <a href="no-css-tagged-template-expression/usage">no-css-tagged-template-expression</a> | Disallows any `css` tagged template expressions that originate from Emotion, Styled Components or Compiled | | Yes | |
|
|
21
|
-
| <a href="no-deprecated-apis/usage">no-deprecated-apis</a> | Disallow using deprecated APIs. | Yes | | |
|
|
22
|
-
| <a href="no-deprecated-design-token-usage/usage">no-deprecated-design-token-usage</a> | Disallow using deprecated design tokens. | Yes | Yes | |
|
|
23
|
-
| <a href="no-deprecated-imports/usage">no-deprecated-imports</a> | Disallow importing deprecated modules. | Yes | | |
|
|
24
|
-
| <a href="no-direct-use-of-web-platform-drag-and-drop/usage">no-direct-use-of-web-platform-drag-and-drop</a> | Disallow using direct use of native drag and drop (please use Pragmatic drag and drop) | Yes | | |
|
|
25
|
-
| <a href="no-empty-styled-expression/usage">no-empty-styled-expression</a> | Forbids any styled expression to be used when passing empty arguments to styled.div() (or other JSX elements). | Yes | | |
|
|
26
|
-
| <a href="no-exported-css/usage">no-exported-css</a> | Forbid exporting `css` function calls. Exporting `css` function calls can result in unexpected behaviour at runtime, and is not statically analysable. | Yes | | |
|
|
27
|
-
| <a href="no-exported-keyframes/usage">no-exported-keyframes</a> | Forbid exporting `keyframes` function calls. Exporting `css` function calls can result in unexpected behaviour at runtime, and is not statically analysable. | Yes | | |
|
|
28
|
-
| <a href="no-html-anchor/usage">no-html-anchor</a> | Discourage direct usage of HTML anchor elements in favor of Atlassian Design System link components. | | | |
|
|
29
|
-
| <a href="no-html-button/usage">no-html-button</a> | Discourage direct usage of HTML button elements in favor of Atlassian Design System button components. | | | |
|
|
30
|
-
| <a href="no-invalid-css-map/usage">no-invalid-css-map</a> | Checks the validity of a CSS map created through cssMap. This is intended to be used alongside TypeScript's type-checking. | Yes | | |
|
|
31
|
-
| <a href="no-keyframes-tagged-template-expression/usage">no-keyframes-tagged-template-expression</a> | Disallows any `keyframe` tagged template expressions that originate from Emotion, Styled Components or Compiled | | Yes | |
|
|
32
|
-
| <a href="no-margin/usage">no-margin</a> | Disallow using the margin CSS property. | | | |
|
|
33
|
-
| <a href="no-nested-styles/usage">no-nested-styles</a> | Disallows use of nested styles in `css` functions. | Yes | | |
|
|
34
|
-
| <a href="no-physical-properties/usage">no-physical-properties</a> | Disallow physical properties and values in `css` function calls. | | Yes | |
|
|
35
|
-
| <a href="no-styled-tagged-template-expression/usage">no-styled-tagged-template-expression</a> | Disallows any `styled` tagged template expressions that originate from Emotion, Styled Components or Compiled | | Yes | |
|
|
36
|
-
| <a href="no-unsafe-design-token-usage/usage">no-unsafe-design-token-usage</a> | Enforces design token usage is statically and locally analyzable. | Yes | Yes | |
|
|
37
|
-
| <a href="no-unsafe-style-overrides/usage">no-unsafe-style-overrides</a> | Discourage usage of unsafe style overrides used against the Atlassian Design System. | Yes | | |
|
|
38
|
-
| <a href="no-unsupported-drag-and-drop-libraries/usage">no-unsupported-drag-and-drop-libraries</a> | Disallow importing unsupported drag and drop modules. | Yes | | |
|
|
39
|
-
| <a href="prefer-primitives/usage">prefer-primitives</a> | Increase awareness of primitive components via code hints. Strictly used for education purposes and discoverability. To enforce usage please refer to the `use-primitives` rule. | | | |
|
|
40
|
-
| <a href="use-button-group-label/usage">use-button-group-label</a> | Ensures button groups are described to assistive technology by a direct label or by another element. | Yes | | Yes |
|
|
41
|
-
| <a href="use-drawer-label/usage">use-drawer-label</a> | Encourages to provide accessible name for Atlassian Design System Drawer component. | Yes | | Yes |
|
|
42
|
-
| <a href="use-heading/usage">use-heading</a> | Encourage the usage of heading components. | | Yes | Yes |
|
|
43
|
-
| <a href="use-heading-level-in-spotlight-card/usage">use-heading-level-in-spotlight-card</a> | Inform developers of eventual requirement of `headingLevel` prop in `SpotlightCard` component. The heading level should be the appropriate level according to the surrounding context. | Yes | Yes | |
|
|
44
|
-
| <a href="use-href-in-link-item/usage">use-href-in-link-item</a> | Inform developers of eventual requirement of `href` prop in `LinkItem` component. Elements with a `link` role require an `href` attribute for users to properly navigate, particularly those using assistive technologies. If no valid `href` is required for your use case, consider using a `ButtonItem` instead. | Yes | Yes | Yes |
|
|
45
|
-
| <a href="use-latest-xcss-syntax/usage">use-latest-xcss-syntax</a> | Enforces usage of space design tokens rather than hard-coded values in xcss. | Yes | Yes | |
|
|
46
|
-
| <a href="use-popup-label/usage">use-popup-label</a> | Encourages to provide accessible name for Atlassian Design System Popup component. | Yes | | Yes |
|
|
47
|
-
| <a href="use-primitives/usage">use-primitives</a> | Encourage the usage of primitives components. | | Yes | Yes |
|
|
48
|
-
| <a href="use-primitives-text/usage">use-primitives-text</a> | Encourage the usage of text components. | | Yes | Yes |
|
|
49
|
-
| <a href="use-tokens-space/usage">use-tokens-space</a> | Enforces usage of space design tokens rather than hard-coded values. | | Yes | Yes |
|
|
50
|
-
| <a href="use-tokens-typography/usage">use-tokens-typography</a> | Enforces usage of design tokens for typography properties rather than hard-coded values. | | Yes | Yes |
|
|
51
|
-
| <a href="use-visually-hidden/usage">use-visually-hidden</a> | Enforce usage of the visually hidden component. | Yes | Yes | |
|
|
13
|
+
| Rule | Description | Recommended | Fixable | Suggestions |
|
|
14
|
+
| --------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- | ------- | ----------- |
|
|
15
|
+
| <a href="/components/eslint-plugin-design-system/consistent-css-prop-usage/usage">consistent-css-prop-usage</a> | Ensures consistency with `css` and `xcss` prop usages | Yes | Yes | |
|
|
16
|
+
| <a href="/components/eslint-plugin-design-system/ensure-design-token-usage/usage">ensure-design-token-usage</a> | Enforces usage of design tokens rather than hard-coded values. | Yes | Yes | Yes |
|
|
17
|
+
| <a href="/components/eslint-plugin-design-system/ensure-design-token-usage-preview/usage">ensure-design-token-usage/preview</a> | Enforces usage of pre-release design tokens rather than hard-coded values. | | Yes | Yes |
|
|
18
|
+
| <a href="/components/eslint-plugin-design-system/icon-label/usage">icon-label</a> | Enforces accessible usage of icon labels when composed with Atlassian Design System components. | Yes | Yes | |
|
|
19
|
+
| <a href="/components/eslint-plugin-design-system/no-banned-imports/usage">no-banned-imports</a> | Disallow importing banned modules. | Yes | | |
|
|
20
|
+
| <a href="/components/eslint-plugin-design-system/no-css-tagged-template-expression/usage">no-css-tagged-template-expression</a> | Disallows any `css` tagged template expressions that originate from Emotion, Styled Components or Compiled | | Yes | |
|
|
21
|
+
| <a href="/components/eslint-plugin-design-system/no-deprecated-apis/usage">no-deprecated-apis</a> | Disallow using deprecated APIs. | Yes | | |
|
|
22
|
+
| <a href="/components/eslint-plugin-design-system/no-deprecated-design-token-usage/usage">no-deprecated-design-token-usage</a> | Disallow using deprecated design tokens. | Yes | Yes | |
|
|
23
|
+
| <a href="/components/eslint-plugin-design-system/no-deprecated-imports/usage">no-deprecated-imports</a> | Disallow importing deprecated modules. | Yes | | |
|
|
24
|
+
| <a href="/components/eslint-plugin-design-system/no-direct-use-of-web-platform-drag-and-drop/usage">no-direct-use-of-web-platform-drag-and-drop</a> | Disallow using direct use of native drag and drop (please use Pragmatic drag and drop) | Yes | | |
|
|
25
|
+
| <a href="/components/eslint-plugin-design-system/no-empty-styled-expression/usage">no-empty-styled-expression</a> | Forbids any styled expression to be used when passing empty arguments to styled.div() (or other JSX elements). | Yes | | |
|
|
26
|
+
| <a href="/components/eslint-plugin-design-system/no-exported-css/usage">no-exported-css</a> | Forbid exporting `css` function calls. Exporting `css` function calls can result in unexpected behaviour at runtime, and is not statically analysable. | Yes | | |
|
|
27
|
+
| <a href="/components/eslint-plugin-design-system/no-exported-keyframes/usage">no-exported-keyframes</a> | Forbid exporting `keyframes` function calls. Exporting `css` function calls can result in unexpected behaviour at runtime, and is not statically analysable. | Yes | | |
|
|
28
|
+
| <a href="/components/eslint-plugin-design-system/no-html-anchor/usage">no-html-anchor</a> | Discourage direct usage of HTML anchor elements in favor of Atlassian Design System link components. | | | |
|
|
29
|
+
| <a href="/components/eslint-plugin-design-system/no-html-button/usage">no-html-button</a> | Discourage direct usage of HTML button elements in favor of Atlassian Design System button components. | | | |
|
|
30
|
+
| <a href="/components/eslint-plugin-design-system/no-invalid-css-map/usage">no-invalid-css-map</a> | Checks the validity of a CSS map created through cssMap. This is intended to be used alongside TypeScript's type-checking. | Yes | | |
|
|
31
|
+
| <a href="/components/eslint-plugin-design-system/no-keyframes-tagged-template-expression/usage">no-keyframes-tagged-template-expression</a> | Disallows any `keyframe` tagged template expressions that originate from Emotion, Styled Components or Compiled | | Yes | |
|
|
32
|
+
| <a href="/components/eslint-plugin-design-system/no-margin/usage">no-margin</a> | Disallow using the margin CSS property. | | | |
|
|
33
|
+
| <a href="/components/eslint-plugin-design-system/no-nested-styles/usage">no-nested-styles</a> | Disallows use of nested styles in `css` functions. | Yes | | |
|
|
34
|
+
| <a href="/components/eslint-plugin-design-system/no-physical-properties/usage">no-physical-properties</a> | Disallow physical properties and values in `css` function calls. | | Yes | |
|
|
35
|
+
| <a href="/components/eslint-plugin-design-system/no-styled-tagged-template-expression/usage">no-styled-tagged-template-expression</a> | Disallows any `styled` tagged template expressions that originate from Emotion, Styled Components or Compiled | | Yes | |
|
|
36
|
+
| <a href="/components/eslint-plugin-design-system/no-unsafe-design-token-usage/usage">no-unsafe-design-token-usage</a> | Enforces design token usage is statically and locally analyzable. | Yes | Yes | |
|
|
37
|
+
| <a href="/components/eslint-plugin-design-system/no-unsafe-style-overrides/usage">no-unsafe-style-overrides</a> | Discourage usage of unsafe style overrides used against the Atlassian Design System. | Yes | | |
|
|
38
|
+
| <a href="/components/eslint-plugin-design-system/no-unsupported-drag-and-drop-libraries/usage">no-unsupported-drag-and-drop-libraries</a> | Disallow importing unsupported drag and drop modules. | Yes | | |
|
|
39
|
+
| <a href="/components/eslint-plugin-design-system/prefer-primitives/usage">prefer-primitives</a> | Increase awareness of primitive components via code hints. Strictly used for education purposes and discoverability. To enforce usage please refer to the `use-primitives` rule. | | | |
|
|
40
|
+
| <a href="/components/eslint-plugin-design-system/use-button-group-label/usage">use-button-group-label</a> | Ensures button groups are described to assistive technology by a direct label or by another element. | Yes | | Yes |
|
|
41
|
+
| <a href="/components/eslint-plugin-design-system/use-drawer-label/usage">use-drawer-label</a> | Encourages to provide accessible name for Atlassian Design System Drawer component. | Yes | | Yes |
|
|
42
|
+
| <a href="/components/eslint-plugin-design-system/use-heading/usage">use-heading</a> | Encourage the usage of heading components. | | Yes | Yes |
|
|
43
|
+
| <a href="/components/eslint-plugin-design-system/use-heading-level-in-spotlight-card/usage">use-heading-level-in-spotlight-card</a> | Inform developers of eventual requirement of `headingLevel` prop in `SpotlightCard` component. The heading level should be the appropriate level according to the surrounding context. | Yes | Yes | |
|
|
44
|
+
| <a href="/components/eslint-plugin-design-system/use-href-in-link-item/usage">use-href-in-link-item</a> | Inform developers of eventual requirement of `href` prop in `LinkItem` component. Elements with a `link` role require an `href` attribute for users to properly navigate, particularly those using assistive technologies. If no valid `href` is required for your use case, consider using a `ButtonItem` instead. | Yes | Yes | Yes |
|
|
45
|
+
| <a href="/components/eslint-plugin-design-system/use-latest-xcss-syntax/usage">use-latest-xcss-syntax</a> | Enforces usage of space design tokens rather than hard-coded values in xcss. | Yes | Yes | |
|
|
46
|
+
| <a href="/components/eslint-plugin-design-system/use-popup-label/usage">use-popup-label</a> | Encourages to provide accessible name for Atlassian Design System Popup component. | Yes | | Yes |
|
|
47
|
+
| <a href="/components/eslint-plugin-design-system/use-primitives/usage">use-primitives</a> | Encourage the usage of primitives components. | | Yes | Yes |
|
|
48
|
+
| <a href="/components/eslint-plugin-design-system/use-primitives-text/usage">use-primitives-text</a> | Encourage the usage of text components. | | Yes | Yes |
|
|
49
|
+
| <a href="/components/eslint-plugin-design-system/use-tokens-space/usage">use-tokens-space</a> | Enforces usage of space design tokens rather than hard-coded values. | | Yes | Yes |
|
|
50
|
+
| <a href="/components/eslint-plugin-design-system/use-tokens-typography/usage">use-tokens-typography</a> | Enforces usage of design tokens for typography properties rather than hard-coded values. | | Yes | Yes |
|
|
51
|
+
| <a href="/components/eslint-plugin-design-system/use-visually-hidden/usage">use-visually-hidden</a> | Enforce usage of the visually hidden component. | Yes | Yes | |
|
|
52
52
|
|
|
53
53
|
<!-- END_RULE_TABLE_CODEGEN -->
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
/**
|
|
8
8
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
9
|
-
* @codegen <<SignedSource::
|
|
9
|
+
* @codegen <<SignedSource::9547e0088a838147f4c53a0d8d021909>>
|
|
10
10
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
11
11
|
*/
|
|
12
12
|
var _default = exports.default = {
|
|
@@ -42,7 +42,7 @@ var _default = exports.default = {
|
|
|
42
42
|
'@atlaskit/design-system/use-heading': 'warn',
|
|
43
43
|
'@atlaskit/design-system/use-heading-level-in-spotlight-card': 'warn',
|
|
44
44
|
'@atlaskit/design-system/use-href-in-link-item': 'warn',
|
|
45
|
-
'@atlaskit/design-system/use-latest-xcss-syntax': '
|
|
45
|
+
'@atlaskit/design-system/use-latest-xcss-syntax': 'error',
|
|
46
46
|
'@atlaskit/design-system/use-popup-label': 'warn',
|
|
47
47
|
'@atlaskit/design-system/use-primitives': 'warn',
|
|
48
48
|
'@atlaskit/design-system/use-primitives-text': 'warn',
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
/**
|
|
8
8
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
9
|
-
* @codegen <<SignedSource::
|
|
9
|
+
* @codegen <<SignedSource::aeb378113df7f1734ff3940f2d1ed3bb>>
|
|
10
10
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
11
11
|
*/
|
|
12
12
|
var _default = exports.default = {
|
|
@@ -32,7 +32,7 @@ var _default = exports.default = {
|
|
|
32
32
|
'@atlaskit/design-system/use-drawer-label': 'warn',
|
|
33
33
|
'@atlaskit/design-system/use-heading-level-in-spotlight-card': 'warn',
|
|
34
34
|
'@atlaskit/design-system/use-href-in-link-item': 'warn',
|
|
35
|
-
'@atlaskit/design-system/use-latest-xcss-syntax': '
|
|
35
|
+
'@atlaskit/design-system/use-latest-xcss-syntax': 'error',
|
|
36
36
|
'@atlaskit/design-system/use-popup-label': 'warn',
|
|
37
37
|
'@atlaskit/design-system/use-visually-hidden': 'error'
|
|
38
38
|
}
|
|
@@ -5,15 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.restrictedPaths = void 0;
|
|
7
7
|
var restrictedPaths = exports.restrictedPaths = [{
|
|
8
|
-
path: '@atlaskit/button/unsafe',
|
|
9
|
-
message: "The '@atlaskit/button/unsafe' export is for internal usage and testing of new button features and should not be consumed directly."
|
|
10
|
-
}, {
|
|
11
8
|
path: '@atlaskit/ds-lib',
|
|
12
9
|
message: "The '@atlaskit/ds-lib' library has been designed as a utility library for internal usage and should not be consumed directly."
|
|
13
10
|
}, {
|
|
14
11
|
path: '@atlaskit/ds-explorations',
|
|
15
12
|
message: "The @atlaskit/ds-explorations package is used for experiments and should not be consumed directly."
|
|
16
|
-
}, {
|
|
17
|
-
path: '@atlaskit/primitives/pressable',
|
|
18
|
-
message: "The @atlaskit/primitives/pressable export is currently under development and should not be consumed directly."
|
|
19
13
|
}];
|
|
@@ -16,7 +16,7 @@ var rule = (0, _createRule.createLintRule)({
|
|
|
16
16
|
docs: {
|
|
17
17
|
description: 'Enforces usage of space design tokens rather than hard-coded values in xcss.',
|
|
18
18
|
recommended: true,
|
|
19
|
-
severity: '
|
|
19
|
+
severity: 'error'
|
|
20
20
|
},
|
|
21
21
|
messages: {
|
|
22
22
|
noRawSpacingValues: noRawSpacingValues
|
|
@@ -8,6 +8,6 @@ var _default = exports.default = {
|
|
|
8
8
|
values: {
|
|
9
9
|
ignore: ['auto', 'initial', 'inherit', 'unset', 'revert', 'revert-layer',
|
|
10
10
|
// Currently the DST opinion is that 0 is valid. It doesn't need to be converted to `space.0`
|
|
11
|
-
'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']
|
|
11
|
+
'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']
|
|
12
12
|
}
|
|
13
13
|
};
|
|
@@ -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::9547e0088a838147f4c53a0d8d021909>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
5
5
|
*/
|
|
6
6
|
export default {
|
|
@@ -36,7 +36,7 @@ export default {
|
|
|
36
36
|
'@atlaskit/design-system/use-heading': 'warn',
|
|
37
37
|
'@atlaskit/design-system/use-heading-level-in-spotlight-card': 'warn',
|
|
38
38
|
'@atlaskit/design-system/use-href-in-link-item': 'warn',
|
|
39
|
-
'@atlaskit/design-system/use-latest-xcss-syntax': '
|
|
39
|
+
'@atlaskit/design-system/use-latest-xcss-syntax': 'error',
|
|
40
40
|
'@atlaskit/design-system/use-popup-label': 'warn',
|
|
41
41
|
'@atlaskit/design-system/use-primitives': 'warn',
|
|
42
42
|
'@atlaskit/design-system/use-primitives-text': 'warn',
|
|
@@ -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::aeb378113df7f1734ff3940f2d1ed3bb>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
5
5
|
*/
|
|
6
6
|
export default {
|
|
@@ -26,7 +26,7 @@ export default {
|
|
|
26
26
|
'@atlaskit/design-system/use-drawer-label': 'warn',
|
|
27
27
|
'@atlaskit/design-system/use-heading-level-in-spotlight-card': 'warn',
|
|
28
28
|
'@atlaskit/design-system/use-href-in-link-item': 'warn',
|
|
29
|
-
'@atlaskit/design-system/use-latest-xcss-syntax': '
|
|
29
|
+
'@atlaskit/design-system/use-latest-xcss-syntax': 'error',
|
|
30
30
|
'@atlaskit/design-system/use-popup-label': 'warn',
|
|
31
31
|
'@atlaskit/design-system/use-visually-hidden': 'error'
|
|
32
32
|
}
|
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
export const restrictedPaths = [{
|
|
2
|
-
path: '@atlaskit/button/unsafe',
|
|
3
|
-
message: `The '@atlaskit/button/unsafe' export is for internal usage and testing of new button features and should not be consumed directly.`
|
|
4
|
-
}, {
|
|
5
2
|
path: '@atlaskit/ds-lib',
|
|
6
3
|
message: `The '@atlaskit/ds-lib' library has been designed as a utility library for internal usage and should not be consumed directly.`
|
|
7
4
|
}, {
|
|
8
5
|
path: '@atlaskit/ds-explorations',
|
|
9
6
|
message: `The @atlaskit/ds-explorations package is used for experiments and should not be consumed directly.`
|
|
10
|
-
}, {
|
|
11
|
-
path: '@atlaskit/primitives/pressable',
|
|
12
|
-
message: `The @atlaskit/primitives/pressable export is currently under development and should not be consumed directly.`
|
|
13
7
|
}];
|
|
@@ -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
|
};
|
|
@@ -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::9547e0088a838147f4c53a0d8d021909>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
5
5
|
*/
|
|
6
6
|
export default {
|
|
@@ -36,7 +36,7 @@ export default {
|
|
|
36
36
|
'@atlaskit/design-system/use-heading': 'warn',
|
|
37
37
|
'@atlaskit/design-system/use-heading-level-in-spotlight-card': 'warn',
|
|
38
38
|
'@atlaskit/design-system/use-href-in-link-item': 'warn',
|
|
39
|
-
'@atlaskit/design-system/use-latest-xcss-syntax': '
|
|
39
|
+
'@atlaskit/design-system/use-latest-xcss-syntax': 'error',
|
|
40
40
|
'@atlaskit/design-system/use-popup-label': 'warn',
|
|
41
41
|
'@atlaskit/design-system/use-primitives': 'warn',
|
|
42
42
|
'@atlaskit/design-system/use-primitives-text': 'warn',
|
|
@@ -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::aeb378113df7f1734ff3940f2d1ed3bb>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
5
5
|
*/
|
|
6
6
|
export default {
|
|
@@ -26,7 +26,7 @@ export default {
|
|
|
26
26
|
'@atlaskit/design-system/use-drawer-label': 'warn',
|
|
27
27
|
'@atlaskit/design-system/use-heading-level-in-spotlight-card': 'warn',
|
|
28
28
|
'@atlaskit/design-system/use-href-in-link-item': 'warn',
|
|
29
|
-
'@atlaskit/design-system/use-latest-xcss-syntax': '
|
|
29
|
+
'@atlaskit/design-system/use-latest-xcss-syntax': 'error',
|
|
30
30
|
'@atlaskit/design-system/use-popup-label': 'warn',
|
|
31
31
|
'@atlaskit/design-system/use-visually-hidden': 'error'
|
|
32
32
|
}
|
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
export var restrictedPaths = [{
|
|
2
|
-
path: '@atlaskit/button/unsafe',
|
|
3
|
-
message: "The '@atlaskit/button/unsafe' export is for internal usage and testing of new button features and should not be consumed directly."
|
|
4
|
-
}, {
|
|
5
2
|
path: '@atlaskit/ds-lib',
|
|
6
3
|
message: "The '@atlaskit/ds-lib' library has been designed as a utility library for internal usage and should not be consumed directly."
|
|
7
4
|
}, {
|
|
8
5
|
path: '@atlaskit/ds-explorations',
|
|
9
6
|
message: "The @atlaskit/ds-explorations package is used for experiments and should not be consumed directly."
|
|
10
|
-
}, {
|
|
11
|
-
path: '@atlaskit/primitives/pressable',
|
|
12
|
-
message: "The @atlaskit/primitives/pressable export is currently under development and should not be consumed directly."
|
|
13
7
|
}];
|
|
@@ -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
|
};
|
|
@@ -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::9547e0088a838147f4c53a0d8d021909>>
|
|
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::aeb378113df7f1734ff3940f2d1ed3bb>>
|
|
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::9547e0088a838147f4c53a0d8d021909>>
|
|
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::aeb378113df7f1734ff3940f2d1ed3bb>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
5
5
|
*/
|
|
6
6
|
declare const _default: {
|
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.3",
|
|
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",
|