@atlaskit/eslint-plugin-design-system 13.17.1 → 13.17.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (74) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +1 -0
  3. package/dist/cjs/index.js +1 -2
  4. package/dist/cjs/presets/all-flat.codegen.js +2 -1
  5. package/dist/cjs/presets/all.codegen.js +2 -1
  6. package/dist/cjs/rules/enforce-inline-styles-in-select/index.js +76 -0
  7. package/dist/cjs/rules/enforce-inline-styles-in-select/utils.js +231 -0
  8. package/dist/cjs/rules/index.codegen.js +3 -1
  9. package/dist/cjs/rules/no-html-anchor/node-types/jsx-element/index.js +1 -2
  10. package/dist/cjs/rules/no-html-anchor/node-types/supported.js +1 -2
  11. package/dist/cjs/rules/no-html-button/node-types/jsx-element/index.js +1 -2
  12. package/dist/cjs/rules/no-html-button/node-types/supported.js +1 -2
  13. package/dist/cjs/rules/no-html-checkbox/node-types/jsx-element/index.js +1 -2
  14. package/dist/cjs/rules/no-html-checkbox/node-types/supported.js +1 -2
  15. package/dist/cjs/rules/no-html-code/node-types/jsx-element/index.js +1 -2
  16. package/dist/cjs/rules/no-html-code/node-types/supported.js +1 -2
  17. package/dist/cjs/rules/no-html-heading/node-types/jsx-element/index.js +1 -2
  18. package/dist/cjs/rules/no-html-heading/node-types/supported.js +1 -2
  19. package/dist/cjs/rules/no-html-image/node-types/jsx-element/index.js +1 -2
  20. package/dist/cjs/rules/no-html-image/node-types/supported.js +1 -2
  21. package/dist/cjs/rules/no-html-radio/node-types/jsx-element/index.js +1 -2
  22. package/dist/cjs/rules/no-html-radio/node-types/supported.js +1 -2
  23. package/dist/cjs/rules/no-html-range/node-types/jsx-element/index.js +1 -2
  24. package/dist/cjs/rules/no-html-range/node-types/supported.js +1 -2
  25. package/dist/cjs/rules/no-html-select/node-types/jsx-element/index.js +1 -2
  26. package/dist/cjs/rules/no-html-select/node-types/supported.js +1 -2
  27. package/dist/cjs/rules/no-html-text-input/node-types/jsx-element/index.js +1 -2
  28. package/dist/cjs/rules/no-html-text-input/node-types/supported.js +1 -2
  29. package/dist/cjs/rules/no-html-textarea/node-types/jsx-element/index.js +1 -2
  30. package/dist/cjs/rules/no-html-textarea/node-types/supported.js +1 -2
  31. package/dist/cjs/rules/no-legacy-icons/helpers.js +12 -13
  32. package/dist/cjs/rules/no-nested-styles/index.js +27 -20
  33. package/dist/cjs/rules/use-heading/transformers/common.js +1 -2
  34. package/dist/cjs/rules/use-heading/transformers/native-elements.js +1 -2
  35. package/dist/cjs/rules/use-latest-xcss-syntax/transformers/style-property/index.js +1 -2
  36. package/dist/cjs/rules/use-primitives/transformers/compiled-styled/convert-jsx-call-site.js +1 -2
  37. package/dist/cjs/rules/use-primitives/transformers/compiled-styled/find-valid-styled-component-call.js +1 -2
  38. package/dist/cjs/rules/use-primitives/transformers/compiled-styled/index.js +1 -2
  39. package/dist/cjs/rules/use-primitives/transformers/emotion-css/index.js +1 -2
  40. package/dist/cjs/rules/use-primitives/utils/is-valid-css-properties-to-transform.js +1 -2
  41. package/dist/cjs/rules/use-primitives/utils/validate-styles.js +1 -2
  42. package/dist/cjs/rules/use-primitives-text/transformers/common.js +1 -2
  43. package/dist/cjs/rules/use-primitives-text/transformers/emphasis-elements.js +1 -2
  44. package/dist/cjs/rules/use-primitives-text/transformers/paragraph-elements.js +1 -2
  45. package/dist/cjs/rules/use-primitives-text/transformers/span-elements.js +1 -2
  46. package/dist/cjs/rules/use-primitives-text/transformers/strong-elements.js +1 -2
  47. package/dist/cjs/rules/use-tokens-space/transformers/style-property/index.js +1 -2
  48. package/dist/es2019/presets/all-flat.codegen.js +2 -1
  49. package/dist/es2019/presets/all.codegen.js +2 -1
  50. package/dist/es2019/rules/enforce-inline-styles-in-select/index.js +68 -0
  51. package/dist/es2019/rules/enforce-inline-styles-in-select/utils.js +217 -0
  52. package/dist/es2019/rules/index.codegen.js +3 -1
  53. package/dist/es2019/rules/no-legacy-icons/helpers.js +2 -2
  54. package/dist/es2019/rules/no-nested-styles/index.js +27 -18
  55. package/dist/esm/presets/all-flat.codegen.js +2 -1
  56. package/dist/esm/presets/all.codegen.js +2 -1
  57. package/dist/esm/rules/enforce-inline-styles-in-select/index.js +70 -0
  58. package/dist/esm/rules/enforce-inline-styles-in-select/utils.js +225 -0
  59. package/dist/esm/rules/index.codegen.js +3 -1
  60. package/dist/esm/rules/no-legacy-icons/helpers.js +11 -11
  61. package/dist/esm/rules/no-nested-styles/index.js +27 -20
  62. package/dist/types/index.codegen.d.ts +5 -0
  63. package/dist/types/presets/all-flat.codegen.d.ts +1 -0
  64. package/dist/types/presets/all.codegen.d.ts +1 -0
  65. package/dist/types/rules/enforce-inline-styles-in-select/index.d.ts +3 -0
  66. package/dist/types/rules/enforce-inline-styles-in-select/utils.d.ts +2 -0
  67. package/dist/types/rules/index.codegen.d.ts +1 -0
  68. package/dist/types-ts4.5/index.codegen.d.ts +5 -0
  69. package/dist/types-ts4.5/presets/all-flat.codegen.d.ts +1 -0
  70. package/dist/types-ts4.5/presets/all.codegen.d.ts +1 -0
  71. package/dist/types-ts4.5/rules/enforce-inline-styles-in-select/index.d.ts +3 -0
  72. package/dist/types-ts4.5/rules/enforce-inline-styles-in-select/utils.d.ts +2 -0
  73. package/dist/types-ts4.5/rules/index.codegen.d.ts +1 -0
  74. package/package.json +4 -4
