@atlaskit/eslint-plugin-design-system 13.7.0 → 13.9.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.
Files changed (75) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +57 -55
  3. package/dist/cjs/presets/all-flat.codegen.js +3 -1
  4. package/dist/cjs/presets/all.codegen.js +3 -1
  5. package/dist/cjs/presets/recommended-flat.codegen.js +3 -1
  6. package/dist/cjs/presets/recommended.codegen.js +3 -1
  7. package/dist/cjs/rules/index.codegen.js +5 -1
  8. package/dist/cjs/rules/no-html-range/index.js +34 -0
  9. package/dist/cjs/rules/no-html-range/node-types/index.js +12 -0
  10. package/dist/cjs/rules/no-html-range/node-types/jsx-element/index.js +27 -0
  11. package/dist/cjs/rules/no-html-range/node-types/supported.js +70 -0
  12. package/dist/cjs/rules/no-html-select/index.js +40 -0
  13. package/dist/cjs/rules/no-html-select/node-types/index.js +19 -0
  14. package/dist/cjs/rules/no-html-select/node-types/jsx-element/index.js +27 -0
  15. package/dist/cjs/rules/no-html-select/node-types/styled-component/index.js +42 -0
  16. package/dist/cjs/rules/no-html-select/node-types/supported.js +66 -0
  17. package/dist/es2019/presets/all-flat.codegen.js +3 -1
  18. package/dist/es2019/presets/all.codegen.js +3 -1
  19. package/dist/es2019/presets/recommended-flat.codegen.js +3 -1
  20. package/dist/es2019/presets/recommended.codegen.js +3 -1
  21. package/dist/es2019/rules/index.codegen.js +5 -1
  22. package/dist/es2019/rules/no-html-range/index.js +28 -0
  23. package/dist/es2019/rules/no-html-range/node-types/index.js +1 -0
  24. package/dist/es2019/rules/no-html-range/node-types/jsx-element/index.js +19 -0
  25. package/dist/es2019/rules/no-html-range/node-types/supported.js +60 -0
  26. package/dist/es2019/rules/no-html-select/index.js +34 -0
  27. package/dist/es2019/rules/no-html-select/node-types/index.js +2 -0
  28. package/dist/es2019/rules/no-html-select/node-types/jsx-element/index.js +19 -0
  29. package/dist/es2019/rules/no-html-select/node-types/styled-component/index.js +37 -0
  30. package/dist/es2019/rules/no-html-select/node-types/supported.js +56 -0
  31. package/dist/esm/presets/all-flat.codegen.js +3 -1
  32. package/dist/esm/presets/all.codegen.js +3 -1
  33. package/dist/esm/presets/recommended-flat.codegen.js +3 -1
  34. package/dist/esm/presets/recommended.codegen.js +3 -1
  35. package/dist/esm/rules/index.codegen.js +5 -1
  36. package/dist/esm/rules/no-html-range/index.js +28 -0
  37. package/dist/esm/rules/no-html-range/node-types/index.js +1 -0
  38. package/dist/esm/rules/no-html-range/node-types/jsx-element/index.js +18 -0
  39. package/dist/esm/rules/no-html-range/node-types/supported.js +61 -0
  40. package/dist/esm/rules/no-html-select/index.js +34 -0
  41. package/dist/esm/rules/no-html-select/node-types/index.js +2 -0
  42. package/dist/esm/rules/no-html-select/node-types/jsx-element/index.js +18 -0
  43. package/dist/esm/rules/no-html-select/node-types/styled-component/index.js +36 -0
  44. package/dist/esm/rules/no-html-select/node-types/supported.js +57 -0
  45. package/dist/types/index.codegen.d.ts +18 -0
  46. package/dist/types/presets/all-flat.codegen.d.ts +2 -0
  47. package/dist/types/presets/all.codegen.d.ts +2 -0
  48. package/dist/types/presets/recommended-flat.codegen.d.ts +2 -0
  49. package/dist/types/presets/recommended.codegen.d.ts +2 -0
  50. package/dist/types/rules/index.codegen.d.ts +2 -0
  51. package/dist/types/rules/no-html-range/index.d.ts +3 -0
  52. package/dist/types/rules/no-html-range/node-types/index.d.ts +1 -0
  53. package/dist/types/rules/no-html-range/node-types/jsx-element/index.d.ts +8 -0
  54. package/dist/types/rules/no-html-range/node-types/supported.d.ts +7 -0
  55. package/dist/types/rules/no-html-select/index.d.ts +3 -0
  56. package/dist/types/rules/no-html-select/node-types/index.d.ts +2 -0
  57. package/dist/types/rules/no-html-select/node-types/jsx-element/index.d.ts +8 -0
  58. package/dist/types/rules/no-html-select/node-types/styled-component/index.d.ts +8 -0
  59. package/dist/types/rules/no-html-select/node-types/supported.d.ts +7 -0
  60. package/dist/types-ts4.5/index.codegen.d.ts +18 -0
  61. package/dist/types-ts4.5/presets/all-flat.codegen.d.ts +2 -0
  62. package/dist/types-ts4.5/presets/all.codegen.d.ts +2 -0
  63. package/dist/types-ts4.5/presets/recommended-flat.codegen.d.ts +2 -0
  64. package/dist/types-ts4.5/presets/recommended.codegen.d.ts +2 -0
  65. package/dist/types-ts4.5/rules/index.codegen.d.ts +2 -0
  66. package/dist/types-ts4.5/rules/no-html-range/index.d.ts +3 -0
  67. package/dist/types-ts4.5/rules/no-html-range/node-types/index.d.ts +1 -0
  68. package/dist/types-ts4.5/rules/no-html-range/node-types/jsx-element/index.d.ts +8 -0
  69. package/dist/types-ts4.5/rules/no-html-range/node-types/supported.d.ts +7 -0
  70. package/dist/types-ts4.5/rules/no-html-select/index.d.ts +3 -0
  71. package/dist/types-ts4.5/rules/no-html-select/node-types/index.d.ts +2 -0
  72. package/dist/types-ts4.5/rules/no-html-select/node-types/jsx-element/index.d.ts +8 -0
  73. package/dist/types-ts4.5/rules/no-html-select/node-types/styled-component/index.d.ts +8 -0
  74. package/dist/types-ts4.5/rules/no-html-select/node-types/supported.d.ts +7 -0
  75. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # @atlaskit/eslint-plugin-design-system
