@atlaskit/eslint-plugin-design-system 10.18.1 → 10.19.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 (69) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +1 -0
  3. package/dist/cjs/presets/all.codegen.js +2 -1
  4. package/dist/cjs/presets/recommended.codegen.js +2 -1
  5. package/dist/cjs/rules/ensure-icon-color/index.js +1 -1
  6. package/dist/cjs/rules/index.codegen.js +3 -1
  7. package/dist/cjs/rules/no-deprecated-imports/index.js +3 -3
  8. package/dist/cjs/rules/no-direct-use-of-web-platform-drag-and-drop/checks/is-blocked-bind-all.js +3 -3
  9. package/dist/cjs/rules/no-direct-use-of-web-platform-drag-and-drop/checks/is-blocked-bind.js +3 -3
  10. package/dist/cjs/rules/no-html-anchor/node-types/jsx-element/index.js +1 -1
  11. package/dist/cjs/rules/no-html-anchor/node-types/supported.js +1 -1
  12. package/dist/cjs/rules/no-html-button/node-types/jsx-element/index.js +1 -1
  13. package/dist/cjs/rules/no-html-button/node-types/supported.js +1 -1
  14. package/dist/cjs/rules/no-invalid-css-map/utils.js +3 -3
  15. package/dist/cjs/rules/no-legacy-icons/checks.js +3 -3
  16. package/dist/cjs/rules/no-legacy-icons/helpers.js +4 -4
  17. package/dist/cjs/rules/use-heading/transformers/common.js +1 -1
  18. package/dist/cjs/rules/use-heading/transformers/native-elements.js +1 -1
  19. package/dist/cjs/rules/use-latest-xcss-syntax/transformers/style-property/index.js +1 -1
  20. package/dist/cjs/rules/use-latest-xcss-syntax-typography/linters/restricted-property.js +3 -3
  21. package/dist/cjs/rules/use-primitives/transformers/compiled-styled/convert-jsx-call-site.js +1 -1
  22. package/dist/cjs/rules/use-primitives/transformers/compiled-styled/find-valid-styled-component-call.js +1 -1
  23. package/dist/cjs/rules/use-primitives/transformers/compiled-styled/index.js +1 -1
  24. package/dist/cjs/rules/use-primitives/transformers/emotion-css/index.js +1 -1
  25. package/dist/cjs/rules/use-primitives/utils/is-valid-css-properties-to-transform.js +1 -1
  26. package/dist/cjs/rules/use-primitives/utils/validate-styles.js +1 -1
  27. package/dist/cjs/rules/use-primitives-text/transformers/common.js +1 -1
  28. package/dist/cjs/rules/use-primitives-text/transformers/emphasis-elements.js +1 -1
  29. package/dist/cjs/rules/use-primitives-text/transformers/paragraph-elements.js +1 -1
  30. package/dist/cjs/rules/use-primitives-text/transformers/span-elements.js +1 -1
  31. package/dist/cjs/rules/use-primitives-text/transformers/strong-elements.js +1 -1
  32. package/dist/cjs/rules/use-tag-group-label/index.js +83 -0
  33. package/dist/cjs/rules/use-tokens-space/transformers/style-property/index.js +1 -1
  34. package/dist/cjs/rules/utils/create-no-exported-rule/check-if-supported-export.js +3 -3
  35. package/dist/cjs/rules/utils/create-no-tagged-template-expression-rule/generate.js +3 -3
  36. package/dist/cjs/rules/utils/create-no-tagged-template-expression-rule/to-arguments.js +3 -3
  37. package/dist/cjs/rules/utils/get-import-node-by-source.js +3 -3
  38. package/dist/es2019/presets/all.codegen.js +2 -1
  39. package/dist/es2019/presets/recommended.codegen.js +2 -1
  40. package/dist/es2019/rules/ensure-icon-color/index.js +1 -1
  41. package/dist/es2019/rules/index.codegen.js +3 -1
  42. package/dist/es2019/rules/use-tag-group-label/index.js +75 -0
  43. package/dist/esm/presets/all.codegen.js +2 -1
  44. package/dist/esm/presets/recommended.codegen.js +2 -1
  45. package/dist/esm/rules/ensure-icon-color/index.js +1 -1
  46. package/dist/esm/rules/index.codegen.js +3 -1
  47. package/dist/esm/rules/no-deprecated-imports/index.js +3 -3
  48. package/dist/esm/rules/no-direct-use-of-web-platform-drag-and-drop/checks/is-blocked-bind-all.js +3 -3
  49. package/dist/esm/rules/no-direct-use-of-web-platform-drag-and-drop/checks/is-blocked-bind.js +3 -3
  50. package/dist/esm/rules/no-invalid-css-map/utils.js +3 -3
  51. package/dist/esm/rules/no-legacy-icons/checks.js +3 -3
  52. package/dist/esm/rules/no-legacy-icons/helpers.js +3 -3
  53. package/dist/esm/rules/use-latest-xcss-syntax-typography/linters/restricted-property.js +3 -3
  54. package/dist/esm/rules/use-tag-group-label/index.js +77 -0
  55. package/dist/esm/rules/utils/create-no-exported-rule/check-if-supported-export.js +3 -3
  56. package/dist/esm/rules/utils/create-no-tagged-template-expression-rule/generate.js +3 -3
  57. package/dist/esm/rules/utils/create-no-tagged-template-expression-rule/to-arguments.js +3 -3
  58. package/dist/esm/rules/utils/get-import-node-by-source.js +3 -3
  59. package/dist/types/index.codegen.d.ts +2 -0
  60. package/dist/types/presets/all.codegen.d.ts +2 -1
  61. package/dist/types/presets/recommended.codegen.d.ts +2 -1
  62. package/dist/types/rules/index.codegen.d.ts +1 -0
  63. package/dist/types/rules/use-tag-group-label/index.d.ts +3 -0
  64. package/dist/types-ts4.5/index.codegen.d.ts +2 -0
  65. package/dist/types-ts4.5/presets/all.codegen.d.ts +2 -1
  66. package/dist/types-ts4.5/presets/recommended.codegen.d.ts +2 -1
  67. package/dist/types-ts4.5/rules/index.codegen.d.ts +1 -0
  68. package/dist/types-ts4.5/rules/use-tag-group-label/index.d.ts +3 -0
  69. package/package.json +2 -2
