@atlaskit/eslint-plugin-design-system 10.3.0 → 10.3.1

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 (89) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/cjs/rules/use-tokens-typography/transformers/style-object.js +11 -0
  3. package/dist/es2019/rules/use-tokens-typography/transformers/style-object.js +12 -1
  4. package/dist/esm/rules/use-tokens-typography/transformers/style-object.js +11 -0
  5. package/dist/types/ast-nodes/function-call.d.ts +1 -1
  6. package/dist/types/ast-nodes/jsx-attribute.d.ts +1 -1
  7. package/dist/types/ast-nodes/jsx-element.d.ts +1 -1
  8. package/dist/types/ast-nodes/object-entry.d.ts +1 -1
  9. package/dist/types/ast-nodes/object.d.ts +1 -1
  10. package/dist/types/ast-nodes/root.d.ts +1 -1
  11. package/dist/types/rules/ensure-design-token-usage/color.d.ts +1 -1
  12. package/dist/types/rules/ensure-design-token-usage/error-boundary.d.ts +1 -1
  13. package/dist/types/rules/ensure-design-token-usage/shape.d.ts +1 -1
  14. package/dist/types/rules/ensure-design-token-usage/spacing.d.ts +1 -1
  15. package/dist/types/rules/ensure-design-token-usage/utils.d.ts +2 -2
  16. package/dist/types/rules/no-deprecated-apis/index.d.ts +2 -2
  17. package/dist/types/rules/no-deprecated-imports/index.d.ts +2 -2
  18. package/dist/types/rules/no-direct-use-of-web-platform-drag-and-drop/checks/is-blocked-add-event-listener.d.ts +1 -1
  19. package/dist/types/rules/no-direct-use-of-web-platform-drag-and-drop/checks/is-blocked-bind-all.d.ts +1 -1
  20. package/dist/types/rules/no-direct-use-of-web-platform-drag-and-drop/checks/is-blocked-bind.d.ts +1 -1
  21. package/dist/types/rules/no-direct-use-of-web-platform-drag-and-drop/checks/is-blocked-jsx-attribute.d.ts +1 -1
  22. package/dist/types/rules/no-direct-use-of-web-platform-drag-and-drop/shared/is-blocked-event-binding.d.ts +1 -1
  23. package/dist/types/rules/use-heading/transformers/common.d.ts +2 -2
  24. package/dist/types/rules/use-href-in-link-item/utils.d.ts +1 -1
  25. package/dist/types/rules/use-primitives/transformers/compiled-styled/convert-jsx-call-site.d.ts +1 -1
  26. package/dist/types/rules/use-primitives/transformers/compiled-styled/convert-styled-component-call-to-jsx.d.ts +1 -1
  27. package/dist/types/rules/use-primitives/transformers/compiled-styled/find-valid-jsx-usage-to-transform.d.ts +1 -1
  28. package/dist/types/rules/use-primitives/transformers/compiled-styled/index.d.ts +2 -2
  29. package/dist/types/rules/use-primitives/transformers/emotion-css/index.d.ts +2 -2
  30. package/dist/types/rules/use-primitives/utils/convert-ast-object-expression-to-js-object.d.ts +1 -1
  31. package/dist/types/rules/use-primitives/utils/get-attribute-value-identifier.d.ts +1 -1
  32. package/dist/types/rules/use-primitives/utils/get-jsx-attribute-by-name.d.ts +1 -1
  33. package/dist/types/rules/use-primitives/utils/is-valid-css-properties-to-transform.d.ts +2 -2
  34. package/dist/types/rules/use-primitives/utils/update-jsx-attribute-by-name.d.ts +1 -1
  35. package/dist/types/rules/use-primitives/utils/validate-styles.d.ts +2 -2
  36. package/dist/types/rules/use-primitives-text/transformers/common.d.ts +2 -2
  37. package/dist/types/rules/use-tokens-space/transformers/style-property/index.d.ts +1 -1
  38. package/dist/types/rules/use-tokens-typography/config/index.d.ts +1 -1
  39. package/dist/types/rules/use-tokens-typography/error-boundary.d.ts +1 -1
  40. package/dist/types/rules/use-tokens-typography/transformers/style-object.d.ts +3 -3
  41. package/dist/types/rules/use-tokens-typography/utils.d.ts +1 -1
  42. package/dist/types/rules/use-visually-hidden/utils.d.ts +1 -1
  43. package/dist/types/rules/utils/create-no-exported-rule/check-if-supported-export.d.ts +1 -1
  44. package/dist/types/rules/utils/create-no-tagged-template-expression-rule/index.d.ts +1 -1
  45. package/dist/types/rules/utils/get-first-supported-import.d.ts +2 -2
  46. package/dist/types/rules/utils/is-elevation.d.ts +1 -1
  47. package/dist/types-ts4.5/ast-nodes/function-call.d.ts +1 -1
  48. package/dist/types-ts4.5/ast-nodes/jsx-attribute.d.ts +1 -1
  49. package/dist/types-ts4.5/ast-nodes/jsx-element.d.ts +1 -1
  50. package/dist/types-ts4.5/ast-nodes/object-entry.d.ts +1 -1
  51. package/dist/types-ts4.5/ast-nodes/object.d.ts +1 -1
  52. package/dist/types-ts4.5/ast-nodes/root.d.ts +1 -1
  53. package/dist/types-ts4.5/rules/ensure-design-token-usage/color.d.ts +1 -1
  54. package/dist/types-ts4.5/rules/ensure-design-token-usage/error-boundary.d.ts +1 -1
  55. package/dist/types-ts4.5/rules/ensure-design-token-usage/shape.d.ts +1 -1
  56. package/dist/types-ts4.5/rules/ensure-design-token-usage/spacing.d.ts +1 -1
  57. package/dist/types-ts4.5/rules/ensure-design-token-usage/utils.d.ts +2 -2
  58. package/dist/types-ts4.5/rules/no-deprecated-apis/index.d.ts +2 -2
  59. package/dist/types-ts4.5/rules/no-deprecated-imports/index.d.ts +2 -2
  60. package/dist/types-ts4.5/rules/no-direct-use-of-web-platform-drag-and-drop/checks/is-blocked-add-event-listener.d.ts +1 -1
  61. package/dist/types-ts4.5/rules/no-direct-use-of-web-platform-drag-and-drop/checks/is-blocked-bind-all.d.ts +1 -1
  62. package/dist/types-ts4.5/rules/no-direct-use-of-web-platform-drag-and-drop/checks/is-blocked-bind.d.ts +1 -1
  63. package/dist/types-ts4.5/rules/no-direct-use-of-web-platform-drag-and-drop/checks/is-blocked-jsx-attribute.d.ts +1 -1
  64. package/dist/types-ts4.5/rules/no-direct-use-of-web-platform-drag-and-drop/shared/is-blocked-event-binding.d.ts +1 -1
  65. package/dist/types-ts4.5/rules/use-heading/transformers/common.d.ts +2 -2
  66. package/dist/types-ts4.5/rules/use-href-in-link-item/utils.d.ts +1 -1
  67. package/dist/types-ts4.5/rules/use-primitives/transformers/compiled-styled/convert-jsx-call-site.d.ts +1 -1
  68. package/dist/types-ts4.5/rules/use-primitives/transformers/compiled-styled/convert-styled-component-call-to-jsx.d.ts +1 -1
  69. package/dist/types-ts4.5/rules/use-primitives/transformers/compiled-styled/find-valid-jsx-usage-to-transform.d.ts +1 -1
  70. package/dist/types-ts4.5/rules/use-primitives/transformers/compiled-styled/index.d.ts +2 -2
  71. package/dist/types-ts4.5/rules/use-primitives/transformers/emotion-css/index.d.ts +2 -2
  72. package/dist/types-ts4.5/rules/use-primitives/utils/convert-ast-object-expression-to-js-object.d.ts +1 -1
  73. package/dist/types-ts4.5/rules/use-primitives/utils/get-attribute-value-identifier.d.ts +1 -1
  74. package/dist/types-ts4.5/rules/use-primitives/utils/get-jsx-attribute-by-name.d.ts +1 -1
  75. package/dist/types-ts4.5/rules/use-primitives/utils/is-valid-css-properties-to-transform.d.ts +2 -2
  76. package/dist/types-ts4.5/rules/use-primitives/utils/update-jsx-attribute-by-name.d.ts +1 -1
  77. package/dist/types-ts4.5/rules/use-primitives/utils/validate-styles.d.ts +2 -2
  78. package/dist/types-ts4.5/rules/use-primitives-text/transformers/common.d.ts +2 -2
  79. package/dist/types-ts4.5/rules/use-tokens-space/transformers/style-property/index.d.ts +1 -1
  80. package/dist/types-ts4.5/rules/use-tokens-typography/config/index.d.ts +1 -1
  81. package/dist/types-ts4.5/rules/use-tokens-typography/error-boundary.d.ts +1 -1
  82. package/dist/types-ts4.5/rules/use-tokens-typography/transformers/style-object.d.ts +3 -3
  83. package/dist/types-ts4.5/rules/use-tokens-typography/utils.d.ts +1 -1
  84. package/dist/types-ts4.5/rules/use-visually-hidden/utils.d.ts +1 -1
  85. package/dist/types-ts4.5/rules/utils/create-no-exported-rule/check-if-supported-export.d.ts +1 -1
  86. package/dist/types-ts4.5/rules/utils/create-no-tagged-template-expression-rule/index.d.ts +1 -1
  87. package/dist/types-ts4.5/rules/utils/get-first-supported-import.d.ts +2 -2
  88. package/dist/types-ts4.5/rules/utils/is-elevation.d.ts +1 -1
  89. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  # @atlaskit/eslint-plugin-design-system