2
2
 
3
+ ## 13.9.0
4
+
5
+ ### Minor Changes
6
+
7
+ - [#145662](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/145662)
8
+ [`acf5f6979c85f`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/acf5f6979c85f) -
9
+ Add rule to encourage use of the DS select component over native HTML selects.
10
+
11
+ ## 13.8.0
12
+
13
+ ### Minor Changes
14
+
15
+ - [#145074](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/145074)
16
+ [`97a43bf0f52f6`](https://bitbucket.org/atlassian/atlassian-frontend-monorepo/commits/97a43bf0f52f6) -
17
+ Add rule to encourage the usage of ADS range over native range input elements.
18
+
3
19
  ## 13.7.0
4
20
 
5
21
  ### Minor Changes
package/README.md CHANGED
@@ -47,60 +47,62 @@ 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="./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-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="./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. | | | |
68
- | <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. | | | |
69
- | <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 |
70
- | <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 | | |
71
- | <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 |
72
- | <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 |
73
- | <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 | | |
74
- | <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 | |
75
- | <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 |
76
- | <a href="./packages/design-system/eslint-plugin/src/rules/no-margin/README.md">no-margin</a> | Disallow using the margin CSS property. | | | |
77
- | <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 | | |
78
- | <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 | |
79
- | <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 | | |
80
- | <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 | |
81
- | <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 | |
82
- | <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 | | |
83
- | <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 | | |
84
- | <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. | | | |
85
- | <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 |
86
- | <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 |
87
- | <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 |
88
- | <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 |
89
- | <a href="./packages/design-system/eslint-plugin/src/rules/use-heading/README.md">use-heading</a> | Encourage the usage of heading components. | | Yes | Yes |
90
- | <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 | |
91
- | <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 |
92
- | <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 | |
93
- | <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 | |
94
- | <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 |
95
- | <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 |
96
- | <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 |
97
- | <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 |
98
- | <a href="./packages/design-system/eslint-plugin/src/rules/use-primitives/README.md">use-primitives</a> | Encourage the usage of primitives components. | | Yes | Yes |
99
- | <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 |
100
- | <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 |
101
- | <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 |
102
- | <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 |
103
- | <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 |
104
- | <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 | |
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-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 |
73
+ | <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 |
74
+ | <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 |
75
+ | <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 | | |
76
+ | <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 | |
77
+ | <a href="./src/rules/no-legacy-icons/README.md">no-legacy-icons</a> | Enforces no legacy icons are used. | | Yes | Yes |
78
+ | <a href="./src/rules/no-margin/README.md">no-margin</a> | Disallow using the margin CSS property. | | | |
79
+ | <a href="./src/rules/no-nested-styles/README.md">no-nested-styles</a> | Disallows use of nested styles in `css` functions. | Yes | | |
80
+ | <a href="./src/rules/no-physical-properties/README.md">no-physical-properties</a> | Disallow physical properties and values in `css` function calls. | | Yes | |
81
+ | <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 | | |
82
+ | <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 | |
83
+ | <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 | |
84
+ | <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 | | |
85
+ | <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 | | |
86
+ | <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. | | | |
87
+ | <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 |
88
+ | <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 |
89
+ | <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 |
90
+ | <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 |
91
+ | <a href="./src/rules/use-heading/README.md">use-heading</a> | Encourage the usage of heading components. | | Yes | Yes |
92
+ | <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 | |
93
+ | <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 |
94
+ | <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 | |
95
+ | <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 | |
96
+ | <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 |
97
+ | <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 |
98
+ | <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 |
99
+ | <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 |
100
+ | <a href="./src/rules/use-primitives/README.md">use-primitives</a> | Encourage the usage of primitives components. | | Yes | Yes |
101
+ | <a href="./src/rules/use-primitives-text/README.md">use-primitives-text</a> | Encourage the usage of text components. | | Yes | Yes |
102
+ | <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 |
103
+ | <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 |
104
+ | <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 |
105
+ | <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 |
106
+ | <a href="./src/rules/use-visually-hidden/README.md">use-visually-hidden</a> | Enforce usage of the visually hidden component. | Yes | Yes | |
105
107
 
106
108
  <!-- 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::9a179b7d6c19d5c7eafde6b3ae40233b>>
9
+ * @codegen <<SignedSource::f202c585a3745f4765e0515889577a22>>
10
10
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
11
11
  */
12
12
  var _default = exports.default = {
@@ -31,6 +31,8 @@ var _default = exports.default = {
31
31
  '@atlaskit/design-system/no-html-button': 'warn',
32
32
  '@atlaskit/design-system/no-html-checkbox': 'warn',
33
33
  '@atlaskit/design-system/no-html-image': 'warn',
34
+ '@atlaskit/design-system/no-html-range': 'warn',
35
+ '@atlaskit/design-system/no-html-select': 'warn',
34
36
  '@atlaskit/design-system/no-invalid-css-map': ['error', {
35
37
  allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
36
38
  }],
@@ -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::08dc1cc7cbbf7112f2f5733f57a9e2b1>>
9
+ * @codegen <<SignedSource::6b4a8032ac1f59781b9675b9cc053a55>>
10
10
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
11
11
  */
12
12
  var _default = exports.default = {
@@ -30,6 +30,8 @@ var _default = exports.default = {
30
30
  '@atlaskit/design-system/no-html-button': 'warn',
31
31
  '@atlaskit/design-system/no-html-checkbox': 'warn',
32
32
  '@atlaskit/design-system/no-html-image': 'warn',
33
+ '@atlaskit/design-system/no-html-range': 'warn',
34
+ '@atlaskit/design-system/no-html-select': 'warn',
33
35
  '@atlaskit/design-system/no-invalid-css-map': ['error', {
34
36
  allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
35
37
  }],
@@ -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::81564fd37c062c0be3a14ca6ea1e4271>>
9
+ * @codegen <<SignedSource::88336f6c2f8c5d33f84730619006b49e>>
10
10
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
11
11
  */
12
12
  var _default = exports.default = {
@@ -26,6 +26,8 @@ var _default = exports.default = {
26
26
  '@atlaskit/design-system/no-html-button': 'warn',
27
27
  '@atlaskit/design-system/no-html-checkbox': 'warn',
28
28
  '@atlaskit/design-system/no-html-image': 'warn',
29
+ '@atlaskit/design-system/no-html-range': 'warn',
30
+ '@atlaskit/design-system/no-html-select': 'warn',
29
31
  '@atlaskit/design-system/no-invalid-css-map': ['error', {
30
32
  allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
31
33
  }],
@@ -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::175936d329524b99169a5dc943011231>>
9
+ * @codegen <<SignedSource::829b781e15e90c3a142273e2b153459f>>
10
10
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
11
11
  */
12
12
  var _default = exports.default = {
@@ -25,6 +25,8 @@ var _default = exports.default = {
25
25
  '@atlaskit/design-system/no-html-button': 'warn',
26
26
  '@atlaskit/design-system/no-html-checkbox': 'warn',
27
27
  '@atlaskit/design-system/no-html-image': 'warn',
28
+ '@atlaskit/design-system/no-html-range': 'warn',
29
+ '@atlaskit/design-system/no-html-select': 'warn',
28
30
  '@atlaskit/design-system/no-invalid-css-map': ['error', {
29
31
  allowedFunctionCalls: [['@atlaskit/tokens', 'token']]
30
32
  }],
@@ -26,6 +26,8 @@ var _noHtmlAnchor = _interopRequireDefault(require("./no-html-anchor"));
26
26
  var _noHtmlButton = _interopRequireDefault(require("./no-html-button"));
27
27
  var _noHtmlCheckbox = _interopRequireDefault(require("./no-html-checkbox"));
28
28
  var _noHtmlImage = _interopRequireDefault(require("./no-html-image"));
29
+ var _noHtmlRange = _interopRequireDefault(require("./no-html-range"));
30
+ var _noHtmlSelect = _interopRequireDefault(require("./no-html-select"));
29
31
  var _noInvalidCssMap = _interopRequireDefault(require("./no-invalid-css-map"));
30
32
  var _noKeyframesTaggedTemplateExpression = _interopRequireDefault(require("./no-keyframes-tagged-template-expression"));
31
33
  var _noLegacyIcons = _interopRequireDefault(require("./no-legacy-icons"));
@@ -60,7 +62,7 @@ var _useTokensTypography = _interopRequireDefault(require("./use-tokens-typograp
60
62
  var _useVisuallyHidden = _interopRequireDefault(require("./use-visually-hidden"));
61
63
  /**
62
64
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
63
- * @codegen <<SignedSource::3cefc1b277e5c633caf1fd4491d60d94>>
65
+ * @codegen <<SignedSource::60d053061448c69290fba282ee307366>>
64
66
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
65
67
  */
66
68
 
@@ -86,6 +88,8 @@ var rules = exports.rules = {
86
88
  'no-html-button': _noHtmlButton.default,
87
89
  'no-html-checkbox': _noHtmlCheckbox.default,
88
90
  'no-html-image': _noHtmlImage.default,
91
+ 'no-html-range': _noHtmlRange.default,
92
+ 'no-html-select': _noHtmlSelect.default,
89
93
  'no-invalid-css-map': _noInvalidCssMap.default,
90
94
  'no-keyframes-tagged-template-expression': _noKeyframesTaggedTemplateExpression.default,
91
95
  'no-legacy-icons': _noLegacyIcons.default,
@@ -0,0 +1,34 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _createRule = require("../utils/create-rule");
8
+ var _nodeTypes = require("./node-types");
9
+ var rule = (0, _createRule.createLintRule)({
10
+ meta: {
11
+ name: 'no-html-range',
12
+ type: 'suggestion',
13
+ hasSuggestions: true,
14
+ docs: {
15
+ description: 'Discourage direct usage of HTML range elements in favor of the Atlassian Design System range component.',
16
+ recommended: true,
17
+ severity: 'warn'
18
+ },
19
+ messages: {
20
+ noHtmlRange: "This <{{ name }}> should be replaced with a range component from the Atlassian Design System. ADS components include event tracking, ensure accessible implementations, and provide access to ADS styling features like design tokens."
21
+ }
22
+ },
23
+ create: function create(context) {
24
+ return {
25
+ // transforms <input type="range" css={...}> usages
26
+ JSXElement: function JSXElement(node) {
27
+ _nodeTypes.JSXElement.lint(node, {
28
+ context: context
29
+ });
30
+ }
31
+ };
32
+ }
33
+ });
34
+ var _default = exports.default = rule;
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "JSXElement", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _jsxElement.JSXElement;
10
+ }
11
+ });
12
+ var _jsxElement = require("./jsx-element");
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+
3
+ var _typeof = require("@babel/runtime/helpers/typeof");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.JSXElement = void 0;
8
+ var ast = _interopRequireWildcard(require("../../../../ast-nodes"));
9
+ var _supported = require("../supported");
10
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
11
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
12
+ var JSXElement = exports.JSXElement = {
13
+ lint: function lint(node, _ref) {
14
+ var context = _ref.context;
15
+ if (!(0, _supported.isSupportedForLint)(node)) {
16
+ return;
17
+ }
18
+ var nodeName = ast.JSXElement.getName(node);
19
+ context.report({
20
+ node: node.openingElement,
21
+ messageId: 'noHtmlRange',
22
+ data: {
23
+ name: nodeName
24
+ }
25
+ });
26
+ }
27
+ };
@@ -0,0 +1,70 @@
1
+ "use strict";
2
+
3
+ var _typeof = require("@babel/runtime/helpers/typeof");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.isSupportedForLint = isSupportedForLint;
8
+ var _eslintCodemodUtils = require("eslint-codemod-utils");
9
+ var ast = _interopRequireWildcard(require("../../../ast-nodes"));
10
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
11
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
12
+ var supportedElements = [{
13
+ name: 'input',
14
+ attributes: [{
15
+ name: 'type',
16
+ values: ['range']
17
+ }]
18
+ }];
19
+
20
+ /**
21
+ * Determines if the given JSX element is a supported element to lint with this rule.
22
+ */
23
+ function isSupportedForLint(jsxNode, elementName) {
24
+ if (!(0, _eslintCodemodUtils.isNodeOfType)(jsxNode, 'JSXElement')) {
25
+ return false;
26
+ }
27
+
28
+ // Allow passing in the element name because the jsxNode doesn't
29
+ // represent the element name with styled components
30
+ var elName = elementName || ast.JSXElement.getName(jsxNode);
31
+ if (!elName) {
32
+ return false;
33
+ }
34
+
35
+ // Only check native HTML elements, not components
36
+ if (elName[0] !== elName[0].toLowerCase()) {
37
+ return false;
38
+ }
39
+ var supportedElement = supportedElements.find(function (_ref) {
40
+ var name = _ref.name;
41
+ return name === elName;
42
+ });
43
+ if (!supportedElement) {
44
+ supportedElement = supportedElements.find(function (_ref2) {
45
+ var name = _ref2.name;
46
+ return name === '*';
47
+ });
48
+ }
49
+ if (!supportedElement) {
50
+ return false;
51
+ }
52
+
53
+ // Check if the element has any attributes that are not supported
54
+ var attributes = ast.JSXElement.getAttributes(jsxNode);
55
+ if (supportedElement.attributes && !supportedElement.attributes.every(function (_ref3) {
56
+ var name = _ref3.name,
57
+ values = _ref3.values;
58
+ return attributes.some(function (attribute) {
59
+ if (attribute.type === 'JSXSpreadAttribute') {
60
+ return false;
61
+ }
62
+ var isMatchingName = attribute.name.name === name;
63
+ var isMatchingValues = values && attribute.value && attribute.value.type === 'Literal' && typeof attribute.value.value === 'string' && (values === null || values === void 0 ? void 0 : values.includes(attribute.value.value));
64
+ return isMatchingName && isMatchingValues;
65
+ });
66
+ })) {
67
+ return false;
68
+ }
69
+ return true;
70
+ }
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.default = void 0;
7
+ var _createRule = require("../utils/create-rule");
8
+ var _nodeTypes = require("./node-types");
9
+ var rule = (0, _createRule.createLintRule)({
10
+ meta: {
11
+ name: 'no-html-select',
12
+ type: 'suggestion',
13
+ hasSuggestions: true,
14
+ docs: {
15
+ description: 'Discourage direct usage of HTML select elements in favor of the Atlassian Design System select component.',
16
+ recommended: true,
17
+ severity: 'warn'
18
+ },
19
+ messages: {
20
+ noHtmlSelect: "This <{{ name }}> should be replaced with the select component from the Atlassian Design System. ADS select components have event tracking, ensure accessible implementations, and provide access to ADS styling features like design tokens."
21
+ }
22
+ },
23
+ create: function create(context) {
24
+ return {
25
+ // transforms styled.<anchor>(...) usages
26
+ CallExpression: function CallExpression(node) {
27
+ _nodeTypes.StyledComponent.lint(node, {
28
+ context: context
29
+ });
30
+ },
31
+ // transforms <anchor css={...}> usages
32
+ JSXElement: function JSXElement(node) {
33
+ _nodeTypes.JSXElement.lint(node, {
34
+ context: context
35
+ });
36
+ }
37
+ };
38
+ }
39
+ });
40
+ var _default = exports.default = rule;
@@ -0,0 +1,19 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ Object.defineProperty(exports, "JSXElement", {
7
+ enumerable: true,
8
+ get: function get() {
9
+ return _jsxElement.JSXElement;
10
+ }
11
+ });
12
+ Object.defineProperty(exports, "StyledComponent", {
13
+ enumerable: true,
14
+ get: function get() {
15
+ return _styledComponent.StyledComponent;
16
+ }
17
+ });
18
+ var _styledComponent = require("./styled-component");
19
+ var _jsxElement = require("./jsx-element");
@@ -0,0 +1,27 @@
1
+ "use strict";
2
+
3
+ var _typeof = require("@babel/runtime/helpers/typeof");
4
+ Object.defineProperty(exports, "__esModule", {
5
+ value: true
6
+ });
7
+ exports.JSXElement = void 0;
8
+ var ast = _interopRequireWildcard(require("../../../../ast-nodes"));
9
+ var _supported = require("../supported");
10
+ function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
11
+ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
12
+ var JSXElement = exports.JSXElement = {
13
+ lint: function lint(node, _ref) {
14
+ var context = _ref.context;
15
+ if (!(0, _supported.isSupportedForLint)(node)) {
16
+ return;
17
+ }
18
+ var nodeName = ast.JSXElement.getName(node);
19
+ context.report({
20
+ node: node.openingElement,
21
+ messageId: 'noHtmlSelect',
22
+ data: {
23
+ name: nodeName
24
+ }
25
+ });
26
+ }
27
+ };