@@ -0,0 +1,77 @@
1
+ // eslint-disable-next-line import/no-extraneous-dependencies
2
+
3
+ import { isNodeOfType } from 'eslint-codemod-utils';
4
+ import { createLintRule } from '../utils/create-rule';
5
+ var elementsAccessibleNameProps = ['label', 'titleId'];
6
+ var rule = createLintRule({
7
+ meta: {
8
+ name: 'use-tag-group-label',
9
+ type: 'suggestion',
10
+ docs: {
11
+ description: 'Ensures tag groups are described to assistive technology by a direct label or by another element.',
12
+ recommended: true,
13
+ severity: 'warn'
14
+ },
15
+ messages: {
16
+ missingLabelProp: 'Missing accessible name. If there is no visible content to associate use `label` prop, otherwise pass id of element to `titleId` prop to be associated as label.',
17
+ labelPropShouldHaveContents: 'Define string that labels the interactive element.',
18
+ titleIdShouldHaveValue: '`titleId` should reference the id of element that define accessible name.',
19
+ noBothPropsUsage: 'Do not include both `titleId` and `label` properties. Use `titleId` if the label text is available in the DOM to reference it, otherwise use `label` to provide accessible name explicitly.'
20
+ },
21
+ hasSuggestions: true
22
+ },
23
+ create: function create(context) {
24
+ var contextLocalIdentifier = [];
25
+ return {
26
+ ImportDeclaration: function ImportDeclaration(node) {
27
+ if (node.source.value === '@atlaskit/tag-group') {
28
+ if (node.specifiers.length) {
29
+ var defaultImport = node.specifiers.filter(function (spec) {
30
+ return spec.type === 'ImportDefaultSpecifier';
31
+ });
32
+ if (defaultImport.length) {
33
+ var local = defaultImport[0].local;
34
+ contextLocalIdentifier.push(local.name);
35
+ }
36
+ }
37
+ }
38
+ },
39
+ JSXElement: function JSXElement(node) {
40
+ if (!isNodeOfType(node, 'JSXElement')) {
41
+ return;
42
+ }
43
+ if (!isNodeOfType(node.openingElement.name, 'JSXIdentifier')) {
44
+ return;
45
+ }
46
+ var name = node.openingElement.name.name;
47
+ if (contextLocalIdentifier.includes(name)) {
48
+ var componentLabelProps = node.openingElement.attributes.filter(function (attr) {
49
+ return isNodeOfType(attr, 'JSXAttribute') && isNodeOfType(attr.name, 'JSXIdentifier') && elementsAccessibleNameProps.includes(attr.name.name);
50
+ });
51
+ if (componentLabelProps.length === 1) {
52
+ var prop = componentLabelProps[0];
53
+ if ('value' in prop && prop.value) {
54
+ if (isNodeOfType(prop.value, 'Literal') && !prop.value.value || isNodeOfType(prop.value, 'JSXExpressionContainer') && !prop.value.expression) {
55
+ context.report({
56
+ node: prop,
57
+ messageId: prop.name.name === 'label' ? 'labelPropShouldHaveContents' : 'titleIdShouldHaveValue'
58
+ });
59
+ }
60
+ }
61
+ } else if (componentLabelProps.length > 1) {
62
+ context.report({
63
+ node: node.openingElement,
64
+ messageId: 'noBothPropsUsage'
65
+ });
66
+ } else {
67
+ context.report({
68
+ node: node.openingElement,
69
+ messageId: 'missingLabelProp'
70
+ });
71
+ }
72
+ }
73
+ }
74
+ };
75
+ }
76
+ });
77
+ export default rule;
@@ -1,7 +1,7 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
- function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
3
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
2
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
3
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
4
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
5
5
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
6
6
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7
7
  import { isStyledComponent } from './is-styled-component';