2
2
 
3
+ ## 10.3.1
4
+
5
+ ### Patch Changes
6
+
7
+ - [#102908](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/pull-requests/102908)
8
+ [`b08bb74e2894`](https://stash.atlassian.com/projects/CONFCLOUD/repos/confluence-frontend/commits/b08bb74e2894) -
9
+ Fixed an issue with the `use-tokens-typography` rule where font weights that were already using
10
+ a token could break the token matching logic and cause the font weight property to be removed.
11
+
3
12
  ## 10.3.0
4
13
 
5
14
  ### Minor Changes
@@ -44,6 +44,17 @@ var StyleObject = exports.StyleObject = {
44
44
  var fontWeightNode = _astNodes.Object.getEntryByPropertyName(node, 'fontWeight');
45
45
  var fontWeightRaw = fontWeightNode && (0, _utils.getValueForPropertyNode)(fontWeightNode, context);
46
46
 
47
+ // If fontWeightRaw is a token we find the token name and treat it like a raw value for simplicity.
48
+ // e.g. token('font.weight.bold', '700') ends up as '700' after this if-block.
49
+ // That way the token matching logic still runs and the font weight declaration can be removed and re-added after the main font token.
50
+ if (fontWeightRaw && typeof fontWeightRaw === 'string' && fontWeightRaw.includes('font.weight.')) {
51
+ var _fontWeightRaw$match;
52
+ var fontWeightTokenSuffix = ((_fontWeightRaw$match = fontWeightRaw.match(/font\.weight\.(\w*)/)) === null || _fontWeightRaw$match === void 0 ? void 0 : _fontWeightRaw$match[1]) || 'regular'; // ${token('font.weight.bold', '700')} -> 'bold'
53
+ if (Object.keys(_utils2.fontWeightMap).includes(fontWeightTokenSuffix)) {
54
+ fontWeightRaw = _utils2.fontWeightMap[fontWeightTokenSuffix];
55
+ }
56
+ }
57
+
47
58
  // If no fontWeight value exists, default to 400 to avoid matching with a bolder token resulting in a visual change
48
59
  var fontWeightValue = fontWeightRaw && (0, _utils.normaliseValue)('fontWeight', fontWeightRaw) || _utils2.defaultFontWeight;
49
60
  fontWeightValue = fontWeightValue.length === 3 ? fontWeightValue : _utils2.fontWeightMap[fontWeightValue] || _utils2.defaultFontWeight;
@@ -40,7 +40,18 @@ export const StyleObject = {
40
40
 
41
41
  // -- Font weight --
42
42
  const fontWeightNode = ASTObject.getEntryByPropertyName(node, 'fontWeight');
43
- const fontWeightRaw = fontWeightNode && getValueForPropertyNode(fontWeightNode, context);
43
+ let fontWeightRaw = fontWeightNode && getValueForPropertyNode(fontWeightNode, context);
44
+
45
+ // If fontWeightRaw is a token we find the token name and treat it like a raw value for simplicity.
46
+ // e.g. token('font.weight.bold', '700') ends up as '700' after this if-block.
47
+ // That way the token matching logic still runs and the font weight declaration can be removed and re-added after the main font token.
48
+ if (fontWeightRaw && typeof fontWeightRaw === 'string' && fontWeightRaw.includes('font.weight.')) {
49
+ var _fontWeightRaw$match;
50
+ const fontWeightTokenSuffix = ((_fontWeightRaw$match = fontWeightRaw.match(/font\.weight\.(\w*)/)) === null || _fontWeightRaw$match === void 0 ? void 0 : _fontWeightRaw$match[1]) || 'regular'; // ${token('font.weight.bold', '700')} -> 'bold'
51
+ if (Object.keys(fontWeightMap).includes(fontWeightTokenSuffix)) {
52
+ fontWeightRaw = fontWeightMap[fontWeightTokenSuffix];
53
+ }
54
+ }
44
55
 
45
56
  // If no fontWeight value exists, default to 400 to avoid matching with a bolder token resulting in a visual change
46
57
  let fontWeightValue = fontWeightRaw && normaliseValue('fontWeight', fontWeightRaw) || defaultFontWeight;
@@ -38,6 +38,17 @@ export var StyleObject = {
38
38
  var fontWeightNode = ASTObject.getEntryByPropertyName(node, 'fontWeight');
39
39
  var fontWeightRaw = fontWeightNode && getValueForPropertyNode(fontWeightNode, context);
40
40
 
41
+ // If fontWeightRaw is a token we find the token name and treat it like a raw value for simplicity.
42
+ // e.g. token('font.weight.bold', '700') ends up as '700' after this if-block.
43
+ // That way the token matching logic still runs and the font weight declaration can be removed and re-added after the main font token.
44
+ if (fontWeightRaw && typeof fontWeightRaw === 'string' && fontWeightRaw.includes('font.weight.')) {
45
+ var _fontWeightRaw$match;
46
+ var fontWeightTokenSuffix = ((_fontWeightRaw$match = fontWeightRaw.match(/font\.weight\.(\w*)/)) === null || _fontWeightRaw$match === void 0 ? void 0 : _fontWeightRaw$match[1]) || 'regular'; // ${token('font.weight.bold', '700')} -> 'bold'
47
+ if (Object.keys(fontWeightMap).includes(fontWeightTokenSuffix)) {
48
+ fontWeightRaw = fontWeightMap[fontWeightTokenSuffix];
49
+ }
50
+ }
51
+
41
52
  // If no fontWeight value exists, default to 400 to avoid matching with a bolder token resulting in a visual change
42
53
  var fontWeightValue = fontWeightRaw && normaliseValue('fontWeight', fontWeightRaw) || defaultFontWeight;
43
54
  fontWeightValue = fontWeightValue.length === 3 ? fontWeightValue : fontWeightMap[fontWeightValue] || defaultFontWeight;
@@ -1,5 +1,5 @@
1
1
  import type { Rule } from 'eslint';
2
- import { CallExpression, ObjectExpression } from 'eslint-codemod-utils';
2
+ import { type CallExpression, type ObjectExpression } from 'eslint-codemod-utils';
3
3
  export declare const FunctionCall: {
4
4
  getName(node: CallExpression): string | undefined;
5
5
  updateName(node: CallExpression, newName: string, fixer: Rule.RuleFixer): Rule.Fix;
@@ -1,5 +1,5 @@
1
1
  import type { Rule } from 'eslint';
2
- import { JSXAttribute } from 'eslint-codemod-utils';
2
+ import { type JSXAttribute } from 'eslint-codemod-utils';
3
3
  declare const HelperJSXAttribute: {
4
4
  getName(node: JSXAttribute): string;
5
5
  updateName(node: JSXAttribute, name: string, fixer: Rule.RuleFixer): Rule.Fix;
@@ -1,5 +1,5 @@
1
1
  import type { Rule } from 'eslint';
2
- import { JSXAttribute, JSXElement, JSXFragment, JSXSpreadAttribute } from 'eslint-codemod-utils';
2
+ import { type JSXAttribute, type JSXElement, type JSXFragment, type JSXSpreadAttribute } from 'eslint-codemod-utils';
3
3
  export declare const JSXElementHelper: {
4
4
  /**
5
5
  * Names of JSXElements can be any of:
@@ -1,5 +1,5 @@
1
1
  import type { Rule } from 'eslint';
2
- import { Property, SpreadElement } from 'eslint-codemod-utils';
2
+ import { type Property, type SpreadElement } from 'eslint-codemod-utils';
3
3
  export declare const ObjectEntry: {
4
4
  getProperty(node: Property): {
5
5
  type: 'Identifier';
@@ -1,5 +1,5 @@
1
1
  import type { Rule } from 'eslint';
2
- import { ObjectExpression, Property, SpreadElement } from 'eslint-codemod-utils';
2
+ import { type ObjectExpression, type Property, type SpreadElement } from 'eslint-codemod-utils';
3
3
  declare const ASTObjectExpression: {
4
4
  /**
5
5
  * Returns `true` if an object contains a property with the specified name, `false` otherwise.
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  import type { Rule } from 'eslint';
3
- import { Directive, ImportDeclaration, insertImportDeclaration, ModuleDeclaration, Statement } from 'eslint-codemod-utils';
3
+ import { type Directive, type ImportDeclaration, insertImportDeclaration, type ModuleDeclaration, type Statement } from 'eslint-codemod-utils';
4
4
  type ImportData = Parameters<typeof insertImportDeclaration>[1];
5
5
  export declare const Root: {
6
6
  /**
@@ -1,5 +1,5 @@
1
1
  import type { Rule } from 'eslint';
2
- import { Property } from 'eslint-codemod-utils';
2
+ import { type Property } from 'eslint-codemod-utils';
3
3
  import { isLegacyElevation } from '../utils/is-elevation';
4
4
  import type { RuleConfig } from './types';
5
5
  type Suggestion = {
@@ -1,4 +1,4 @@
1
- import { RuleConfig } from './types';
1
+ import { type RuleConfig } from './types';
2
2
  /**
3
3
  * ESLint rules should NEVER throw exceptions, because that breaks the VSCode ESLint server
4
4
  * (and probably the IntelliJ one too), which causes linting to fail in a file.
@@ -1,4 +1,4 @@
1
- import { EslintNode } from 'eslint-codemod-utils';
1
+ import { type EslintNode } from 'eslint-codemod-utils';
2
2
  export declare const radiusValueToToken: any;
3
3
  export declare const borderWidthValueToToken: any;
4
4
  export declare function isRadiusProperty(propertyName: string): boolean;
@@ -1,4 +1,4 @@
1
1
  import type { Rule } from 'eslint';
2
- import { ImportDeclaration, Property } from 'eslint-codemod-utils';
2
+ import { type ImportDeclaration, type Property } from 'eslint-codemod-utils';
3
3
  import type { RuleConfig } from './types';
4
4
  export declare const lintObjectForSpacing: (node: Property, context: Rule.RuleContext, ruleConfig: RuleConfig, fontSize: any, tokenNode: ImportDeclaration | null) => void;
@@ -1,6 +1,6 @@
1
1
  import type { Rule } from 'eslint';
2
- import { EslintNode, ObjectExpression, Property, SpreadElement, TaggedTemplateExpression } from 'eslint-codemod-utils';
3
- import { Domains } from './types';
2
+ import { type EslintNode, type ObjectExpression, type Property, type SpreadElement, type TaggedTemplateExpression } from 'eslint-codemod-utils';
3
+ import { type Domains } from './types';
4
4
  export type ProcessedCSSLines = [string, string][];
5
5
  export declare function insertTokensImport(fixer: Rule.RuleFixer): Rule.Fix;
6
6
  export declare const isSpacingProperty: (propertyName: string) => boolean;
@@ -1,5 +1,5 @@
1
- import { TSESLint } from '@typescript-eslint/utils';
2
- import { DeprecatedConfig } from '../utils/types';
1
+ import { type TSESLint } from '@typescript-eslint/utils';
2
+ import { type DeprecatedConfig } from '../utils/types';
3
3
  export declare const noDeprecatedJSXAttributeMessageId = "noDeprecatedJSXAttributes";
4
4
  export declare const name = "no-deprecated-apis";
5
5
  declare const rule: TSESLint.RuleModule<string, [{
@@ -24,8 +24,8 @@
24
24
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25
25
  * THE SOFTWARE.
26
26
  */
27
- import { TSESLint } from '@typescript-eslint/utils';
28
- import { DeprecatedConfig } from '../utils/types';
27
+ import { type TSESLint } from '@typescript-eslint/utils';
28
+ import { type DeprecatedConfig } from '../utils/types';
29
29
  export declare const name = "no-deprecated-imports";
30
30
  export declare const importNameWithCustomMessageId = "importNameWithCustomMessage";
31
31
  export declare const pathWithCustomMessageId = "pathWithCustomMessage";
@@ -1,2 +1,2 @@
1
- import { CallExpression } from 'eslint-codemod-utils';
1
+ import { type CallExpression } from 'eslint-codemod-utils';
2
2
  export declare function isBlockedAddEventListener(node: CallExpression): boolean;
@@ -1,3 +1,3 @@
1
1
  import type { Rule } from 'eslint';
2
- import { CallExpression } from 'eslint-codemod-utils';
2
+ import { type CallExpression } from 'eslint-codemod-utils';
3
3
  export declare function isBlockedBindAll(context: Rule.RuleContext, node: CallExpression): boolean;
@@ -1,3 +1,3 @@
1
1
  import type { Rule } from 'eslint';
2
- import { CallExpression } from 'eslint-codemod-utils';
2
+ import { type CallExpression } from 'eslint-codemod-utils';
3
3
  export declare function isBlockedBind(context: Rule.RuleContext, node: CallExpression): boolean;
@@ -1,3 +1,3 @@
1
1
  import type { Rule } from 'eslint';
2
- import { JSXAttribute } from 'eslint-codemod-utils';
2
+ import { type JSXAttribute } from 'eslint-codemod-utils';
3
3
  export declare function isBlockedJSXAttribute(context: Rule.RuleContext, node: JSXAttribute): boolean;
@@ -1,2 +1,2 @@
1
- import { Property, SpreadElement } from 'eslint-codemod-utils';
1
+ import { type Property, type SpreadElement } from 'eslint-codemod-utils';
2
2
  export declare function isBlockedEventBinding(property: Property | SpreadElement): boolean;
@@ -1,6 +1,6 @@
1
1
  import type { Rule } from 'eslint';
2
- import { JSXElement } from 'eslint-codemod-utils';
3
- import { RuleConfig } from '../config';
2
+ import { type JSXElement } from 'eslint-codemod-utils';
3
+ import { type RuleConfig } from '../config';
4
4
  export type MetaData = {
5
5
  context: Rule.RuleContext;
6
6
  config: RuleConfig;
@@ -1,5 +1,5 @@
1
1
  import type { Rule, Scope } from 'eslint';
2
- import { ImportDeclaration, JSXAttribute } from 'eslint-codemod-utils';
2
+ import { type ImportDeclaration, type JSXAttribute } from 'eslint-codemod-utils';
3
3
  export declare const hrefHasInvalidValue: (scope: Scope.Scope, href: JSXAttribute | undefined) => boolean;
4
4
  export declare const hasImportOfName: (node: ImportDeclaration, name: string) => boolean;
5
5
  export declare const insertButtonItemDefaultImport: (fixer: Rule.RuleFixer, node: ImportDeclaration) => Rule.Fix;
@@ -1,5 +1,5 @@
1
1
  import type { Rule } from 'eslint';
2
- import { JSXElement } from 'eslint-codemod-utils';
2
+ import { type JSXElement } from 'eslint-codemod-utils';
3
3
  /**
4
4
  * Transforms a JSXElement from:
5
5
  * ```
@@ -1,5 +1,5 @@
1
1
  import type { Rule } from 'eslint';
2
- import { VariableDeclarator } from 'eslint-codemod-utils';
2
+ import { type VariableDeclarator } from 'eslint-codemod-utils';
3
3
  /**
4
4
  * Transforms a variable like:
5
5
  * ```
@@ -1,5 +1,5 @@
1
1
  import type { Rule, Scope } from 'eslint';
2
- import { JSXOpeningElement } from 'eslint-codemod-utils';
2
+ import { type JSXOpeningElement } from 'eslint-codemod-utils';
3
3
  /**
4
4
  * Given a component name finds its JSX usages and performs some
5
5
  * additional validations to ensure transformation can be done correctly
@@ -1,6 +1,6 @@
1
1
  import type { Rule } from 'eslint';
2
- import { JSXElement, VariableDeclarator } from 'eslint-codemod-utils';
3
- import { RuleConfig } from '../../config';
2
+ import { type JSXElement, type VariableDeclarator } from 'eslint-codemod-utils';
3
+ import { type RuleConfig } from '../../config';
4
4
  interface MetaData {
5
5
  context: Rule.RuleContext;
6
6
  config: RuleConfig;
@@ -1,6 +1,6 @@
1
1
  import type { Rule } from 'eslint';
2
- import { JSXElement } from 'eslint-codemod-utils';
3
- import { RuleConfig } from '../../config';
2
+ import { type JSXElement } from 'eslint-codemod-utils';
3
+ import { type RuleConfig } from '../../config';
4
4
  interface MetaData {
5
5
  context: Rule.RuleContext;
6
6
  config: RuleConfig;
@@ -1,6 +1,6 @@
1
1
  import type { CSSProperties } from 'react';
2
2
  import type { Rule } from 'eslint';
3
- import { ObjectExpression } from 'eslint-codemod-utils';
3
+ import { type ObjectExpression } from 'eslint-codemod-utils';
4
4
  export declare const SPREAD_SYNTAX: unique symbol;
5
5
  type Token = {
6
6
  tokenName: string;
@@ -1,4 +1,4 @@
1
- import { JSXAttribute } from 'eslint-codemod-utils';
1
+ import { type JSXAttribute } from 'eslint-codemod-utils';
2
2
  /**
3
3
  * Bit of a weird name, but the functionality is quite specific, so this is the best I could do.
4
4
  * This function looks at a JSXAttribute, and returns the string representation
@@ -1,2 +1,2 @@
1
- import { JSXAttribute, JSXOpeningElement } from 'eslint-codemod-utils';
1
+ import { type JSXAttribute, type JSXOpeningElement } from 'eslint-codemod-utils';
2
2
  export declare const getJSXAttributeByName: (node: JSXOpeningElement, attrName: string) => JSXAttribute | undefined;
@@ -1,4 +1,4 @@
1
1
  import type { Rule } from 'eslint';
2
- import { SimpleCallExpression } from 'eslint-codemod-utils';
3
- import { RuleConfig } from '../config';
2
+ import { type SimpleCallExpression } from 'eslint-codemod-utils';
3
+ import { type RuleConfig } from '../config';
4
4
  export declare const isValidCssPropertiesToTransform: (node: SimpleCallExpression & Rule.NodeParentExtension, config: RuleConfig) => boolean;
@@ -1,3 +1,3 @@
1
1
  import type { Rule } from 'eslint';
2
- import { JSXElement } from 'eslint-codemod-utils';
2
+ import { type JSXElement } from 'eslint-codemod-utils';
3
3
  export declare const updateJSXAttributeByName: (oldName: string, newName: string, node: JSXElement, fixer: Rule.RuleFixer) => Rule.Fix | never[];
@@ -1,3 +1,3 @@
1
- import { CallExpression } from 'eslint-codemod-utils';
2
- import { RuleConfig } from '../config';
1
+ import { type CallExpression } from 'eslint-codemod-utils';
2
+ import { type RuleConfig } from '../config';
3
3
  export declare const validateStyles: (node: CallExpression, config: RuleConfig) => boolean;
@@ -1,6 +1,6 @@
1
1
  import type { Rule } from 'eslint';
2
- import { JSXElement } from 'eslint-codemod-utils';
3
- import { RuleConfig } from '../config';
2
+ import { type JSXElement } from 'eslint-codemod-utils';
3
+ import { type RuleConfig } from '../config';
4
4
  export type MetaData = {
5
5
  context: Rule.RuleContext;
6
6
  config: RuleConfig;
@@ -1,5 +1,5 @@
1
1
  import type { Rule } from 'eslint';
2
- import { Property } from 'eslint-codemod-utils';
2
+ import { type Property } from 'eslint-codemod-utils';
3
3
  type Ref = {
4
4
  node: Property;
5
5
  token?: string;
@@ -1,4 +1,4 @@
1
- import { JSONSchema4 } from '@typescript-eslint/utils/dist/json-schema';
1
+ import { type JSONSchema4 } from '@typescript-eslint/utils/dist/json-schema';
2
2
  export type RuleConfig = {
3
3
  failSilently?: boolean;
4
4
  shouldEnforceFallbacks?: boolean;
@@ -1,4 +1,4 @@
1
- import { RuleConfig } from './config';
1
+ import { type RuleConfig } from './config';
2
2
  /**
3
3
  * ESLint rules should NEVER throw exceptions, because that breaks the VSCode ESLint server
4
4
  * (and probably the IntelliJ one too), which causes linting to fail in a file.
@@ -1,7 +1,7 @@
1
1
  import type { Rule } from 'eslint';
2
- import { ImportDeclaration, ObjectExpression, Property, StringableASTNode } from 'eslint-codemod-utils';
3
- import { RuleConfig } from '../config';
4
- import { TokenValueMap } from '../utils';
2
+ import { type ImportDeclaration, type ObjectExpression, type Property, type StringableASTNode } from 'eslint-codemod-utils';
3
+ import { type RuleConfig } from '../config';
4
+ import { type TokenValueMap } from '../utils';
5
5
  interface MetaData {
6
6
  context: Rule.RuleContext;
7
7
  config: RuleConfig;
@@ -1,5 +1,5 @@
1
1
  import type { Rule } from 'eslint';
2
- import { CallExpression, Directive, EslintNode, ImportDeclaration, ModuleDeclaration, Property, Statement, StringableASTNode } from 'eslint-codemod-utils';
2
+ import { type CallExpression, type Directive, type EslintNode, type ImportDeclaration, type ModuleDeclaration, type Property, type Statement, type StringableASTNode } from 'eslint-codemod-utils';
3
3
  export declare const typographyProperties: string[];
4
4
  export declare const isTypographyProperty: (propertyName: string) => boolean;
5
5
  export declare const isFontSize: (node: EslintNode) => node is CallExpression;
@@ -1,5 +1,5 @@
1
1
  import type { SourceCode } from 'eslint';
2
- import { ObjectExpression } from 'eslint-codemod-utils';
2
+ import { type ObjectExpression } from 'eslint-codemod-utils';
3
3
  declare const referenceObject: {
4
4
  width: string;
5
5
  height: string;
@@ -1,5 +1,5 @@
1
1
  import type { Rule, Scope as ScopeNamespace } from 'eslint';
2
- import { ImportSource } from '@atlaskit/eslint-utils/is-supported-import';
2
+ import { type ImportSource } from '@atlaskit/eslint-utils/is-supported-import';
3
3
  type Node = Rule.Node;
4
4
  type RuleContext = Rule.RuleContext;
5
5
  type Scope = ScopeNamespace.Scope;
@@ -1,6 +1,6 @@
1
1
  import type { JSONSchema4 } from '@typescript-eslint/utils/dist/json-schema';
2
2
  import type { Rule } from 'eslint';
3
- import { SupportedNameChecker } from '@atlaskit/eslint-utils/is-supported-import';
3
+ import { type SupportedNameChecker } from '@atlaskit/eslint-utils/is-supported-import';
4
4
  type RuleModule = Rule.RuleModule;
5
5
  export declare const noTaggedTemplateExpressionRuleSchema: JSONSchema4;
6
6
  export declare const createNoTaggedTemplateExpressionRule: (isUsage: SupportedNameChecker, messageId: string) => RuleModule['create'];
@@ -1,6 +1,6 @@
1
1
  import type { Rule } from 'eslint';
2
- import { ImportDeclaration } from 'eslint-codemod-utils';
3
- import { ImportSource } from '@atlaskit/eslint-utils/is-supported-import';
2
+ import { type ImportDeclaration } from 'eslint-codemod-utils';
3
+ import { type ImportSource } from '@atlaskit/eslint-utils/is-supported-import';
4
4
  type RuleContext = Rule.RuleContext;
5
5
  /**
6
6
  * Get the first import declaration in the file that matches any of the packages
@@ -1,4 +1,4 @@
1
- import tokens from '@atlaskit/tokens/token-names';
1
+ import type tokens from '@atlaskit/tokens/token-names';
2
2
  export declare const isLegacyElevation: (name: string) => false | {
3
3
  background: keyof typeof tokens;
4
4
  shadow: keyof typeof tokens;
@@ -1,5 +1,5 @@
1
1
  import type { Rule } from 'eslint';
2
- import { CallExpression, ObjectExpression } from 'eslint-codemod-utils';
2
+ import { type CallExpression, type ObjectExpression } from 'eslint-codemod-utils';
3
3
  export declare const FunctionCall: {
4
4
  getName(node: CallExpression): string | undefined;
5
5
  updateName(node: CallExpression, newName: string, fixer: Rule.RuleFixer): Rule.Fix;
@@ -1,5 +1,5 @@
1
1
  import type { Rule } from 'eslint';
2
- import { JSXAttribute } from 'eslint-codemod-utils';
2
+ import { type JSXAttribute } from 'eslint-codemod-utils';
3
3
  declare const HelperJSXAttribute: {
4
4
  getName(node: JSXAttribute): string;
5
5
  updateName(node: JSXAttribute, name: string, fixer: Rule.RuleFixer): Rule.Fix;
@@ -1,5 +1,5 @@
1
1
  import type { Rule } from 'eslint';
2
- import { JSXAttribute, JSXElement, JSXFragment, JSXSpreadAttribute } from 'eslint-codemod-utils';
2
+ import { type JSXAttribute, type JSXElement, type JSXFragment, type JSXSpreadAttribute } from 'eslint-codemod-utils';
3
3
  export declare const JSXElementHelper: {
4
4
  /**
5
5
  * Names of JSXElements can be any of:
@@ -1,5 +1,5 @@
1
1
  import type { Rule } from 'eslint';
2
- import { Property, SpreadElement } from 'eslint-codemod-utils';
2
+ import { type Property, type SpreadElement } from 'eslint-codemod-utils';
3
3
  export declare const ObjectEntry: {
4
4
  getProperty(node: Property): {
5
5
  type: 'Identifier';
@@ -1,5 +1,5 @@
1
1
  import type { Rule } from 'eslint';
2
- import { ObjectExpression, Property, SpreadElement } from 'eslint-codemod-utils';
2
+ import { type ObjectExpression, type Property, type SpreadElement } from 'eslint-codemod-utils';
3
3
  declare const ASTObjectExpression: {
4
4
  /**
5
5
  * Returns `true` if an object contains a property with the specified name, `false` otherwise.
@@ -1,6 +1,6 @@
1
1
  /// <reference types="node" />
2
2
  import type { Rule } from 'eslint';
3
- import { Directive, ImportDeclaration, insertImportDeclaration, ModuleDeclaration, Statement } from 'eslint-codemod-utils';
3
+ import { type Directive, type ImportDeclaration, insertImportDeclaration, type ModuleDeclaration, type Statement } from 'eslint-codemod-utils';
4
4
  type ImportData = Parameters<typeof insertImportDeclaration>[1];
5
5
  export declare const Root: {
6
6
  /**
@@ -1,5 +1,5 @@
1
1
  import type { Rule } from 'eslint';
2
- import { Property } from 'eslint-codemod-utils';
2
+ import { type Property } from 'eslint-codemod-utils';
3
3
  import { isLegacyElevation } from '../utils/is-elevation';
4
4
  import type { RuleConfig } from './types';
5
5
  type Suggestion = {
@@ -1,4 +1,4 @@
1
- import { RuleConfig } from './types';
1
+ import { type RuleConfig } from './types';
2
2
  /**
3
3
  * ESLint rules should NEVER throw exceptions, because that breaks the VSCode ESLint server
4
4
  * (and probably the IntelliJ one too), which causes linting to fail in a file.
@@ -1,4 +1,4 @@
1
- import { EslintNode } from 'eslint-codemod-utils';
1
+ import { type EslintNode } from 'eslint-codemod-utils';
2
2
  export declare const radiusValueToToken: any;
3
3
  export declare const borderWidthValueToToken: any;
4
4
  export declare function isRadiusProperty(propertyName: string): boolean;
@@ -1,4 +1,4 @@
1
1
  import type { Rule } from 'eslint';
2
- import { ImportDeclaration, Property } from 'eslint-codemod-utils';
2
+ import { type ImportDeclaration, type Property } from 'eslint-codemod-utils';
3
3
  import type { RuleConfig } from './types';
4
4
  export declare const lintObjectForSpacing: (node: Property, context: Rule.RuleContext, ruleConfig: RuleConfig, fontSize: any, tokenNode: ImportDeclaration | null) => void;
@@ -1,6 +1,6 @@
1
1
  import type { Rule } from 'eslint';
2
- import { EslintNode, ObjectExpression, Property, SpreadElement, TaggedTemplateExpression } from 'eslint-codemod-utils';
3
- import { Domains } from './types';
2
+ import { type EslintNode, type ObjectExpression, type Property, type SpreadElement, type TaggedTemplateExpression } from 'eslint-codemod-utils';
3
+ import { type Domains } from './types';
4
4
  export type ProcessedCSSLines = [
5
5
  string,
6
6
  string
@@ -1,5 +1,5 @@
1
- import { TSESLint } from '@typescript-eslint/utils';
2
- import { DeprecatedConfig } from '../utils/types';
1
+ import { type TSESLint } from '@typescript-eslint/utils';
2
+ import { type DeprecatedConfig } from '../utils/types';
3
3
  export declare const noDeprecatedJSXAttributeMessageId = "noDeprecatedJSXAttributes";
4
4
  export declare const name = "no-deprecated-apis";
5
5
  declare const rule: TSESLint.RuleModule<string, [
@@ -24,8 +24,8 @@
24
24
  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
25
25
  * THE SOFTWARE.
26
26
  */
27
- import { TSESLint } from '@typescript-eslint/utils';
28
- import { DeprecatedConfig } from '../utils/types';
27
+ import { type TSESLint } from '@typescript-eslint/utils';
28
+ import { type DeprecatedConfig } from '../utils/types';
29
29
  export declare const name = "no-deprecated-imports";
30
30
  export declare const importNameWithCustomMessageId = "importNameWithCustomMessage";
31
31
  export declare const pathWithCustomMessageId = "pathWithCustomMessage";
@@ -1,2 +1,2 @@
1
- import { CallExpression } from 'eslint-codemod-utils';
1
+ import { type CallExpression } from 'eslint-codemod-utils';
2
2
  export declare function isBlockedAddEventListener(node: CallExpression): boolean;
@@ -1,3 +1,3 @@
1
1
  import type { Rule } from 'eslint';
2
- import { CallExpression } from 'eslint-codemod-utils';
2
+ import { type CallExpression } from 'eslint-codemod-utils';
3
3
  export declare function isBlockedBindAll(context: Rule.RuleContext, node: CallExpression): boolean;
@@ -1,3 +1,3 @@
1
1
  import type { Rule } from 'eslint';
2
- import { CallExpression } from 'eslint-codemod-utils';
2
+ import { type CallExpression } from 'eslint-codemod-utils';
3
3
  export declare function isBlockedBind(context: Rule.RuleContext, node: CallExpression): boolean;
@@ -1,3 +1,3 @@
1
1
  import type { Rule } from 'eslint';
2
- import { JSXAttribute } from 'eslint-codemod-utils';
2
+ import { type JSXAttribute } from 'eslint-codemod-utils';
3
3
  export declare function isBlockedJSXAttribute(context: Rule.RuleContext, node: JSXAttribute): boolean;
@@ -1,2 +1,2 @@
1
- import { Property, SpreadElement } from 'eslint-codemod-utils';
1
+ import { type Property, type SpreadElement } from 'eslint-codemod-utils';
2
2
  export declare function isBlockedEventBinding(property: Property | SpreadElement): boolean;
@@ -1,6 +1,6 @@
1
1
  import type { Rule } from 'eslint';
2
- import { JSXElement } from 'eslint-codemod-utils';
3
- import { RuleConfig } from '../config';
2
+ import { type JSXElement } from 'eslint-codemod-utils';
3
+ import { type RuleConfig } from '../config';
4
4
  export type MetaData = {
5
5
  context: Rule.RuleContext;
6
6
  config: RuleConfig;
@@ -1,5 +1,5 @@
1
1
  import type { Rule, Scope } from 'eslint';
2
- import { ImportDeclaration, JSXAttribute } from 'eslint-codemod-utils';
2
+ import { type ImportDeclaration, type JSXAttribute } from 'eslint-codemod-utils';
3
3
  export declare const hrefHasInvalidValue: (scope: Scope.Scope, href: JSXAttribute | undefined) => boolean;
4
4
  export declare const hasImportOfName: (node: ImportDeclaration, name: string) => boolean;
5
5
  export declare const insertButtonItemDefaultImport: (fixer: Rule.RuleFixer, node: ImportDeclaration) => Rule.Fix;
@@ -1,5 +1,5 @@
1
1
  import type { Rule } from 'eslint';
2
- import { JSXElement } from 'eslint-codemod-utils';
2
+ import { type JSXElement } from 'eslint-codemod-utils';
3
3
  /**
4
4
  * Transforms a JSXElement from:
5
5
  * ```
@@ -1,5 +1,5 @@
1
1
  import type { Rule } from 'eslint';
2
- import { VariableDeclarator } from 'eslint-codemod-utils';
2
+ import { type VariableDeclarator } from 'eslint-codemod-utils';
3
3
  /**
4
4
  * Transforms a variable like:
5
5
  * ```
@@ -1,5 +1,5 @@
1
1
  import type { Rule, Scope } from 'eslint';
2
- import { JSXOpeningElement } from 'eslint-codemod-utils';
2
+ import { type JSXOpeningElement } from 'eslint-codemod-utils';
3
3
  /**
4
4
  * Given a component name finds its JSX usages and performs some
5
5
  * additional validations to ensure transformation can be done correctly
@@ -1,6 +1,6 @@
1
1
  import type { Rule } from 'eslint';
2
- import { JSXElement, VariableDeclarator } from 'eslint-codemod-utils';
3
- import { RuleConfig } from '../../config';
2
+ import { type JSXElement, type VariableDeclarator } from 'eslint-codemod-utils';
3
+ import { type RuleConfig } from '../../config';
4
4
  interface MetaData {
5
5
  context: Rule.RuleContext;
6
6
  config: RuleConfig;
@@ -1,6 +1,6 @@
1
1
  import type { Rule } from 'eslint';
2
- import { JSXElement } from 'eslint-codemod-utils';
3
- import { RuleConfig } from '../../config';
2
+ import { type JSXElement } from 'eslint-codemod-utils';
3
+ import { type RuleConfig } from '../../config';
4
4
  interface MetaData {
5
5
  context: Rule.RuleContext;
6
6
  config: RuleConfig;
@@ -1,6 +1,6 @@
1
1
  import type { CSSProperties } from 'react';
2
2
  import type { Rule } from 'eslint';
3
- import { ObjectExpression } from 'eslint-codemod-utils';
3
+ import { type ObjectExpression } from 'eslint-codemod-utils';
4
4
  export declare const SPREAD_SYNTAX: unique symbol;
5
5
  type Token = {
6
6
  tokenName: string;
@@ -1,4 +1,4 @@
1
- import { JSXAttribute } from 'eslint-codemod-utils';
1
+ import { type JSXAttribute } from 'eslint-codemod-utils';
2
2
  /**
3
3
  * Bit of a weird name, but the functionality is quite specific, so this is the best I could do.
4
4
  * This function looks at a JSXAttribute, and returns the string representation
@@ -1,2 +1,2 @@
1
- import { JSXAttribute, JSXOpeningElement } from 'eslint-codemod-utils';
1
+ import { type JSXAttribute, type JSXOpeningElement } from 'eslint-codemod-utils';
2
2
  export declare const getJSXAttributeByName: (node: JSXOpeningElement, attrName: string) => JSXAttribute | undefined;
@@ -1,4 +1,4 @@
1
1
  import type { Rule } from 'eslint';
2
- import { SimpleCallExpression } from 'eslint-codemod-utils';
3
- import { RuleConfig } from '../config';
2
+ import { type SimpleCallExpression } from 'eslint-codemod-utils';
3
+ import { type RuleConfig } from '../config';
4
4
  export declare const isValidCssPropertiesToTransform: (node: SimpleCallExpression & Rule.NodeParentExtension, config: RuleConfig) => boolean;
@@ -1,3 +1,3 @@
1
1
  import type { Rule } from 'eslint';
2
- import { JSXElement } from 'eslint-codemod-utils';
2
+ import { type JSXElement } from 'eslint-codemod-utils';
3
3
  export declare const updateJSXAttributeByName: (oldName: string, newName: string, node: JSXElement, fixer: Rule.RuleFixer) => Rule.Fix | never[];
@@ -1,3 +1,3 @@
1
- import { CallExpression } from 'eslint-codemod-utils';
2
- import { RuleConfig } from '../config';
1
+ import { type CallExpression } from 'eslint-codemod-utils';
2
+ import { type RuleConfig } from '../config';
3
3
  export declare const validateStyles: (node: CallExpression, config: RuleConfig) => boolean;
@@ -1,6 +1,6 @@
1
1
  import type { Rule } from 'eslint';
2
- import { JSXElement } from 'eslint-codemod-utils';
3
- import { RuleConfig } from '../config';
2
+ import { type JSXElement } from 'eslint-codemod-utils';
3
+ import { type RuleConfig } from '../config';
4
4
  export type MetaData = {
5
5
  context: Rule.RuleContext;
6
6
  config: RuleConfig;
@@ -1,5 +1,5 @@
1
1
  import type { Rule } from 'eslint';
2
- import { Property } from 'eslint-codemod-utils';
2
+ import { type Property } from 'eslint-codemod-utils';
3
3
  type Ref = {
4
4
  node: Property;
5
5
  token?: string;
@@ -1,4 +1,4 @@
1
- import { JSONSchema4 } from '@typescript-eslint/utils/dist/json-schema';
1
+ import { type JSONSchema4 } from '@typescript-eslint/utils/dist/json-schema';
2
2
  export type RuleConfig = {
3
3
  failSilently?: boolean;
4
4
  shouldEnforceFallbacks?: boolean;
@@ -1,4 +1,4 @@
1
- import { RuleConfig } from './config';
1
+ import { type RuleConfig } from './config';
2
2
  /**
3
3
  * ESLint rules should NEVER throw exceptions, because that breaks the VSCode ESLint server
4
4
  * (and probably the IntelliJ one too), which causes linting to fail in a file.
@@ -1,7 +1,7 @@
1
1
  import type { Rule } from 'eslint';
2
- import { ImportDeclaration, ObjectExpression, Property, StringableASTNode } from 'eslint-codemod-utils';
3
- import { RuleConfig } from '../config';
4
- import { TokenValueMap } from '../utils';
2
+ import { type ImportDeclaration, type ObjectExpression, type Property, type StringableASTNode } from 'eslint-codemod-utils';
3
+ import { type RuleConfig } from '../config';
4
+ import { type TokenValueMap } from '../utils';
5
5
  interface MetaData {
6
6
  context: Rule.RuleContext;
7
7
  config: RuleConfig;
@@ -1,5 +1,5 @@
1
1
  import type { Rule } from 'eslint';
2
- import { CallExpression, Directive, EslintNode, ImportDeclaration, ModuleDeclaration, Property, Statement, StringableASTNode } from 'eslint-codemod-utils';
2
+ import { type CallExpression, type Directive, type EslintNode, type ImportDeclaration, type ModuleDeclaration, type Property, type Statement, type StringableASTNode } from 'eslint-codemod-utils';
3
3
  export declare const typographyProperties: string[];
4
4
  export declare const isTypographyProperty: (propertyName: string) => boolean;
5
5
  export declare const isFontSize: (node: EslintNode) => node is CallExpression;
@@ -1,5 +1,5 @@
1
1
  import type { SourceCode } from 'eslint';
2
- import { ObjectExpression } from 'eslint-codemod-utils';
2
+ import { type ObjectExpression } from 'eslint-codemod-utils';
3
3
  declare const referenceObject: {
4
4
  width: string;
5
5
  height: string;
@@ -1,5 +1,5 @@
1
1
  import type { Rule, Scope as ScopeNamespace } from 'eslint';
2
- import { ImportSource } from '@atlaskit/eslint-utils/is-supported-import';
2
+ import { type ImportSource } from '@atlaskit/eslint-utils/is-supported-import';
3
3
  type Node = Rule.Node;
4
4
  type RuleContext = Rule.RuleContext;
5
5
  type Scope = ScopeNamespace.Scope;
@@ -1,6 +1,6 @@
1
1
  import type { JSONSchema4 } from '@typescript-eslint/utils/dist/json-schema';
2
2
  import type { Rule } from 'eslint';
3
- import { SupportedNameChecker } from '@atlaskit/eslint-utils/is-supported-import';
3
+ import { type SupportedNameChecker } from '@atlaskit/eslint-utils/is-supported-import';
4
4
  type RuleModule = Rule.RuleModule;
5
5
  export declare const noTaggedTemplateExpressionRuleSchema: JSONSchema4;
6
6
  export declare const createNoTaggedTemplateExpressionRule: (isUsage: SupportedNameChecker, messageId: string) => RuleModule['create'];
@@ -1,6 +1,6 @@
1
1
  import type { Rule } from 'eslint';
2
- import { ImportDeclaration } from 'eslint-codemod-utils';
3
- import { ImportSource } from '@atlaskit/eslint-utils/is-supported-import';
2
+ import { type ImportDeclaration } from 'eslint-codemod-utils';
3
+ import { type ImportSource } from '@atlaskit/eslint-utils/is-supported-import';
4
4
  type RuleContext = Rule.RuleContext;
5
5
  /**
6
6
  * Get the first import declaration in the file that matches any of the packages
@@ -1,4 +1,4 @@
1
- import tokens from '@atlaskit/tokens/token-names';
1
+ import type tokens from '@atlaskit/tokens/token-names';
2
2
  export declare const isLegacyElevation: (name: string) => false | {
3
3
  background: keyof typeof tokens;
4
4
  shadow: keyof typeof tokens;
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.3.0",
4
+ "version": "10.3.1",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
7
7
  "publishConfig": {