@atlaskit/eslint-plugin-design-system 13.13.0 → 13.14.0

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,13 @@
1
1
  # @atlaskit/eslint-plugin-design-system
2
2
 
3
+ ## 13.14.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#151383](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/151383)
8
+ [`772bdcfd2ec5b`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/772bdcfd2ec5b) -
9
+ Add `no-emotion-primitives` lint rule.
10
+
3
11
  ## 13.13.0
4
12
 
5
13
  ### Minor Changes
package/README.md CHANGED
@@ -47,67 +47,68 @@ module.exports = {
47
47
  <!-- START_RULE_TABLE_CODEGEN -->
48
48
  <!-- @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen -->
49
49
 
50
- | Rule | Description | Recommended | Fixable | Suggestions |
51
- | --------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- | ------- | ----------- |
52
- | <a href="./src/rules/consistent-css-prop-usage/README.md">consistent-css-prop-usage</a> | Ensures consistency with `css` and `xcss` prop usages | Yes | Yes | |
53
- | <a href="./src/rules/ensure-design-token-usage/README.md">ensure-design-token-usage</a> | Enforces usage of design tokens rather than hard-coded values. | Yes | Yes | Yes |
54
- | <a href="./src/rules/ensure-design-token-usage-preview/README.md">ensure-design-token-usage/preview</a> | Enforces usage of pre-release design tokens rather than hard-coded values. | | Yes | Yes |
55
- | <a href="./src/rules/ensure-icon-color/README.md">ensure-icon-color</a> | Enforces that upcoming icon components have a color prop set, to enable a migration of the default value. | | | |
56
- | <a href="./src/rules/icon-label/README.md">icon-label</a> | Enforces accessible usage of icon labels when composed with Atlassian Design System components. | Yes | Yes | |
57
- | <a href="./src/rules/no-banned-imports/README.md">no-banned-imports</a> | Disallow importing banned modules. | Yes | | |
58
- | <a href="./src/rules/no-boolean-autofocus-on-modal-dialog/README.md">no-boolean-autofocus-on-modal-dialog</a> | Encourages makers to not use boolean values for `autoFocus` on Atlassian Design System's modal dialog component. | Yes | | |
59
- | <a href="./src/rules/no-css-tagged-template-expression/README.md">no-css-tagged-template-expression</a> | Disallows any `css` tagged template expressions that originate from Emotion, Styled Components or Compiled | | Yes | |
60
- | <a href="./src/rules/no-custom-icons/README.md">no-custom-icons</a> | Enforces custom glyph icons are used. | | | |
61
- | <a href="./src/rules/no-dark-theme-vr-tests/README.md">no-dark-theme-vr-tests</a> | Disallow using dark colorScheme in VR tests. | | Yes | |
62
- | <a href="./src/rules/no-deprecated-apis/README.md">no-deprecated-apis</a> | Disallow using deprecated APIs. | Yes | | |
63
- | <a href="./src/rules/no-deprecated-design-token-usage/README.md">no-deprecated-design-token-usage</a> | Disallow using deprecated design tokens. | Yes | Yes | |
64
- | <a href="./src/rules/no-deprecated-imports/README.md">no-deprecated-imports</a> | Disallow importing deprecated modules. | Yes | Yes | Yes |
65
- | <a href="./src/rules/no-direct-use-of-web-platform-drag-and-drop/README.md">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 | | |
66
- | <a href="./src/rules/no-empty-styled-expression/README.md">no-empty-styled-expression</a> | Forbids any styled expression to be used when passing empty arguments to styled.div() (or other JSX elements). | | | |
67
- | <a href="./src/rules/no-exported-css/README.md">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. | | | |
68
- | <a href="./src/rules/no-exported-keyframes/README.md">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. | | | |
69
- | <a href="./src/rules/no-html-anchor/README.md">no-html-anchor</a> | Discourage direct usage of HTML anchor elements in favor of Atlassian Design System link components. | Yes | | Yes |
70
- | <a href="./src/rules/no-html-button/README.md">no-html-button</a> | Discourage direct usage of HTML button elements in favor of Atlassian Design System button components. | Yes | | |
71
- | <a href="./src/rules/no-html-checkbox/README.md">no-html-checkbox</a> | Discourage direct usage of HTML checkbox elements in favor of the Atlassian Design System checkbox component. | Yes | | Yes |
72
- | <a href="./src/rules/no-html-code/README.md">no-html-code</a> | Discourage direct usage of HTML code elements in favor of the Atlassian Design System code component. | Yes | | Yes |
73
- | <a href="./src/rules/no-html-heading/README.md">no-html-heading</a> | Discourage direct usage of HTML heading elements in favor of Atlassian Design System heading components. | Yes | | Yes |
74
- | <a href="./src/rules/no-html-image/README.md">no-html-image</a> | Discourage direct usage of HTML image elements in favor of the Atlassian Design System image component. | Yes | | Yes |
75
- | <a href="./src/rules/no-html-radio/README.md">no-html-radio</a> | Discourage direct usage of HTML radio elements in favor of the Atlassian Design System radio component. | Yes | | Yes |
76
- | <a href="./src/rules/no-html-range/README.md">no-html-range</a> | Discourage direct usage of HTML range elements in favor of the Atlassian Design System range component. | Yes | | Yes |
77
- | <a href="./src/rules/no-html-select/README.md">no-html-select</a> | Discourage direct usage of HTML select elements in favor of the Atlassian Design System select component. | Yes | | Yes |
78
- | <a href="./src/rules/no-html-text-input/README.md">no-html-text-input</a> | Discourage direct usage of HTML text input elements in favor of the Atlassian Design System textfield component. | Yes | | Yes |
79
- | <a href="./src/rules/no-html-textarea/README.md">no-html-textarea</a> | Discourage direct usage of HTML textarea elements in favor of the Atlassian Design System textarea component. | Yes | | Yes |
80
- | <a href="./src/rules/no-invalid-css-map/README.md">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 | | |
81
- | <a href="./src/rules/no-keyframes-tagged-template-expression/README.md">no-keyframes-tagged-template-expression</a> | Disallows any `keyframe` tagged template expressions that originate from Emotion, Styled Components or Compiled | | Yes | |
82
- | <a href="./src/rules/no-legacy-icons/README.md">no-legacy-icons</a> | Enforces no legacy icons are used. | | Yes | Yes |
83
- | <a href="./src/rules/no-margin/README.md">no-margin</a> | Disallow using the margin CSS property. | | | |
84
- | <a href="./src/rules/no-nested-styles/README.md">no-nested-styles</a> | Disallows use of nested styles in `css` functions. | Yes | | |
85
- | <a href="./src/rules/no-physical-properties/README.md">no-physical-properties</a> | Disallow physical properties and values in `css` function calls. | | Yes | |
86
- | <a href="./src/rules/no-separator-with-list-elements/README.md">no-separator-with-list-elements</a> | Warn when the `separator` prop is used with `as="li"`, `as="ol"`, or `as="dl"` in the Inline component. | Yes | | |
87
- | <a href="./src/rules/no-styled-tagged-template-expression/README.md">no-styled-tagged-template-expression</a> | Disallows any `styled` tagged template expressions that originate from Emotion, Styled Components or Compiled | | Yes | |
88
- | <a href="./src/rules/no-unsafe-design-token-usage/README.md">no-unsafe-design-token-usage</a> | Enforces design token usage is statically and locally analyzable. | Yes | Yes | |
89
- | <a href="./src/rules/no-unsafe-style-overrides/README.md">no-unsafe-style-overrides</a> | Discourage usage of unsafe style overrides used against the Atlassian Design System. | Yes | | |
90
- | <a href="./src/rules/no-unsupported-drag-and-drop-libraries/README.md">no-unsupported-drag-and-drop-libraries</a> | Disallow importing unsupported drag and drop modules. | Yes | | |
91
- | <a href="./src/rules/prefer-primitives/README.md">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. | | | |
92
- | <a href="./src/rules/use-button-group-label/README.md">use-button-group-label</a> | Ensures button groups are described to assistive technology by a direct label or by another element. | Yes | | Yes |
93
- | <a href="./src/rules/use-cx-function-in-xcss/README.md">use-cx-function-in-xcss</a> | Enforces cx function use to combine styles in xcss. | Yes | Yes | Yes |
94
- | <a href="./src/rules/use-datetime-picker-calendar-button/README.md">use-datetime-picker-calendar-button</a> | Encourages makers to use calendar button in Atlassian Design System's date picker and datetime picker components. | Yes | Yes | Yes |
95
- | <a href="./src/rules/use-drawer-label/README.md">use-drawer-label</a> | Encourages to provide accessible name for Atlassian Design System Drawer component. | Yes | | Yes |
96
- | <a href="./src/rules/use-heading/README.md">use-heading</a> | Encourage the usage of heading components. | | Yes | Yes |
97
- | <a href="./src/rules/use-heading-level-in-spotlight-card/README.md">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 | |
98
- | <a href="./src/rules/use-href-in-link-item/README.md">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 |
99
- | <a href="./src/rules/use-latest-xcss-syntax/README.md">use-latest-xcss-syntax</a> | Enforces usage of space design tokens rather than hard-coded values in xcss. | Yes | Yes | |
100
- | <a href="./src/rules/use-latest-xcss-syntax-typography/README.md">use-latest-xcss-syntax-typography</a> | Prohibits use of unsafe styling properties in xcss. Please use Text/Heading primitives instead. | Yes | Yes | |
101
- | <a href="./src/rules/use-menu-section-title/README.md">use-menu-section-title</a> | Encourages makers to provide accessible title for Atlassian Design System Menu Section component. | Yes | | Yes |
102
- | <a href="./src/rules/use-modal-dialog-close-button/README.md">use-modal-dialog-close-button</a> | Encourages makers to use close button in Atlassian Design System's modal dialog component. | Yes | Yes | Yes |
103
- | <a href="./src/rules/use-onboarding-spotlight-label/README.md">use-onboarding-spotlight-label</a> | Ensures onboarding spotlight dialogs are described to assistive technology by a direct label or by another element. | Yes | | Yes |
104
- | <a href="./src/rules/use-popup-label/README.md">use-popup-label</a> | Encourages to provide accessible name for Atlassian Design System Popup component. | Yes | | Yes |
105
- | <a href="./src/rules/use-primitives/README.md">use-primitives</a> | Encourage the usage of primitives components. | | Yes | Yes |
106
- | <a href="./src/rules/use-primitives-text/README.md">use-primitives-text</a> | Encourage the usage of text components. | | Yes | Yes |
107
- | <a href="./src/rules/use-should-render-to-parent/README.md">use-should-render-to-parent</a> | Encourages makers to use the `shouldRenderToParent` where possible in Atlassian Design System `Popup` and `DropdownMenu` components. | Yes | | Yes |
108
- | <a href="./src/rules/use-tag-group-label/README.md">use-tag-group-label</a> | Ensures tag groups are described to assistive technology by a direct label or by another element. | Yes | | Yes |
109
- | <a href="./src/rules/use-tokens-space/README.md">use-tokens-space</a> | Enforces usage of space design tokens rather than hard-coded values. | | Yes | Yes |
110
- | <a href="./src/rules/use-tokens-typography/README.md">use-tokens-typography</a> | Enforces usage of design tokens for typography properties rather than hard-coded values. | | Yes | Yes |
111
- | <a href="./src/rules/use-visually-hidden/README.md">use-visually-hidden</a> | Enforce usage of the visually hidden component. | Yes | Yes | |
50
+ | Rule | Description | Recommended | Fixable | Suggestions |
51
+ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------- | ------- | ----------- |
52
+ | <a href="./packages/design-system/eslint-plugin/src/rules/consistent-css-prop-usage/README.md">consistent-css-prop-usage</a> | Ensures consistency with `css` and `xcss` prop usages | Yes | Yes | |
53
+ | <a href="./packages/design-system/eslint-plugin/src/rules/ensure-design-token-usage/README.md">ensure-design-token-usage</a> | Enforces usage of design tokens rather than hard-coded values. | Yes | Yes | Yes |
54
+ | <a href="./packages/design-system/eslint-plugin/src/rules/ensure-design-token-usage-preview/README.md">ensure-design-token-usage/preview</a> | Enforces usage of pre-release design tokens rather than hard-coded values. | | Yes | Yes |
55
+ | <a href="./packages/design-system/eslint-plugin/src/rules/ensure-icon-color/README.md">ensure-icon-color</a> | Enforces that upcoming icon components have a color prop set, to enable a migration of the default value. | | | |
56
+ | <a href="./packages/design-system/eslint-plugin/src/rules/icon-label/README.md">icon-label</a> | Enforces accessible usage of icon labels when composed with Atlassian Design System components. | Yes | Yes | |
57
+ | <a href="./packages/design-system/eslint-plugin/src/rules/no-banned-imports/README.md">no-banned-imports</a> | Disallow importing banned modules. | Yes | | |
58
+ | <a href="./packages/design-system/eslint-plugin/src/rules/no-boolean-autofocus-on-modal-dialog/README.md">no-boolean-autofocus-on-modal-dialog</a> | Encourages makers to not use boolean values for `autoFocus` on Atlassian Design System's modal dialog component. | Yes | | |
59
+ | <a href="./packages/design-system/eslint-plugin/src/rules/no-css-tagged-template-expression/README.md">no-css-tagged-template-expression</a> | Disallows any `css` tagged template expressions that originate from Emotion, Styled Components or Compiled | | Yes | |
60
+ | <a href="./packages/design-system/eslint-plugin/src/rules/no-custom-icons/README.md">no-custom-icons</a> | Enforces custom glyph icons are used. | | | |
61
+ | <a href="./packages/design-system/eslint-plugin/src/rules/no-dark-theme-vr-tests/README.md">no-dark-theme-vr-tests</a> | Disallow using dark colorScheme in VR tests. | | Yes | |
62
+ | <a href="./packages/design-system/eslint-plugin/src/rules/no-deprecated-apis/README.md">no-deprecated-apis</a> | Disallow using deprecated APIs. | Yes | | |
63
+ | <a href="./packages/design-system/eslint-plugin/src/rules/no-deprecated-design-token-usage/README.md">no-deprecated-design-token-usage</a> | Disallow using deprecated design tokens. | Yes | Yes | |
64
+ | <a href="./packages/design-system/eslint-plugin/src/rules/no-deprecated-imports/README.md">no-deprecated-imports</a> | Disallow importing deprecated modules. | Yes | Yes | Yes |
65
+ | <a href="./packages/design-system/eslint-plugin/src/rules/no-direct-use-of-web-platform-drag-and-drop/README.md">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 | | |
66
+ | <a href="./packages/design-system/eslint-plugin/src/rules/no-emotion-primitives/README.md">no-emotion-primitives</a> | Ensures usage of Compiled Primitives import instead of Emotion entrypoint. | | Yes | |
67
+ | <a href="./packages/design-system/eslint-plugin/src/rules/no-empty-styled-expression/README.md">no-empty-styled-expression</a> | Forbids any styled expression to be used when passing empty arguments to styled.div() (or other JSX elements). | | | |
68
+ | <a href="./packages/design-system/eslint-plugin/src/rules/no-exported-css/README.md">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. | | | |
69
+ | <a href="./packages/design-system/eslint-plugin/src/rules/no-exported-keyframes/README.md">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. | | | |
70
+ | <a href="./packages/design-system/eslint-plugin/src/rules/no-html-anchor/README.md">no-html-anchor</a> | Discourage direct usage of HTML anchor elements in favor of Atlassian Design System link components. | Yes | | Yes |
71
+ | <a href="./packages/design-system/eslint-plugin/src/rules/no-html-button/README.md">no-html-button</a> | Discourage direct usage of HTML button elements in favor of Atlassian Design System button components. | Yes | | |
72
+ | <a href="./packages/design-system/eslint-plugin/src/rules/no-html-checkbox/README.md">no-html-checkbox</a> | Discourage direct usage of HTML checkbox elements in favor of the Atlassian Design System checkbox component. | Yes | | Yes |
73
+ | <a href="./packages/design-system/eslint-plugin/src/rules/no-html-code/README.md">no-html-code</a> | Discourage direct usage of HTML code elements in favor of the Atlassian Design System code component. | Yes | | Yes |
74
+ | <a href="./packages/design-system/eslint-plugin/src/rules/no-html-heading/README.md">no-html-heading</a> | Discourage direct usage of HTML heading elements in favor of Atlassian Design System heading components. | Yes | | Yes |
75
+ | <a href="./packages/design-system/eslint-plugin/src/rules/no-html-image/README.md">no-html-image</a> | Discourage direct usage of HTML image elements in favor of the Atlassian Design System image component. | Yes | | Yes |
76
+ | <a href="./packages/design-system/eslint-plugin/src/rules/no-html-radio/README.md">no-html-radio</a> | Discourage direct usage of HTML radio elements in favor of the Atlassian Design System radio component. | Yes | | Yes |
77
+ | <a href="./packages/design-system/eslint-plugin/src/rules/no-html-range/README.md">no-html-range</a> | Discourage direct usage of HTML range elements in favor of the Atlassian Design System range component. | Yes | | Yes |
78
+ | <a href="./packages/design-system/eslint-plugin/src/rules/no-html-select/README.md">no-html-select</a> | Discourage direct usage of HTML select elements in favor of the Atlassian Design System select component. | Yes | | Yes |
79
+ | <a href="./packages/design-system/eslint-plugin/src/rules/no-html-text-input/README.md">no-html-text-input</a> | Discourage direct usage of HTML text input elements in favor of the Atlassian Design System textfield component. | Yes | | Yes |
80
+ | <a href="./packages/design-system/eslint-plugin/src/rules/no-html-textarea/README.md">no-html-textarea</a> | Discourage direct usage of HTML textarea elements in favor of the Atlassian Design System textarea component. | Yes | | Yes |
81
+ | <a href="./packages/design-system/eslint-plugin/src/rules/no-invalid-css-map/README.md">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 | | |
82
+ | <a href="./packages/design-system/eslint-plugin/src/rules/no-keyframes-tagged-template-expression/README.md">no-keyframes-tagged-template-expression</a> | Disallows any `keyframe` tagged template expressions that originate from Emotion, Styled Components or Compiled | | Yes | |
83
+ | <a href="./packages/design-system/eslint-plugin/src/rules/no-legacy-icons/README.md">no-legacy-icons</a> | Enforces no legacy icons are used. | | Yes | Yes |
84
+ | <a href="./packages/design-system/eslint-plugin/src/rules/no-margin/README.md">no-margin</a> | Disallow using the margin CSS property. | | | |
85
+ | <a href="./packages/design-system/eslint-plugin/src/rules/no-nested-styles/README.md">no-nested-styles</a> | Disallows use of nested styles in `css` functions. | Yes | | |
86
+ | <a href="./packages/design-system/eslint-plugin/src/rules/no-physical-properties/README.md">no-physical-properties</a> | Disallow physical properties and values in `css` function calls. | | Yes | |
87
+ | <a href="./packages/design-system/eslint-plugin/src/rules/no-separator-with-list-elements/README.md">no-separator-with-list-elements</a> | Warn when the `separator` prop is used with `as="li"`, `as="ol"`, or `as="dl"` in the Inline component. | Yes | | |
88
+ | <a href="./packages/design-system/eslint-plugin/src/rules/no-styled-tagged-template-expression/README.md">no-styled-tagged-template-expression</a> | Disallows any `styled` tagged template expressions that originate from Emotion, Styled Components or Compiled | | Yes | |
89
+ | <a href="./packages/design-system/eslint-plugin/src/rules/no-unsafe-design-token-usage/README.md">no-unsafe-design-token-usage</a> | Enforces design token usage is statically and locally analyzable. | Yes | Yes | |
90
+ | <a href="./packages/design-system/eslint-plugin/src/rules/no-unsafe-style-overrides/README.md">no-unsafe-style-overrides</a> | Discourage usage of unsafe style overrides used against the Atlassian Design System. | Yes | | |
91
+ | <a href="./packages/design-system/eslint-plugin/src/rules/no-unsupported-drag-and-drop-libraries/README.md">no-unsupported-drag-and-drop-libraries</a> | Disallow importing unsupported drag and drop modules. | Yes | | |
92
+ | <a href="./packages/design-system/eslint-plugin/src/rules/prefer-primitives/README.md">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. | | | |
93
+ | <a href="./packages/design-system/eslint-plugin/src/rules/use-button-group-label/README.md">use-button-group-label</a> | Ensures button groups are described to assistive technology by a direct label or by another element. | Yes | | Yes |
94
+ | <a href="./packages/design-system/eslint-plugin/src/rules/use-cx-function-in-xcss/README.md">use-cx-function-in-xcss</a> | Enforces cx function use to combine styles in xcss. | Yes | Yes | Yes |
95
+ | <a href="./packages/design-system/eslint-plugin/src/rules/use-datetime-picker-calendar-button/README.md">use-datetime-picker-calendar-button</a> | Encourages makers to use calendar button in Atlassian Design System's date picker and datetime picker components. | Yes | Yes | Yes |
96
+ | <a href="./packages/design-system/eslint-plugin/src/rules/use-drawer-label/README.md">use-drawer-label</a> | Encourages to provide accessible name for Atlassian Design System Drawer component. | Yes | | Yes |
97
+ | <a href="./packages/design-system/eslint-plugin/src/rules/use-heading/README.md">use-heading</a> | Encourage the usage of heading components. | | Yes | Yes |
98
+ | <a href="./packages/design-system/eslint-plugin/src/rules/use-heading-level-in-spotlight-card/README.md">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 | |
99
+ | <a href="./packages/design-system/eslint-plugin/src/rules/use-href-in-link-item/README.md">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 |
100
+ | <a href="./packages/design-system/eslint-plugin/src/rules/use-latest-xcss-syntax/README.md">use-latest-xcss-syntax</a> | Enforces usage of space design tokens rather than hard-coded values in xcss. | Yes | Yes | |
101
+ | <a href="./packages/design-system/eslint-plugin/src/rules/use-latest-xcss-syntax-typography/README.md">use-latest-xcss-syntax-typography</a> | Prohibits use of unsafe styling properties in xcss. Please use Text/Heading primitives instead. | Yes | Yes | |
102
+ | <a href="./packages/design-system/eslint-plugin/src/rules/use-menu-section-title/README.md">use-menu-section-title</a> | Encourages makers to provide accessible title for Atlassian Design System Menu Section component. | Yes | | Yes |
103
+ | <a href="./packages/design-system/eslint-plugin/src/rules/use-modal-dialog-close-button/README.md">use-modal-dialog-close-button</a> | Encourages makers to use close button in Atlassian Design System's modal dialog component. | Yes | Yes | Yes |
104
+ | <a href="./packages/design-system/eslint-plugin/src/rules/use-onboarding-spotlight-label/README.md">use-onboarding-spotlight-label</a> | Ensures onboarding spotlight dialogs are described to assistive technology by a direct label or by another element. | Yes | | Yes |
105
+ | <a href="./packages/design-system/eslint-plugin/src/rules/use-popup-label/README.md">use-popup-label</a> | Encourages to provide accessible name for Atlassian Design System Popup component. | Yes | | Yes |
106
+ | <a href="./packages/design-system/eslint-plugin/src/rules/use-primitives/README.md">use-primitives</a> | Encourage the usage of primitives components. | | Yes | Yes |
107
+ | <a href="./packages/design-system/eslint-plugin/src/rules/use-primitives-text/README.md">use-primitives-text</a> | Encourage the usage of text components. | | Yes | Yes |
108
+ | <a href="./packages/design-system/eslint-plugin/src/rules/use-should-render-to-parent/README.md">use-should-render-to-parent</a> | Encourages makers to use the `shouldRenderToParent` where possible in Atlassian Design System `Popup` and `DropdownMenu` components. | Yes | | Yes |
109
+ | <a href="./packages/design-system/eslint-plugin/src/rules/use-tag-group-label/README.md">use-tag-group-label</a> | Ensures tag groups are described to assistive technology by a direct label or by another element. | Yes | | Yes |
110
+ | <a href="./packages/design-system/eslint-plugin/src/rules/use-tokens-space/README.md">use-tokens-space</a> | Enforces usage of space design tokens rather than hard-coded values. | | Yes | Yes |
111
+ | <a href="./packages/design-system/eslint-plugin/src/rules/use-tokens-typography/README.md">use-tokens-typography</a> | Enforces usage of design tokens for typography properties rather than hard-coded values. | | Yes | Yes |
112
+ | <a href="./packages/design-system/eslint-plugin/src/rules/use-visually-hidden/README.md">use-visually-hidden</a> | Enforce usage of the visually hidden component. | Yes | Yes | |
112
113
 
113
114
  <!-- 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::70743df3608ca82213ea54b79fedd264>>
9
+ * @codegen <<SignedSource::c6c896451f2be4d48f04068f5bbb85f1>>
10
10
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
11
11
  */
12
12
  var _default = exports.default = {
@@ -27,6 +27,7 @@ var _default = exports.default = {
27
27
  '@atlaskit/design-system/no-deprecated-design-token-usage': 'warn',
28
28
  '@atlaskit/design-system/no-deprecated-imports': 'error',
29
29
  '@atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop': 'error',
30
+ '@atlaskit/design-system/no-emotion-primitives': 'warn',
30
31
  '@atlaskit/design-system/no-html-anchor': 'warn',
31
32
  '@atlaskit/design-system/no-html-button': 'warn',
32
33
  '@atlaskit/design-system/no-html-checkbox': '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::a0aebeced02b3d5507a0aa23fe8ff1b2>>
9
+ * @codegen <<SignedSource::d4de619ac262298b2af11f905a02b0dd>>
10
10
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
11
11
  */
12
12
  var _default = exports.default = {
@@ -26,6 +26,7 @@ var _default = exports.default = {
26
26
  '@atlaskit/design-system/no-deprecated-design-token-usage': 'warn',
27
27
  '@atlaskit/design-system/no-deprecated-imports': 'error',
28
28
  '@atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop': 'error',
29
+ '@atlaskit/design-system/no-emotion-primitives': 'warn',
29
30
  '@atlaskit/design-system/no-html-anchor': 'warn',
30
31
  '@atlaskit/design-system/no-html-button': 'warn',
31
32
  '@atlaskit/design-system/no-html-checkbox': 'warn',
@@ -19,6 +19,7 @@ var _noDeprecatedApis = _interopRequireDefault(require("./no-deprecated-apis"));
19
19
  var _noDeprecatedDesignTokenUsage = _interopRequireDefault(require("./no-deprecated-design-token-usage"));
20
20
  var _noDeprecatedImports = _interopRequireDefault(require("./no-deprecated-imports"));
21
21
  var _noDirectUseOfWebPlatformDragAndDrop = _interopRequireDefault(require("./no-direct-use-of-web-platform-drag-and-drop"));
22
+ var _noEmotionPrimitives = _interopRequireDefault(require("./no-emotion-primitives"));
22
23
  var _noEmptyStyledExpression = _interopRequireDefault(require("./no-empty-styled-expression"));
23
24
  var _noExportedCss = _interopRequireDefault(require("./no-exported-css"));
24
25
  var _noExportedKeyframes = _interopRequireDefault(require("./no-exported-keyframes"));
@@ -67,7 +68,7 @@ var _useTokensTypography = _interopRequireDefault(require("./use-tokens-typograp
67
68
  var _useVisuallyHidden = _interopRequireDefault(require("./use-visually-hidden"));
68
69
  /**
69
70
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
70
- * @codegen <<SignedSource::be1696f2cf03313e918f93d6414aafd3>>
71
+ * @codegen <<SignedSource::d42e0ce93d45d02a5c30dcfdb7110c17>>
71
72
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
72
73
  */
73
74
 
@@ -86,6 +87,7 @@ var rules = exports.rules = {
86
87
  'no-deprecated-design-token-usage': _noDeprecatedDesignTokenUsage.default,
87
88
  'no-deprecated-imports': _noDeprecatedImports.default,
88
89
  'no-direct-use-of-web-platform-drag-and-drop': _noDirectUseOfWebPlatformDragAndDrop.default,
90
+ 'no-emotion-primitives': _noEmotionPrimitives.default,
89
91
  'no-empty-styled-expression': _noEmptyStyledExpression.default,
90
92
  'no-exported-css': _noExportedCss.default,
91
93
  'no-exported-keyframes': _noExportedKeyframes.default,
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+
3
+ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.rule = exports.default = void 0;
8
+ var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
9
+ var _eslintCodemodUtils = require("eslint-codemod-utils");
10
+ var _createRule = require("../utils/create-rule");
11
+ var schema = {
12
+ type: 'array',
13
+ items: [{
14
+ type: 'object',
15
+ properties: {
16
+ autofix: {
17
+ type: 'boolean'
18
+ }
19
+ },
20
+ additionalProperties: false
21
+ }]
22
+ };
23
+ var defaultConfig = {
24
+ autofix: false
25
+ };
26
+ function readConfig(context) {
27
+ var _ref = context.options,
28
+ _ref2 = (0, _slicedToArray2.default)(_ref, 1),
29
+ config = _ref2[0];
30
+ return Object.assign({}, defaultConfig, config);
31
+ }
32
+ var rule = exports.rule = (0, _createRule.createLintRule)({
33
+ meta: {
34
+ name: 'no-emotion-primitives',
35
+ type: 'problem',
36
+ fixable: 'code',
37
+ docs: {
38
+ description: 'Ensures usage of Compiled Primitives import instead of Emotion entrypoint.',
39
+ severity: 'warn',
40
+ recommended: false
41
+ },
42
+ messages: {
43
+ 'no-emotion-primitives': 'Use @atlaskit/primitives/compiled instead of @atlaskit/primitives'
44
+ },
45
+ schema: schema
46
+ },
47
+ create: function create(context) {
48
+ var config = readConfig(context);
49
+ return {
50
+ ImportDeclaration: function ImportDeclaration(node) {
51
+ var importSource = node.source.value;
52
+ if (importSource !== '@atlaskit/primitives') {
53
+ return;
54
+ }
55
+ context.report({
56
+ node: node.source,
57
+ messageId: 'no-emotion-primitives',
58
+ fix: function fix(fixer) {
59
+ if (!config.autofix) {
60
+ return null;
61
+ }
62
+ var newSource = (0, _eslintCodemodUtils.literal)('@atlaskit/primitives/compiled');
63
+ return fixer.replaceText(node.source, newSource.raw || "'@atlaskit/primitives/compiled'");
64
+ }
65
+ });
66
+ }
67
+ };
68
+ }
69
+ });
70
+ var _default = exports.default = rule;
@@ -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::70743df3608ca82213ea54b79fedd264>>
3
+ * @codegen <<SignedSource::c6c896451f2be4d48f04068f5bbb85f1>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
5
5
  */
6
6
 
@@ -22,6 +22,7 @@ export default {
22
22
  '@atlaskit/design-system/no-deprecated-design-token-usage': 'warn',
23
23
  '@atlaskit/design-system/no-deprecated-imports': 'error',
24
24
  '@atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop': 'error',
25
+ '@atlaskit/design-system/no-emotion-primitives': 'warn',
25
26
  '@atlaskit/design-system/no-html-anchor': 'warn',
26
27
  '@atlaskit/design-system/no-html-button': 'warn',
27
28
  '@atlaskit/design-system/no-html-checkbox': '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::a0aebeced02b3d5507a0aa23fe8ff1b2>>
3
+ * @codegen <<SignedSource::d4de619ac262298b2af11f905a02b0dd>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
5
5
  */
6
6
 
@@ -21,6 +21,7 @@ export default {
21
21
  '@atlaskit/design-system/no-deprecated-design-token-usage': 'warn',
22
22
  '@atlaskit/design-system/no-deprecated-imports': 'error',
23
23
  '@atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop': 'error',
24
+ '@atlaskit/design-system/no-emotion-primitives': 'warn',
24
25
  '@atlaskit/design-system/no-html-anchor': 'warn',
25
26
  '@atlaskit/design-system/no-html-button': 'warn',
26
27
  '@atlaskit/design-system/no-html-checkbox': '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::be1696f2cf03313e918f93d6414aafd3>>
3
+ * @codegen <<SignedSource::d42e0ce93d45d02a5c30dcfdb7110c17>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
5
5
  */
6
6
  import consistentCssPropUsage from './consistent-css-prop-usage';
@@ -17,6 +17,7 @@ import noDeprecatedApis from './no-deprecated-apis';
17
17
  import noDeprecatedDesignTokenUsage from './no-deprecated-design-token-usage';
18
18
  import noDeprecatedImports from './no-deprecated-imports';
19
19
  import noDirectUseOfWebPlatformDragAndDrop from './no-direct-use-of-web-platform-drag-and-drop';
20
+ import noEmotionPrimitives from './no-emotion-primitives';
20
21
  import noEmptyStyledExpression from './no-empty-styled-expression';
21
22
  import noExportedCss from './no-exported-css';
22
23
  import noExportedKeyframes from './no-exported-keyframes';
@@ -78,6 +79,7 @@ export const rules = {
78
79
  'no-deprecated-design-token-usage': noDeprecatedDesignTokenUsage,
79
80
  'no-deprecated-imports': noDeprecatedImports,
80
81
  'no-direct-use-of-web-platform-drag-and-drop': noDirectUseOfWebPlatformDragAndDrop,
82
+ 'no-emotion-primitives': noEmotionPrimitives,
81
83
  'no-empty-styled-expression': noEmptyStyledExpression,
82
84
  'no-exported-css': noExportedCss,
83
85
  'no-exported-keyframes': noExportedKeyframes,
@@ -0,0 +1,60 @@
1
+ import { literal } from 'eslint-codemod-utils';
2
+ import { createLintRule } from '../utils/create-rule';
3
+ const schema = {
4
+ type: 'array',
5
+ items: [{
6
+ type: 'object',
7
+ properties: {
8
+ autofix: {
9
+ type: 'boolean'
10
+ }
11
+ },
12
+ additionalProperties: false
13
+ }]
14
+ };
15
+ const defaultConfig = {
16
+ autofix: false
17
+ };
18
+ function readConfig(context) {
19
+ const [config] = context.options;
20
+ return Object.assign({}, defaultConfig, config);
21
+ }
22
+ export const rule = createLintRule({
23
+ meta: {
24
+ name: 'no-emotion-primitives',
25
+ type: 'problem',
26
+ fixable: 'code',
27
+ docs: {
28
+ description: 'Ensures usage of Compiled Primitives import instead of Emotion entrypoint.',
29
+ severity: 'warn',
30
+ recommended: false
31
+ },
32
+ messages: {
33
+ 'no-emotion-primitives': 'Use @atlaskit/primitives/compiled instead of @atlaskit/primitives'
34
+ },
35
+ schema
36
+ },
37
+ create(context) {
38
+ const config = readConfig(context);
39
+ return {
40
+ ImportDeclaration(node) {
41
+ const importSource = node.source.value;
42
+ if (importSource !== '@atlaskit/primitives') {
43
+ return;
44
+ }
45
+ context.report({
46
+ node: node.source,
47
+ messageId: 'no-emotion-primitives',
48
+ fix(fixer) {
49
+ if (!config.autofix) {
50
+ return null;
51
+ }
52
+ const newSource = literal('@atlaskit/primitives/compiled');
53
+ return fixer.replaceText(node.source, newSource.raw || "'@atlaskit/primitives/compiled'");
54
+ }
55
+ });
56
+ }
57
+ };
58
+ }
59
+ });
60
+ export default rule;
@@ -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::70743df3608ca82213ea54b79fedd264>>
3
+ * @codegen <<SignedSource::c6c896451f2be4d48f04068f5bbb85f1>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
5
5
  */
6
6
 
@@ -22,6 +22,7 @@ export default {
22
22
  '@atlaskit/design-system/no-deprecated-design-token-usage': 'warn',
23
23
  '@atlaskit/design-system/no-deprecated-imports': 'error',
24
24
  '@atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop': 'error',
25
+ '@atlaskit/design-system/no-emotion-primitives': 'warn',
25
26
  '@atlaskit/design-system/no-html-anchor': 'warn',
26
27
  '@atlaskit/design-system/no-html-button': 'warn',
27
28
  '@atlaskit/design-system/no-html-checkbox': '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::a0aebeced02b3d5507a0aa23fe8ff1b2>>
3
+ * @codegen <<SignedSource::d4de619ac262298b2af11f905a02b0dd>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
5
5
  */
6
6
 
@@ -21,6 +21,7 @@ export default {
21
21
  '@atlaskit/design-system/no-deprecated-design-token-usage': 'warn',
22
22
  '@atlaskit/design-system/no-deprecated-imports': 'error',
23
23
  '@atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop': 'error',
24
+ '@atlaskit/design-system/no-emotion-primitives': 'warn',
24
25
  '@atlaskit/design-system/no-html-anchor': 'warn',
25
26
  '@atlaskit/design-system/no-html-button': 'warn',
26
27
  '@atlaskit/design-system/no-html-checkbox': '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::be1696f2cf03313e918f93d6414aafd3>>
3
+ * @codegen <<SignedSource::d42e0ce93d45d02a5c30dcfdb7110c17>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
5
5
  */
6
6
  import consistentCssPropUsage from './consistent-css-prop-usage';
@@ -17,6 +17,7 @@ import noDeprecatedApis from './no-deprecated-apis';
17
17
  import noDeprecatedDesignTokenUsage from './no-deprecated-design-token-usage';
18
18
  import noDeprecatedImports from './no-deprecated-imports';
19
19
  import noDirectUseOfWebPlatformDragAndDrop from './no-direct-use-of-web-platform-drag-and-drop';
20
+ import noEmotionPrimitives from './no-emotion-primitives';
20
21
  import noEmptyStyledExpression from './no-empty-styled-expression';
21
22
  import noExportedCss from './no-exported-css';
22
23
  import noExportedKeyframes from './no-exported-keyframes';
@@ -78,6 +79,7 @@ export var rules = {
78
79
  'no-deprecated-design-token-usage': noDeprecatedDesignTokenUsage,
79
80
  'no-deprecated-imports': noDeprecatedImports,
80
81
  'no-direct-use-of-web-platform-drag-and-drop': noDirectUseOfWebPlatformDragAndDrop,
82
+ 'no-emotion-primitives': noEmotionPrimitives,
81
83
  'no-empty-styled-expression': noEmptyStyledExpression,
82
84
  'no-exported-css': noExportedCss,
83
85
  'no-exported-keyframes': noExportedKeyframes,
@@ -0,0 +1,63 @@
1
+ import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
+ import { literal } from 'eslint-codemod-utils';
3
+ import { createLintRule } from '../utils/create-rule';
4
+ var schema = {
5
+ type: 'array',
6
+ items: [{
7
+ type: 'object',
8
+ properties: {
9
+ autofix: {
10
+ type: 'boolean'
11
+ }
12
+ },
13
+ additionalProperties: false
14
+ }]
15
+ };
16
+ var defaultConfig = {
17
+ autofix: false
18
+ };
19
+ function readConfig(context) {
20
+ var _ref = context.options,
21
+ _ref2 = _slicedToArray(_ref, 1),
22
+ config = _ref2[0];
23
+ return Object.assign({}, defaultConfig, config);
24
+ }
25
+ export var rule = createLintRule({
26
+ meta: {
27
+ name: 'no-emotion-primitives',
28
+ type: 'problem',
29
+ fixable: 'code',
30
+ docs: {
31
+ description: 'Ensures usage of Compiled Primitives import instead of Emotion entrypoint.',
32
+ severity: 'warn',
33
+ recommended: false
34
+ },
35
+ messages: {
36
+ 'no-emotion-primitives': 'Use @atlaskit/primitives/compiled instead of @atlaskit/primitives'
37
+ },
38
+ schema: schema
39
+ },
40
+ create: function create(context) {
41
+ var config = readConfig(context);
42
+ return {
43
+ ImportDeclaration: function ImportDeclaration(node) {
44
+ var importSource = node.source.value;
45
+ if (importSource !== '@atlaskit/primitives') {
46
+ return;
47
+ }
48
+ context.report({
49
+ node: node.source,
50
+ messageId: 'no-emotion-primitives',
51
+ fix: function fix(fixer) {
52
+ if (!config.autofix) {
53
+ return null;
54
+ }
55
+ var newSource = literal('@atlaskit/primitives/compiled');
56
+ return fixer.replaceText(node.source, newSource.raw || "'@atlaskit/primitives/compiled'");
57
+ }
58
+ });
59
+ }
60
+ };
61
+ }
62
+ });
63
+ export default rule;
@@ -29,6 +29,7 @@ export declare const plugin: {
29
29
  'no-deprecated-design-token-usage': import("eslint").Rule.RuleModule;
30
30
  'no-deprecated-imports': import("eslint").Rule.RuleModule;
31
31
  'no-direct-use-of-web-platform-drag-and-drop': import("eslint").Rule.RuleModule;
32
+ 'no-emotion-primitives': import("eslint").Rule.RuleModule;
32
33
  'no-empty-styled-expression': import("eslint").Rule.RuleModule;
33
34
  'no-exported-css': import("eslint").Rule.RuleModule;
34
35
  'no-exported-keyframes': import("eslint").Rule.RuleModule;
@@ -94,6 +95,7 @@ export declare const plugin: {
94
95
  '@atlaskit/design-system/no-deprecated-design-token-usage': "warn";
95
96
  '@atlaskit/design-system/no-deprecated-imports': "error";
96
97
  '@atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop': "error";
98
+ '@atlaskit/design-system/no-emotion-primitives': "warn";
97
99
  '@atlaskit/design-system/no-html-anchor': "warn";
98
100
  '@atlaskit/design-system/no-html-button': "warn";
99
101
  '@atlaskit/design-system/no-html-checkbox': "warn";
@@ -160,6 +162,7 @@ export declare const plugin: {
160
162
  '@atlaskit/design-system/no-deprecated-design-token-usage': "warn";
161
163
  '@atlaskit/design-system/no-deprecated-imports': "error";
162
164
  '@atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop': "error";
165
+ '@atlaskit/design-system/no-emotion-primitives': "warn";
163
166
  '@atlaskit/design-system/no-html-anchor': "warn";
164
167
  '@atlaskit/design-system/no-html-button': "warn";
165
168
  '@atlaskit/design-system/no-html-checkbox': "warn";
@@ -325,6 +328,7 @@ declare const configs: {
325
328
  '@atlaskit/design-system/no-deprecated-design-token-usage': "warn";
326
329
  '@atlaskit/design-system/no-deprecated-imports': "error";
327
330
  '@atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop': "error";
331
+ '@atlaskit/design-system/no-emotion-primitives': "warn";
328
332
  '@atlaskit/design-system/no-html-anchor': "warn";
329
333
  '@atlaskit/design-system/no-html-button': "warn";
330
334
  '@atlaskit/design-system/no-html-checkbox': "warn";
@@ -391,6 +395,7 @@ declare const configs: {
391
395
  '@atlaskit/design-system/no-deprecated-design-token-usage': "warn";
392
396
  '@atlaskit/design-system/no-deprecated-imports': "error";
393
397
  '@atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop': "error";
398
+ '@atlaskit/design-system/no-emotion-primitives': "warn";
394
399
  '@atlaskit/design-system/no-html-anchor': "warn";
395
400
  '@atlaskit/design-system/no-html-button': "warn";
396
401
  '@atlaskit/design-system/no-html-checkbox': "warn";
@@ -15,6 +15,7 @@ declare const _default: {
15
15
  '@atlaskit/design-system/no-deprecated-design-token-usage': "warn";
16
16
  '@atlaskit/design-system/no-deprecated-imports': "error";
17
17
  '@atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop': "error";
18
+ '@atlaskit/design-system/no-emotion-primitives': "warn";
18
19
  '@atlaskit/design-system/no-html-anchor': "warn";
19
20
  '@atlaskit/design-system/no-html-button': "warn";
20
21
  '@atlaskit/design-system/no-html-checkbox': "warn";
@@ -15,6 +15,7 @@ declare const _default: {
15
15
  '@atlaskit/design-system/no-deprecated-design-token-usage': "warn";
16
16
  '@atlaskit/design-system/no-deprecated-imports': "error";
17
17
  '@atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop': "error";
18
+ '@atlaskit/design-system/no-emotion-primitives': "warn";
18
19
  '@atlaskit/design-system/no-html-anchor': "warn";
19
20
  '@atlaskit/design-system/no-html-button': "warn";
20
21
  '@atlaskit/design-system/no-html-checkbox': "warn";
@@ -13,6 +13,7 @@ export declare const rules: {
13
13
  'no-deprecated-design-token-usage': import("eslint").Rule.RuleModule;
14
14
  'no-deprecated-imports': import("eslint").Rule.RuleModule;
15
15
  'no-direct-use-of-web-platform-drag-and-drop': import("eslint").Rule.RuleModule;
16
+ 'no-emotion-primitives': import("eslint").Rule.RuleModule;
16
17
  'no-empty-styled-expression': import("eslint").Rule.RuleModule;
17
18
  'no-exported-css': import("eslint").Rule.RuleModule;
18
19
  'no-exported-keyframes': import("eslint").Rule.RuleModule;
@@ -0,0 +1,3 @@
1
+ import type { Rule } from 'eslint';
2
+ export declare const rule: Rule.RuleModule;
3
+ export default rule;
@@ -29,6 +29,7 @@ export declare const plugin: {
29
29
  'no-deprecated-design-token-usage': import("eslint").Rule.RuleModule;
30
30
  'no-deprecated-imports': import("eslint").Rule.RuleModule;
31
31
  'no-direct-use-of-web-platform-drag-and-drop': import("eslint").Rule.RuleModule;
32
+ 'no-emotion-primitives': import("eslint").Rule.RuleModule;
32
33
  'no-empty-styled-expression': import("eslint").Rule.RuleModule;
33
34
  'no-exported-css': import("eslint").Rule.RuleModule;
34
35
  'no-exported-keyframes': import("eslint").Rule.RuleModule;
@@ -94,6 +95,7 @@ export declare const plugin: {
94
95
  '@atlaskit/design-system/no-deprecated-design-token-usage': "warn";
95
96
  '@atlaskit/design-system/no-deprecated-imports': "error";
96
97
  '@atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop': "error";
98
+ '@atlaskit/design-system/no-emotion-primitives': "warn";
97
99
  '@atlaskit/design-system/no-html-anchor': "warn";
98
100
  '@atlaskit/design-system/no-html-button': "warn";
99
101
  '@atlaskit/design-system/no-html-checkbox': "warn";
@@ -163,6 +165,7 @@ export declare const plugin: {
163
165
  '@atlaskit/design-system/no-deprecated-design-token-usage': "warn";
164
166
  '@atlaskit/design-system/no-deprecated-imports': "error";
165
167
  '@atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop': "error";
168
+ '@atlaskit/design-system/no-emotion-primitives': "warn";
166
169
  '@atlaskit/design-system/no-html-anchor': "warn";
167
170
  '@atlaskit/design-system/no-html-button': "warn";
168
171
  '@atlaskit/design-system/no-html-checkbox': "warn";
@@ -337,6 +340,7 @@ declare const configs: {
337
340
  '@atlaskit/design-system/no-deprecated-design-token-usage': "warn";
338
341
  '@atlaskit/design-system/no-deprecated-imports': "error";
339
342
  '@atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop': "error";
343
+ '@atlaskit/design-system/no-emotion-primitives': "warn";
340
344
  '@atlaskit/design-system/no-html-anchor': "warn";
341
345
  '@atlaskit/design-system/no-html-button': "warn";
342
346
  '@atlaskit/design-system/no-html-checkbox': "warn";
@@ -406,6 +410,7 @@ declare const configs: {
406
410
  '@atlaskit/design-system/no-deprecated-design-token-usage': "warn";
407
411
  '@atlaskit/design-system/no-deprecated-imports': "error";
408
412
  '@atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop': "error";
413
+ '@atlaskit/design-system/no-emotion-primitives': "warn";
409
414
  '@atlaskit/design-system/no-html-anchor': "warn";
410
415
  '@atlaskit/design-system/no-html-button': "warn";
411
416
  '@atlaskit/design-system/no-html-checkbox': "warn";
@@ -15,6 +15,7 @@ declare const _default: {
15
15
  '@atlaskit/design-system/no-deprecated-design-token-usage': "warn";
16
16
  '@atlaskit/design-system/no-deprecated-imports': "error";
17
17
  '@atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop': "error";
18
+ '@atlaskit/design-system/no-emotion-primitives': "warn";
18
19
  '@atlaskit/design-system/no-html-anchor': "warn";
19
20
  '@atlaskit/design-system/no-html-button': "warn";
20
21
  '@atlaskit/design-system/no-html-checkbox': "warn";
@@ -15,6 +15,7 @@ declare const _default: {
15
15
  '@atlaskit/design-system/no-deprecated-design-token-usage': "warn";
16
16
  '@atlaskit/design-system/no-deprecated-imports': "error";
17
17
  '@atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop': "error";
18
+ '@atlaskit/design-system/no-emotion-primitives': "warn";
18
19
  '@atlaskit/design-system/no-html-anchor': "warn";
19
20
  '@atlaskit/design-system/no-html-button': "warn";
20
21
  '@atlaskit/design-system/no-html-checkbox': "warn";
@@ -13,6 +13,7 @@ export declare const rules: {
13
13
  'no-deprecated-design-token-usage': import("eslint").Rule.RuleModule;
14
14
  'no-deprecated-imports': import("eslint").Rule.RuleModule;
15
15
  'no-direct-use-of-web-platform-drag-and-drop': import("eslint").Rule.RuleModule;
16
+ 'no-emotion-primitives': import("eslint").Rule.RuleModule;
16
17
  'no-empty-styled-expression': import("eslint").Rule.RuleModule;
17
18
  'no-exported-css': import("eslint").Rule.RuleModule;
18
19
  'no-exported-keyframes': import("eslint").Rule.RuleModule;
@@ -0,0 +1,3 @@
1
+ import type { Rule } from 'eslint';
2
+ export declare const rule: Rule.RuleModule;
3
+ export default rule;
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": "13.13.0",
4
+ "version": "13.14.0",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
7
7
  "publishConfig": {
@@ -44,8 +44,8 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "@atlaskit/eslint-utils": "^2.0.0",
47
- "@atlaskit/icon": "^25.6.0",
48
- "@atlaskit/icon-lab": "^4.9.0",
47
+ "@atlaskit/icon": "^25.8.0",
48
+ "@atlaskit/icon-lab": "^4.12.0",
49
49
  "@atlaskit/tokens": "^4.8.0",
50
50
  "@babel/runtime": "^7.0.0",
51
51
  "@typescript-eslint/utils": "^7.1.0",