@@ -1,7 +1,7 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
- function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
3
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
2
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
3
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
4
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
5
5
  // Original source from Compiled https://github.com/atlassian-labs/compiled/blob/master/packages/eslint-plugin/src/utils/create-no-tagged-template-expression-rule/generate.ts
6
6
 
7
7
  var createKey = function createKey(key) {
@@ -1,8 +1,8 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
2
  import _toArray from "@babel/runtime/helpers/toArray";
3
- function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
4
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
5
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
3
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
4
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
5
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
6
6
  // Original source from Compiled https://github.com/atlassian-labs/compiled/blob/master/packages/eslint-plugin/src/utils/create-no-tagged-template-expression-rule/to-arguments.ts
7
7
  // eslint-disable-next-line import/no-extraneous-dependencies
8
8
 
@@ -1,6 +1,6 @@
1
- function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
2
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
3
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
1
+ function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t.return || t.return(); } finally { if (u) throw o; } } }; }
2
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
3
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
4
4
  // eslint-disable-next-line import/no-extraneous-dependencies
5
5
 
6
6
  /**
@@ -41,6 +41,7 @@ export declare const configs: {
41
41
  '@atlaskit/design-system/use-popup-label': string;
42
42
  '@atlaskit/design-system/use-primitives': string;
43
43
  '@atlaskit/design-system/use-primitives-text': string;
44
+ '@atlaskit/design-system/use-tag-group-label': string;
44
45
  '@atlaskit/design-system/use-tokens-space': string;
45
46
  '@atlaskit/design-system/use-tokens-typography': string;
46
47
  '@atlaskit/design-system/use-visually-hidden': string;
@@ -74,6 +75,7 @@ export declare const configs: {
74
75
  '@atlaskit/design-system/use-latest-xcss-syntax-typography': string;
75
76
  '@atlaskit/design-system/use-menu-section-title': string;
76
77
  '@atlaskit/design-system/use-popup-label': string;
78
+ '@atlaskit/design-system/use-tag-group-label': string;
77
79
  '@atlaskit/design-system/use-visually-hidden': string;
78
80
  };
79
81
  };
@@ -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::16613cb3962ed68af0bffd70eef5f5e2>>
3
+ * @codegen <<SignedSource::be4dfc6cd2ee9af2084965a89f8b8a91>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
5
5
  */