@@ -1,9 +1,10 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::3de5d5b44aa01faabdb840bc7fb43d04>>
3
+ * @codegen <<SignedSource::c3ee5646fc648d2510a70195a04d7fe9>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
5
5
  */
6
6
  import consistentCssPropUsage from './consistent-css-prop-usage';
7
+ import enforceInlineStylesInSelect from './enforce-inline-styles-in-select';
7
8
  import ensureDesignTokenUsage from './ensure-design-token-usage';
8
9
  import ensureDesignTokenUsagePreview from './ensure-design-token-usage-preview';
9
10
  import ensureIconColor from './ensure-icon-color';
@@ -68,6 +69,7 @@ import useTokensTypography from './use-tokens-typography';
68
69
  import useVisuallyHidden from './use-visually-hidden';
69
70
  export var rules = {
70
71
  'consistent-css-prop-usage': consistentCssPropUsage,
72
+ 'enforce-inline-styles-in-select': enforceInlineStylesInSelect,
71
73
  'ensure-design-token-usage': ensureDesignTokenUsage,
72
74
  'ensure-design-token-usage/preview': ensureDesignTokenUsagePreview,
73
75
  'ensure-icon-color': ensureIconColor,
@@ -425,14 +425,14 @@ export var isInsideLegacyButton = function isInsideLegacyButton(node, legacyButt
425
425
  export var isInsideIconOnlyLegacyButton = function isInsideIconOnlyLegacyButton(node, legacyButtonImports) {
426
426
  var insideIconOnlyLegacyButton = false;
427
427
  if (isInsideLegacyButton(node, legacyButtonImports)) {
428
- var _node$parent7, _node$parent8, _node$parent9, _node$parent10, _node$parent11, _node$parent12;
428
+ var _node$parent7, _node$parent8, _node$parent9, _node$parent0, _node$parent1, _node$parent10;
429
429
  var legacyButtonAttributes = node.parent && isNodeOfType(node.parent, 'JSXExpressionContainer') && (_node$parent7 = node.parent) !== null && _node$parent7 !== void 0 && _node$parent7.parent && isNodeOfType(node.parent.parent, 'JSXAttribute') && node.parent.parent.parent && isNodeOfType((_node$parent8 = node.parent) === null || _node$parent8 === void 0 || (_node$parent8 = _node$parent8.parent) === null || _node$parent8 === void 0 ? void 0 : _node$parent8.parent, 'JSXOpeningElement') ? (_node$parent9 = node.parent) === null || _node$parent9 === void 0 || (_node$parent9 = _node$parent9.parent) === null || _node$parent9 === void 0 ? void 0 : _node$parent9.parent.attributes.map(function (attribute) {
430
430
  var _attribute$name;
431
431
  return isNodeOfType(attribute, 'JSXAttribute') && isNodeOfType(attribute.name, 'JSXIdentifier') && (attribute === null || attribute === void 0 || (_attribute$name = attribute.name) === null || _attribute$name === void 0 ? void 0 : _attribute$name.name);
432
432
  }).filter(Boolean) : [];
433
433
  var hasIconBefore = legacyButtonAttributes.includes('iconBefore');
434
434
  var hasIconAfter = legacyButtonAttributes.includes('iconAfter');
435
- var hasChildren = ((_node$parent10 = node.parent) === null || _node$parent10 === void 0 || (_node$parent10 = _node$parent10.parent) === null || _node$parent10 === void 0 || (_node$parent10 = _node$parent10.parent) === null || _node$parent10 === void 0 ? void 0 : _node$parent10.parent) && isNodeOfType((_node$parent11 = node.parent) === null || _node$parent11 === void 0 || (_node$parent11 = _node$parent11.parent) === null || _node$parent11 === void 0 || (_node$parent11 = _node$parent11.parent) === null || _node$parent11 === void 0 ? void 0 : _node$parent11.parent, 'JSXElement') && ((_node$parent12 = node.parent) === null || _node$parent12 === void 0 || (_node$parent12 = _node$parent12.parent) === null || _node$parent12 === void 0 || (_node$parent12 = _node$parent12.parent) === null || _node$parent12 === void 0 ? void 0 : _node$parent12.parent.children.length) > 0;
435
+ var hasChildren = ((_node$parent0 = node.parent) === null || _node$parent0 === void 0 || (_node$parent0 = _node$parent0.parent) === null || _node$parent0 === void 0 || (_node$parent0 = _node$parent0.parent) === null || _node$parent0 === void 0 ? void 0 : _node$parent0.parent) && isNodeOfType((_node$parent1 = node.parent) === null || _node$parent1 === void 0 || (_node$parent1 = _node$parent1.parent) === null || _node$parent1 === void 0 || (_node$parent1 = _node$parent1.parent) === null || _node$parent1 === void 0 ? void 0 : _node$parent1.parent, 'JSXElement') && ((_node$parent10 = node.parent) === null || _node$parent10 === void 0 || (_node$parent10 = _node$parent10.parent) === null || _node$parent10 === void 0 || (_node$parent10 = _node$parent10.parent) === null || _node$parent10 === void 0 ? void 0 : _node$parent10.parent.children.length) > 0;
436
436
  if (hasIconBefore && !hasIconAfter && !hasChildren || !hasIconBefore && hasIconAfter && !hasChildren || !hasIconBefore && !hasIconAfter && hasChildren) {
437
437
  insideIconOnlyLegacyButton = true;
438
438
  }
@@ -661,15 +661,15 @@ export var throwManualErrors = function throwManualErrors(_ref9) {
661
661
  };
662
662
 
663
663
  // Loops through automatic errors and them after adding the required suggestion/fix
664
- export var throwAutoErrors = function throwAutoErrors(_ref10) {
665
- var errorsManual = _ref10.errorsManual,
666
- errorsAuto = _ref10.errorsAuto,
667
- iconSizesInfo = _ref10.iconSizesInfo,
668
- legacyIconImports = _ref10.legacyIconImports,
669
- guidance = _ref10.guidance,
670
- migrationIconImports = _ref10.migrationIconImports,
671
- shouldUseMigrationPath = _ref10.shouldUseMigrationPath,
672
- context = _ref10.context;
664
+ export var throwAutoErrors = function throwAutoErrors(_ref0) {
665
+ var errorsManual = _ref0.errorsManual,
666
+ errorsAuto = _ref0.errorsAuto,
667
+ iconSizesInfo = _ref0.iconSizesInfo,
668
+ legacyIconImports = _ref0.legacyIconImports,
669
+ guidance = _ref0.guidance,
670
+ migrationIconImports = _ref0.migrationIconImports,
671
+ shouldUseMigrationPath = _ref0.shouldUseMigrationPath,
672
+ context = _ref0.context;
673
673
  // Set of all the import sources that have manual errors (required later to check if a source has both manual and auto
674
674
  // errors in one file making it impossible to just remove the legacy import)
675
675
  var allManualErrorSources = Object.entries(errorsManual).reduce(function (result, option) {
@@ -52,18 +52,21 @@ var getKeyValue = function getKeyValue(node, context) {
52
52
  }
53
53
  return '';
54
54
  };
55
- var isWidthMediaQuery = function isWidthMediaQuery(rawSelector) {
56
- var selectors = parseSelector(rawSelector);
57
- if (selectors[0].startsWith('@')) {
58
- // If the selector includes a min-width/max-width query, return false - the primitives media object should be used instead:
59
- // https://staging.atlassian.design/components/primitives/responsive/breakpoints/examples
60
- // Otherwise return true, non-width queries are acceptable
61
- return selectors.some(function (selector) {
62
- return selector.includes('min-width') || selector.includes('max-width');
63
- });
64
- }
65
- return false;
66
- };
55
+
56
+ // const isWidthMediaQuery = (rawSelector: string): boolean => {
57
+ // const selectors = parseSelector(rawSelector);
58
+
59
+ // if (selectors[0].startsWith('@')) {
60
+ // // If the selector includes a min-width/max-width query, return false - the primitives media object should be used instead:
61
+ // // https://staging.atlassian.design/components/primitives/responsive/breakpoints/examples
62
+ // // Otherwise return true, non-width queries are acceptable
63
+ // return selectors.some(
64
+ // (selector) => selector.includes('min-width') || selector.includes('max-width'),
65
+ // );
66
+ // }
67
+ // return false;
68
+ // };
69
+
67
70
  var isAllowedNestedSelector = function isAllowedNestedSelector(rawSelector) {
68
71
  if (rawSelector.trim() === '&') {
69
72
  // This can be written without the nest.
@@ -95,7 +98,8 @@ var rule = createLintRule({
95
98
  severity: 'error'
96
99
  },
97
100
  messages: {
98
- noWidthQueries: 'Media queries that target min-width or max-width are not allowed. Use the media object provided by the Atlassian Design System instead. https://staging.atlassian.design/components/primitives/responsive/breakpoints/examples',
101
+ // noWidthQueries:
102
+ // 'Media queries that target min-width or max-width are not allowed. Use the media object provided by the Atlassian Design System instead. https://staging.atlassian.design/components/primitives/responsive/breakpoints/examples',
99
103
  noNestedStyles: 'Nested styles are not allowed as they can change unexpectedly when child markup changes and result in duplicates when extracting to CSS.',
100
104
  noDirectNestedStyles: "Styles applied with data attributes are not allowed, split them into discrete CSS declarations and apply them conditionally with JavaScript.\n\n```\nconst disabledStyles = css({ opacity: 0.5 });\n\n<div css={isDisabled && disabledStyles} />\n```\n"
101
105
  }
@@ -113,13 +117,16 @@ var rule = createLintRule({
113
117
  });
114
118
  return;
115
119
  }
116
- if (isWidthMediaQuery(getKeyValue(node.key, context))) {
117
- context.report({
118
- node: node,
119
- messageId: 'noWidthQueries'
120
- });
121
- return;
122
- }
120
+
121
+ // if (isWidthMediaQuery(getKeyValue(node.key as Rule.Node, context))) {
122
+ // context.report({
123
+ // node,
124
+ // messageId: 'noWidthQueries',
125
+ // });
126
+
127
+ // return;
128
+ // }
129
+
123
130
  if (!isAllowedNestedSelector(getKeyValue(node.key, context))) {
124
131
  context.report({
125
132
  node: node,
@@ -16,6 +16,7 @@ export declare const plugin: {
16
16
  };
17
17
  rules: {
18
18
  'consistent-css-prop-usage': import("eslint").Rule.RuleModule;
19
+ 'enforce-inline-styles-in-select': import("eslint").Rule.RuleModule;
19
20
  'ensure-design-token-usage': import("eslint").Rule.RuleModule;
20
21
  'ensure-design-token-usage/preview': import("eslint").Rule.RuleModule;
21
22
  'ensure-icon-color': import("eslint").Rule.RuleModule;
@@ -84,6 +85,7 @@ export declare const plugin: {
84
85
  plugins: string[];
85
86
  rules: {
86
87
  '@atlaskit/design-system/consistent-css-prop-usage': "error";
88
+ '@atlaskit/design-system/enforce-inline-styles-in-select': "error";
87
89
  '@atlaskit/design-system/ensure-design-token-usage': "error";
88
90
  '@atlaskit/design-system/ensure-design-token-usage/preview': "warn";
89
91
  '@atlaskit/design-system/ensure-icon-color': "error";
@@ -153,6 +155,7 @@ export declare const plugin: {
153
155
  };
154
156
  rules: {
155
157
  '@atlaskit/design-system/consistent-css-prop-usage': "error";
158
+ '@atlaskit/design-system/enforce-inline-styles-in-select': "error";
156
159
  '@atlaskit/design-system/ensure-design-token-usage': "error";
157
160
  '@atlaskit/design-system/ensure-design-token-usage/preview': "warn";
158
161
  '@atlaskit/design-system/ensure-icon-color': "error";
@@ -323,6 +326,7 @@ declare const configs: {
323
326
  plugins: string[];
324
327
  rules: {
325
328
  '@atlaskit/design-system/consistent-css-prop-usage': "error";
329
+ '@atlaskit/design-system/enforce-inline-styles-in-select': "error";
326
330
  '@atlaskit/design-system/ensure-design-token-usage': "error";
327
331
  '@atlaskit/design-system/ensure-design-token-usage/preview': "warn";
328
332
  '@atlaskit/design-system/ensure-icon-color': "error";
@@ -392,6 +396,7 @@ declare const configs: {
392
396
  };
393
397
  rules: {
394
398
  '@atlaskit/design-system/consistent-css-prop-usage': "error";
399
+ '@atlaskit/design-system/enforce-inline-styles-in-select': "error";
395
400
  '@atlaskit/design-system/ensure-design-token-usage': "error";
396
401
  '@atlaskit/design-system/ensure-design-token-usage/preview': "warn";
397
402
  '@atlaskit/design-system/ensure-icon-color': "error";
@@ -2,6 +2,7 @@ declare const _default: {
2
2
  plugins: {};
3
3
  rules: {
4
4
  '@atlaskit/design-system/consistent-css-prop-usage': "error";
5
+ '@atlaskit/design-system/enforce-inline-styles-in-select': "error";
5
6
  '@atlaskit/design-system/ensure-design-token-usage': "error";
6
7
  '@atlaskit/design-system/ensure-design-token-usage/preview': "warn";
7
8
  '@atlaskit/design-system/ensure-icon-color': "error";
@@ -2,6 +2,7 @@ declare const _default: {
2
2
  plugins: string[];
3
3
  rules: {
4
4
  '@atlaskit/design-system/consistent-css-prop-usage': "error";
5
+ '@atlaskit/design-system/enforce-inline-styles-in-select': "error";
5
6
  '@atlaskit/design-system/ensure-design-token-usage': "error";
6
7
  '@atlaskit/design-system/ensure-design-token-usage/preview': "warn";
7
8
  '@atlaskit/design-system/ensure-icon-color': "error";
@@ -0,0 +1,3 @@
1
+ import type { Rule } from 'eslint';
2
+ declare const rule: Rule.RuleModule;
3
+ export default rule;
@@ -0,0 +1,2 @@
1
+ import type { Rule } from 'eslint';
2
+ export declare function checkStylesObject(node: Rule.Node, stylesValue: any, context: Rule.RuleContext): void;
@@ -1,5 +1,6 @@
1
1
  export declare const rules: {
2
2
  'consistent-css-prop-usage': import("eslint").Rule.RuleModule;
3
+ 'enforce-inline-styles-in-select': import("eslint").Rule.RuleModule;
3
4
  'ensure-design-token-usage': import("eslint").Rule.RuleModule;
4
5
  'ensure-design-token-usage/preview': import("eslint").Rule.RuleModule;
5
6
  'ensure-icon-color': import("eslint").Rule.RuleModule;
@@ -16,6 +16,7 @@ export declare const plugin: {
16
16
  };
17
17
  rules: {
18
18
  'consistent-css-prop-usage': import("eslint").Rule.RuleModule;
19
+ 'enforce-inline-styles-in-select': import("eslint").Rule.RuleModule;
19
20
  'ensure-design-token-usage': import("eslint").Rule.RuleModule;
20
21
  'ensure-design-token-usage/preview': import("eslint").Rule.RuleModule;
21
22
  'ensure-icon-color': import("eslint").Rule.RuleModule;
@@ -84,6 +85,7 @@ export declare const plugin: {
84
85
  plugins: string[];
85
86
  rules: {
86
87
  '@atlaskit/design-system/consistent-css-prop-usage': "error";
88
+ '@atlaskit/design-system/enforce-inline-styles-in-select': "error";
87
89
  '@atlaskit/design-system/ensure-design-token-usage': "error";
88
90
  '@atlaskit/design-system/ensure-design-token-usage/preview': "warn";
89
91
  '@atlaskit/design-system/ensure-icon-color': "error";
@@ -156,6 +158,7 @@ export declare const plugin: {
156
158
  };
157
159
  rules: {
158
160
  '@atlaskit/design-system/consistent-css-prop-usage': "error";
161
+ '@atlaskit/design-system/enforce-inline-styles-in-select': "error";
159
162
  '@atlaskit/design-system/ensure-design-token-usage': "error";
160
163
  '@atlaskit/design-system/ensure-design-token-usage/preview': "warn";
161
164
  '@atlaskit/design-system/ensure-icon-color': "error";
@@ -335,6 +338,7 @@ declare const configs: {
335
338
  plugins: string[];
336
339
  rules: {
337
340
  '@atlaskit/design-system/consistent-css-prop-usage': "error";
341
+ '@atlaskit/design-system/enforce-inline-styles-in-select': "error";
338
342
  '@atlaskit/design-system/ensure-design-token-usage': "error";
339
343
  '@atlaskit/design-system/ensure-design-token-usage/preview': "warn";
340
344
  '@atlaskit/design-system/ensure-icon-color': "error";
@@ -407,6 +411,7 @@ declare const configs: {
407
411
  };
408
412
  rules: {
409
413
  '@atlaskit/design-system/consistent-css-prop-usage': "error";
414
+ '@atlaskit/design-system/enforce-inline-styles-in-select': "error";
410
415
  '@atlaskit/design-system/ensure-design-token-usage': "error";
411
416
  '@atlaskit/design-system/ensure-design-token-usage/preview': "warn";
412
417
  '@atlaskit/design-system/ensure-icon-color': "error";
@@ -2,6 +2,7 @@ declare const _default: {
2
2
  plugins: {};
3
3
  rules: {
4
4
  '@atlaskit/design-system/consistent-css-prop-usage': "error";
5
+ '@atlaskit/design-system/enforce-inline-styles-in-select': "error";
5
6
  '@atlaskit/design-system/ensure-design-token-usage': "error";
6
7
  '@atlaskit/design-system/ensure-design-token-usage/preview': "warn";
7
8
  '@atlaskit/design-system/ensure-icon-color': "error";
@@ -2,6 +2,7 @@ declare const _default: {
2
2
  plugins: string[];
3
3
  rules: {
4
4
  '@atlaskit/design-system/consistent-css-prop-usage': "error";
5
+ '@atlaskit/design-system/enforce-inline-styles-in-select': "error";
5
6
  '@atlaskit/design-system/ensure-design-token-usage': "error";
6
7
  '@atlaskit/design-system/ensure-design-token-usage/preview': "warn";
7
8
  '@atlaskit/design-system/ensure-icon-color': "error";
@@ -0,0 +1,3 @@
1
+ import type { Rule } from 'eslint';
2
+ declare const rule: Rule.RuleModule;
3
+ export default rule;
@@ -0,0 +1,2 @@
1
+ import type { Rule } from 'eslint';
2
+ export declare function checkStylesObject(node: Rule.Node, stylesValue: any, context: Rule.RuleContext): void;
@@ -1,5 +1,6 @@
1
1
  export declare const rules: {
2
2
  'consistent-css-prop-usage': import("eslint").Rule.RuleModule;
3
+ 'enforce-inline-styles-in-select': import("eslint").Rule.RuleModule;
3
4
  'ensure-design-token-usage': import("eslint").Rule.RuleModule;
4
5
  'ensure-design-token-usage/preview': import("eslint").Rule.RuleModule;
5
6
  'ensure-icon-color': import("eslint").Rule.RuleModule;
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.17.1",
4
+ "version": "13.17.3",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
7
7
  "publishConfig": {
@@ -44,9 +44,9 @@
44
44
  },
45
45
  "dependencies": {
46
46
  "@atlaskit/eslint-utils": "^2.0.0",
47
- "@atlaskit/icon": "^26.4.0",
48
- "@atlaskit/icon-lab": "^4.17.0",
49
- "@atlaskit/tokens": "^4.9.0",
47
+ "@atlaskit/icon": "^27.0.0",
48
+ "@atlaskit/icon-lab": "^5.0.0",
49
+ "@atlaskit/tokens": "^5.2.0",
50
50
  "@babel/runtime": "^7.0.0",
51
51
  "@typescript-eslint/utils": "^7.1.0",
52
52
  "ajv": "^6.12.6",