6
6
  declare const _default: {
@@ -44,6 +44,7 @@ declare const _default: {
44
44
  '@atlaskit/design-system/use-popup-label': string;
45
45
  '@atlaskit/design-system/use-primitives': string;
46
46
  '@atlaskit/design-system/use-primitives-text': string;
47
+ '@atlaskit/design-system/use-tag-group-label': string;
47
48
  '@atlaskit/design-system/use-tokens-space': string;
48
49
  '@atlaskit/design-system/use-tokens-typography': string;
49
50
  '@atlaskit/design-system/use-visually-hidden': string;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::9b6bccf688f4ee18dd0d49dbce48e475>>
3
+ * @codegen <<SignedSource::9be7e90918082d78473f5d2a2271b15c>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
5
5
  */
6
6
  declare const _default: {
@@ -31,6 +31,7 @@ declare const _default: {
31
31
  '@atlaskit/design-system/use-latest-xcss-syntax-typography': string;
32
32
  '@atlaskit/design-system/use-menu-section-title': string;
33
33
  '@atlaskit/design-system/use-popup-label': string;
34
+ '@atlaskit/design-system/use-tag-group-label': string;
34
35
  '@atlaskit/design-system/use-visually-hidden': string;
35
36
  };
36
37
  };
@@ -42,6 +42,7 @@ declare const _default: {
42
42
  'use-popup-label': import("eslint").Rule.RuleModule;
43
43
  'use-primitives': import("eslint").Rule.RuleModule;
44
44
  'use-primitives-text': import("eslint").Rule.RuleModule;
45
+ 'use-tag-group-label': import("eslint").Rule.RuleModule;
45
46
  'use-tokens-space': import("eslint").Rule.RuleModule;
46
47
  'use-tokens-typography': import("eslint").Rule.RuleModule;
47
48
  'use-visually-hidden': import("eslint").Rule.RuleModule;
@@ -0,0 +1,3 @@
1
+ import type { Rule } from 'eslint';
2
+ declare const rule: Rule.RuleModule;
3
+ export default rule;
@@ -41,6 +41,7 @@ export declare const configs: {
41
41
  '@atlaskit/design-system/use-popup-label': string;
42
42
  '@atlaskit/design-system/use-primitives': string;
43
43
  '@atlaskit/design-system/use-primitives-text': string;
44
+ '@atlaskit/design-system/use-tag-group-label': string;
44
45
  '@atlaskit/design-system/use-tokens-space': string;
45
46
  '@atlaskit/design-system/use-tokens-typography': string;
46
47
  '@atlaskit/design-system/use-visually-hidden': string;
@@ -74,6 +75,7 @@ export declare const configs: {
74
75
  '@atlaskit/design-system/use-latest-xcss-syntax-typography': string;
75
76
  '@atlaskit/design-system/use-menu-section-title': string;
76
77
  '@atlaskit/design-system/use-popup-label': string;
78
+ '@atlaskit/design-system/use-tag-group-label': string;
77
79
  '@atlaskit/design-system/use-visually-hidden': string;
78
80
  };
79
81
  };
@@ -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::16613cb3962ed68af0bffd70eef5f5e2>>
3
+ * @codegen <<SignedSource::be4dfc6cd2ee9af2084965a89f8b8a91>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
5
5
  */
6
6
  declare const _default: {
@@ -44,6 +44,7 @@ declare const _default: {
44
44
  '@atlaskit/design-system/use-popup-label': string;
45
45
  '@atlaskit/design-system/use-primitives': string;
46
46
  '@atlaskit/design-system/use-primitives-text': string;
47
+ '@atlaskit/design-system/use-tag-group-label': string;
47
48
  '@atlaskit/design-system/use-tokens-space': string;
48
49
  '@atlaskit/design-system/use-tokens-typography': string;
49
50
  '@atlaskit/design-system/use-visually-hidden': string;
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::9b6bccf688f4ee18dd0d49dbce48e475>>
3
+ * @codegen <<SignedSource::9be7e90918082d78473f5d2a2271b15c>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
5
5
  */
6
6
  declare const _default: {
@@ -31,6 +31,7 @@ declare const _default: {
31
31
  '@atlaskit/design-system/use-latest-xcss-syntax-typography': string;
32
32
  '@atlaskit/design-system/use-menu-section-title': string;
33
33
  '@atlaskit/design-system/use-popup-label': string;
34
+ '@atlaskit/design-system/use-tag-group-label': string;
34
35
  '@atlaskit/design-system/use-visually-hidden': string;
35
36
  };
36
37
  };
@@ -46,6 +46,7 @@ declare const _default: {
46
46
  'use-popup-label': import("eslint").Rule.RuleModule;
47
47
  'use-primitives': import("eslint").Rule.RuleModule;
48
48
  'use-primitives-text': import("eslint").Rule.RuleModule;
49
+ 'use-tag-group-label': import("eslint").Rule.RuleModule;
49
50
  'use-tokens-space': import("eslint").Rule.RuleModule;
50
51
  'use-tokens-typography': import("eslint").Rule.RuleModule;
51
52
  'use-visually-hidden': import("eslint").Rule.RuleModule;
@@ -0,0 +1,3 @@
1
+ import type { Rule } from 'eslint';
2
+ 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": "10.18.1",
4
+ "version": "10.19.0",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
7
7
  "publishConfig": {
@@ -41,7 +41,7 @@
41
41
  },
42
42
  "dependencies": {
43
43
  "@atlaskit/eslint-utils": "^1.7.0",
44
- "@atlaskit/icon": "^22.15.0",
44
+ "@atlaskit/icon": "^22.18.0",
45
45
  "@atlaskit/tokens": "*",
46
46
  "@babel/runtime": "^7.0.0",
47
47
  "@typescript-eslint/utils": "^5.48.1",