@atlaskit/eslint-plugin-design-system 13.23.3 → 13.24.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 (44) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +1 -0
  3. package/dist/cjs/presets/all-flat.codegen.js +2 -1
  4. package/dist/cjs/presets/all.codegen.js +2 -1
  5. package/dist/cjs/presets/recommended-flat.codegen.js +2 -1
  6. package/dist/cjs/presets/recommended.codegen.js +2 -1
  7. package/dist/cjs/rules/index.codegen.js +3 -1
  8. package/dist/cjs/rules/lozenge-appearance-and-isbold-migration/index.js +267 -0
  9. package/dist/cjs/rules/no-deprecated-imports/handlers/icon.js +13 -14
  10. package/dist/cjs/rules/no-legacy-icons/helpers.js +2 -2
  11. package/dist/cjs/rules/utils/get-deprecated-config.js +1 -1
  12. package/dist/es2019/presets/all-flat.codegen.js +2 -1
  13. package/dist/es2019/presets/all.codegen.js +2 -1
  14. package/dist/es2019/presets/recommended-flat.codegen.js +2 -1
  15. package/dist/es2019/presets/recommended.codegen.js +2 -1
  16. package/dist/es2019/rules/index.codegen.js +3 -1
  17. package/dist/es2019/rules/lozenge-appearance-and-isbold-migration/index.js +261 -0
  18. package/dist/es2019/rules/no-deprecated-imports/handlers/icon.js +8 -9
  19. package/dist/es2019/rules/no-legacy-icons/helpers.js +2 -2
  20. package/dist/es2019/rules/utils/get-deprecated-config.js +1 -2
  21. package/dist/esm/presets/all-flat.codegen.js +2 -1
  22. package/dist/esm/presets/all.codegen.js +2 -1
  23. package/dist/esm/presets/recommended-flat.codegen.js +2 -1
  24. package/dist/esm/presets/recommended.codegen.js +2 -1
  25. package/dist/esm/rules/index.codegen.js +3 -1
  26. package/dist/esm/rules/lozenge-appearance-and-isbold-migration/index.js +261 -0
  27. package/dist/esm/rules/no-deprecated-imports/handlers/icon.js +12 -13
  28. package/dist/esm/rules/no-legacy-icons/helpers.js +2 -2
  29. package/dist/esm/rules/utils/get-deprecated-config.js +2 -2
  30. package/dist/types/presets/all-flat.codegen.d.ts +1 -1
  31. package/dist/types/presets/all.codegen.d.ts +1 -1
  32. package/dist/types/presets/recommended-flat.codegen.d.ts +1 -1
  33. package/dist/types/presets/recommended.codegen.d.ts +1 -1
  34. package/dist/types/rules/index.codegen.d.ts +1 -1
  35. package/dist/types/rules/lozenge-appearance-and-isbold-migration/index.d.ts +2 -0
  36. package/dist/types/rules/no-legacy-icons/helpers.d.ts +0 -2
  37. package/dist/types-ts4.5/presets/all-flat.codegen.d.ts +1 -1
  38. package/dist/types-ts4.5/presets/all.codegen.d.ts +1 -1
  39. package/dist/types-ts4.5/presets/recommended-flat.codegen.d.ts +1 -1
  40. package/dist/types-ts4.5/presets/recommended.codegen.d.ts +1 -1
  41. package/dist/types-ts4.5/rules/index.codegen.d.ts +1 -1
  42. package/dist/types-ts4.5/rules/lozenge-appearance-and-isbold-migration/index.d.ts +2 -0
  43. package/dist/types-ts4.5/rules/no-legacy-icons/helpers.d.ts +0 -2
  44. package/package.json +3 -3
@@ -0,0 +1,261 @@
1
+ import { isNodeOfType } from 'eslint-codemod-utils';
2
+ import { createLintRule } from '../utils/create-rule';
3
+ const rule = createLintRule({
4
+ meta: {
5
+ name: 'lozenge-appearance-and-isbold-migration',
6
+ fixable: 'code',
7
+ type: 'suggestion',
8
+ docs: {
9
+ description: 'Helps migrate deprecated Lozenge usages to the new API or Tag component as part of the Labelling System Phase 1 migration.',
10
+ recommended: true,
11
+ severity: 'warn'
12
+ },
13
+ messages: {
14
+ replaceAppearance: "'appearance' prop on <Lozenge> is deprecated — use 'color' instead.",
15
+ migrateTag: 'Non-bold <Lozenge> variants should migrate to <Tag> component.',
16
+ manualReview: "Dynamic 'isBold' props require manual review before migration."
17
+ }
18
+ },
19
+ create(context) {
20
+ /**
21
+ * Contains a map of imported Lozenge components.
22
+ */
23
+ const lozengeImports = {}; // local name -> import source
24
+ const tagImports = {}; // local name -> import source
25
+
26
+ /**
27
+ * Check if a JSX attribute value is a literal false
28
+ */
29
+ function isLiteralFalse(node) {
30
+ return node && node.type === 'JSXExpressionContainer' && node.expression && node.expression.type === 'Literal' && node.expression.value === false;
31
+ }
32
+
33
+ /**
34
+ * Check if a JSX attribute value is dynamic (not a literal boolean)
35
+ */
36
+ function isDynamicExpression(node) {
37
+ if (!node || node.type !== 'JSXExpressionContainer') {
38
+ return false;
39
+ }
40
+ const expr = node.expression;
41
+ return expr && !(expr.type === 'Literal' && typeof expr.value === 'boolean');
42
+ }
43
+
44
+ /**
45
+ * Get all attributes as an object for easier manipulation
46
+ */
47
+ function getAttributesMap(attributes) {
48
+ const map = {};
49
+ attributes.forEach(attr => {
50
+ if (attr.type === 'JSXAttribute' && attr.name.type === 'JSXIdentifier') {
51
+ map[attr.name.name] = attr;
52
+ }
53
+ });
54
+ return map;
55
+ }
56
+
57
+ /**
58
+ * Map Lozenge appearance values to Tag color values
59
+ */
60
+ function mapAppearanceToTagColor(appearanceValue) {
61
+ const mapping = {
62
+ success: 'lime',
63
+ default: 'standard',
64
+ removed: 'red',
65
+ inprogress: 'blue',
66
+ new: 'purple',
67
+ moved: 'orange'
68
+ };
69
+ return mapping[appearanceValue] || appearanceValue;
70
+ }
71
+
72
+ /**
73
+ * Map Lozenge appearance values to Lozenge color values
74
+ */
75
+ function mapAppearanceToLozengeColor(appearanceValue) {
76
+ const mapping = {
77
+ default: 'neutral',
78
+ inprogress: 'information',
79
+ moved: 'warning',
80
+ new: 'discovery',
81
+ removed: 'danger',
82
+ success: 'success'
83
+ };
84
+ return mapping[appearanceValue] || appearanceValue;
85
+ }
86
+
87
+ /**
88
+ * Extract the string value from a JSX attribute value
89
+ */
90
+ function extractStringValue(attrValue) {
91
+ if (!attrValue) {
92
+ return null;
93
+ }
94
+ if (attrValue.type === 'Literal') {
95
+ return attrValue.value;
96
+ }
97
+ if (attrValue.type === 'JSXExpressionContainer' && attrValue.expression && attrValue.expression.type === 'Literal') {
98
+ return attrValue.expression.value;
99
+ }
100
+ return null;
101
+ }
102
+
103
+ /**
104
+ * Generate the replacement JSX element text
105
+ */
106
+ function generateTagReplacement(node, lozengeLocalName) {
107
+ const sourceCode = context.getSourceCode();
108
+ const attributes = node.openingElement.attributes;
109
+
110
+ // Build new attributes array, excluding isBold and mapping appearance to color
111
+ const newAttributes = [];
112
+ attributes.forEach(attr => {
113
+ if (attr.type === 'JSXAttribute' && attr.name.type === 'JSXIdentifier') {
114
+ const attrName = attr.name.name;
115
+ if (attrName === 'isBold') {
116
+ // Skip isBold attribute
117
+ return;
118
+ }
119
+ if (attrName === 'appearance') {
120
+ // Map appearance to color with value transformation
121
+ const stringValue = extractStringValue(attr.value);
122
+ if (stringValue && typeof stringValue === 'string') {
123
+ const mappedColor = mapAppearanceToTagColor(stringValue);
124
+ newAttributes.push(`color="${mappedColor}"`);
125
+ } else {
126
+ // If we can't extract the string value, keep as-is but rename to color
127
+ const value = attr.value ? sourceCode.getText(attr.value) : '';
128
+ newAttributes.push(`color${value ? `=${value}` : ''}`);
129
+ }
130
+ return;
131
+ }
132
+
133
+ // Keep all other attributes
134
+ newAttributes.push(sourceCode.getText(attr));
135
+ } else if (attr.type === 'JSXSpreadAttribute') {
136
+ // Keep spread attributes
137
+ newAttributes.push(sourceCode.getText(attr));
138
+ }
139
+ });
140
+ const attributesText = newAttributes.length > 0 ? ` ${newAttributes.join(' ')}` : '';
141
+ const children = node.children.length > 0 ? sourceCode.getText().slice(node.openingElement.range[1], node.closingElement ? node.closingElement.range[0] : node.range[1]) : '';
142
+ if (node.closingElement) {
143
+ return `<Tag${attributesText}>${children}</Tag>`;
144
+ } else {
145
+ return `<Tag${attributesText} />`;
146
+ }
147
+ }
148
+ return {
149
+ ImportDeclaration(node) {
150
+ const moduleSource = node.source.value;
151
+ if (typeof moduleSource === 'string') {
152
+ // Track Lozenge imports
153
+ if (moduleSource === '@atlaskit/lozenge' || moduleSource.startsWith('@atlaskit/lozenge')) {
154
+ node.specifiers.forEach(spec => {
155
+ if (spec.type === 'ImportDefaultSpecifier') {
156
+ lozengeImports[spec.local.name] = moduleSource;
157
+ } else if (spec.type === 'ImportSpecifier' && spec.imported.type === 'Identifier') {
158
+ if (spec.imported.name === 'Lozenge') {
159
+ lozengeImports[spec.local.name] = moduleSource;
160
+ }
161
+ }
162
+ });
163
+ }
164
+ // Track Tag imports
165
+ if (moduleSource === '@atlaskit/tag' || moduleSource.startsWith('@atlaskit/tag/')) {
166
+ node.specifiers.forEach(spec => {
167
+ if (spec.type === 'ImportDefaultSpecifier') {
168
+ tagImports[spec.local.name] = moduleSource;
169
+ } else if (spec.type === 'ImportSpecifier' && spec.imported.type === 'Identifier') {
170
+ if (spec.imported.name === 'Tag') {
171
+ tagImports[spec.local.name] = moduleSource;
172
+ }
173
+ }
174
+ });
175
+ }
176
+ }
177
+ },
178
+ JSXElement(node) {
179
+ if (!isNodeOfType(node, 'JSXElement')) {
180
+ return;
181
+ }
182
+ if (!isNodeOfType(node.openingElement.name, 'JSXIdentifier')) {
183
+ return;
184
+ }
185
+ const elementName = node.openingElement.name.name;
186
+
187
+ // Only process if this is a Lozenge component we've imported
188
+ if (!lozengeImports[elementName]) {
189
+ return;
190
+ }
191
+ const attributesMap = getAttributesMap(node.openingElement.attributes);
192
+ const appearanceProp = attributesMap.appearance;
193
+ const isBoldProp = attributesMap.isBold;
194
+
195
+ // Handle appearance prop migration
196
+ if (appearanceProp) {
197
+ context.report({
198
+ node: appearanceProp,
199
+ messageId: 'replaceAppearance',
200
+ fix: fixer => {
201
+ const fixes = [];
202
+ // Always rename the prop name
203
+ fixes.push(fixer.replaceText(appearanceProp.name, 'color'));
204
+
205
+ // Also map the value if it's a string literal and we're not migrating to Tag
206
+ const shouldMigrateToTag = !isBoldProp || isLiteralFalse(isBoldProp.value);
207
+ if (!shouldMigrateToTag) {
208
+ const stringValue = extractStringValue(appearanceProp.value);
209
+ if (stringValue && typeof stringValue === 'string') {
210
+ const mappedColor = mapAppearanceToLozengeColor(stringValue);
211
+ if (mappedColor !== stringValue) {
212
+ // Update the value if it changed
213
+ if (appearanceProp.value.type === 'Literal') {
214
+ fixes.push(fixer.replaceText(appearanceProp.value, `"${mappedColor}"`));
215
+ } else if (appearanceProp.value.type === 'JSXExpressionContainer' && appearanceProp.value.expression && appearanceProp.value.expression.type === 'Literal') {
216
+ fixes.push(fixer.replaceText(appearanceProp.value.expression, `"${mappedColor}"`));
217
+ }
218
+ }
219
+ }
220
+ }
221
+ return fixes;
222
+ }
223
+ });
224
+ }
225
+
226
+ // Handle isBold prop and Tag migration
227
+ if (isBoldProp) {
228
+ if (isLiteralFalse(isBoldProp.value)) {
229
+ // isBold={false} should migrate to Tag
230
+ context.report({
231
+ node: node,
232
+ messageId: 'migrateTag',
233
+ fix: fixer => {
234
+ const replacement = generateTagReplacement(node, elementName);
235
+ return fixer.replaceText(node, replacement);
236
+ }
237
+ });
238
+ } else if (isDynamicExpression(isBoldProp.value)) {
239
+ // Dynamic isBold requires manual review
240
+ context.report({
241
+ node: isBoldProp,
242
+ messageId: 'manualReview'
243
+ });
244
+ }
245
+ // isBold={true} or isBold (implicit true) - no action needed
246
+ } else {
247
+ // No isBold prop means implicit false, should migrate to Tag
248
+ context.report({
249
+ node: node,
250
+ messageId: 'migrateTag',
251
+ fix: fixer => {
252
+ const replacement = generateTagReplacement(node, elementName);
253
+ return fixer.replaceText(node, replacement);
254
+ }
255
+ });
256
+ }
257
+ }
258
+ };
259
+ }
260
+ });
261
+ export default rule;
@@ -1,6 +1,6 @@
1
1
  import { isNodeOfType, literal } from 'eslint-codemod-utils';
2
2
  import coreIconLabMetadata from '@atlaskit/icon-lab/metadata';
3
- import { coreIconMetadata, utilityIconMetadata } from '@atlaskit/icon/metadata';
3
+ import { coreIconMetadata } from '@atlaskit/icon/metadata';
4
4
  import { pathWithCustomMessageId } from '../constants';
5
5
  /**
6
6
  * __Deprecation icon handler__
@@ -61,23 +61,22 @@ export const getDeprecationIconHandler = context => {
61
61
  const shouldTurnOffAutoFixer = getConfigFlag('turnOffAutoFixer', false);
62
62
  for (const [importSource, error] of Object.entries(importErrors)) {
63
63
  if (importSource.includes('/migration/')) {
64
- var _metadata$deprecatedI, _error$data;
65
- const [_location, type, _migration, name] = importSource.split('/').slice(1);
66
- const metadata = type === 'core' ? coreIconMetadata : utilityIconMetadata;
64
+ var _coreIconMetadata$dep, _error$data;
65
+ const [_location, _, _migration, name] = importSource.split('/').slice(1);
67
66
  const [deprecatedIconName, legacyIconName] = name.split('--');
68
- const replacement = metadata === null || metadata === void 0 ? void 0 : (_metadata$deprecatedI = metadata[deprecatedIconName]) === null || _metadata$deprecatedI === void 0 ? void 0 : _metadata$deprecatedI.replacement;
67
+ const replacement = (_coreIconMetadata$dep = coreIconMetadata[deprecatedIconName]) === null || _coreIconMetadata$dep === void 0 ? void 0 : _coreIconMetadata$dep.replacement;
69
68
  if (replacement && ((_error$data = error.data) === null || _error$data === void 0 ? void 0 : _error$data.unfixable) === 'false') {
70
69
  const newIconName = getIconComponentName(replacement.name);
71
70
  if (!shouldTurnOffAutoFixer) {
72
- addAutoFix(error, importSource, `${replacement.location}/${replacement.type}/migration/${replacement.name}--${legacyIconName}`, newIconName);
71
+ addAutoFix(error, importSource, `${replacement.location}/core/migration/${replacement.name}--${legacyIconName}`, newIconName);
73
72
  }
74
73
  }
75
74
  } else {
76
75
  var _metadata, _metadata$name;
77
- const [location, type, name] = importSource.split('/').slice(1);
76
+ const [location, _, name] = importSource.split('/').slice(1);
78
77
  let metadata;
79
78
  if (location === 'icon') {
80
- metadata = type === 'core' ? coreIconMetadata : utilityIconMetadata;
79
+ metadata = coreIconMetadata;
81
80
  } else if (location === 'icon-lab') {
82
81
  metadata = coreIconLabMetadata;
83
82
  }
@@ -85,7 +84,7 @@ export const getDeprecationIconHandler = context => {
85
84
  if (replacement) {
86
85
  const newIconName = getIconComponentName(replacement.name);
87
86
  if (!shouldTurnOffAutoFixer) {
88
- addAutoFix(error, importSource, `${replacement.location}/${replacement.type}/${replacement.name}`, newIconName);
87
+ addAutoFix(error, importSource, `${replacement.location}/core/${replacement.name}`, newIconName);
89
88
  }
90
89
  }
91
90
  }
@@ -63,10 +63,10 @@ const getNewIconNameAndImportPath = (iconPackage, shouldUseMigrationPath) => {
63
63
  const {
64
64
  newIcon
65
65
  } = migrationMapObject;
66
- const migrationPath = newIcon.name === legacyIconName ? `${newIcon.package}/${newIcon.type}/migration/${newIcon.name}` : `${newIcon.package}/${newIcon.type}/migration/${newIcon.name}--${legacyIconName.replaceAll('/', '-')}`;
66
+ const migrationPath = newIcon.name === legacyIconName ? `${newIcon.package}/core/migration/${newIcon.name}` : `${newIcon.package}/core/migration/${newIcon.name}--${legacyIconName.replaceAll('/', '-')}`;
67
67
  return {
68
68
  iconName: newIcon.name,
69
- importPath: shouldUseMigrationPath ? migrationPath : `${newIcon.package}/${newIcon.type}/${newIcon.name}`
69
+ importPath: shouldUseMigrationPath ? migrationPath : `${newIcon.package}/core/${newIcon.name}`
70
70
  };
71
71
  };
72
72
 
@@ -1,7 +1,7 @@
1
1
  import fs from 'fs';
2
2
  import path from 'path';
3
3
  import { deprecatedCore as deprecatedIconLabCore, deprecatedUtility as deprecatedIconLabUtility } from '@atlaskit/icon-lab/deprecated-map';
4
- import { deprecatedCore as deprecatedIconCore, deprecatedUtility as deprecatedIconUtility } from '@atlaskit/icon/deprecated-map';
4
+ import { deprecatedCore as deprecatedIconCore } from '@atlaskit/icon/deprecated-map';
5
5
  export const getConfig = specifier => {
6
6
  const configPath = path.resolve(__dirname, '..', '..', '..', 'configs', 'deprecated.json');
7
7
  const source = fs.readFileSync(configPath, 'utf8');
@@ -11,7 +11,6 @@ export const getConfig = specifier => {
11
11
  imports: {
12
12
  ...parsedConfig.imports,
13
13
  ...deprecatedIconCore,
14
- ...deprecatedIconUtility,
15
14
  ...deprecatedIconLabCore,
16
15
  ...deprecatedIconLabUtility
17
16
  }
@@ -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::5aac2d8dc7c2832bcb8a96a143d60db5>>
3
+ * @codegen <<SignedSource::7fae089db9d7d7153fea58c673bd56af>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
5
5
  */
6
6
 
@@ -15,6 +15,7 @@ var rules = {
15
15
  '@atlaskit/design-system/ensure-icon-color': 'error',
16
16
  '@atlaskit/design-system/ensure-proper-xcss-usage': 'error',
17
17
  '@atlaskit/design-system/icon-label': 'warn',
18
+ '@atlaskit/design-system/lozenge-appearance-and-isbold-migration': 'warn',
18
19
  '@atlaskit/design-system/no-banned-imports': 'error',
19
20
  '@atlaskit/design-system/no-boolean-autofocus-on-modal-dialog': 'warn',
20
21
  '@atlaskit/design-system/no-css-tagged-template-expression': 'error',
@@ -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::43ea4411c4e338a916772d4bfda146cc>>
3
+ * @codegen <<SignedSource::655d7f24171da0dff60003d0f235e48a>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
5
5
  */
6
6
 
@@ -14,6 +14,7 @@ var rules = {
14
14
  '@atlaskit/design-system/ensure-icon-color': 'error',
15
15
  '@atlaskit/design-system/ensure-proper-xcss-usage': 'error',
16
16
  '@atlaskit/design-system/icon-label': 'warn',
17
+ '@atlaskit/design-system/lozenge-appearance-and-isbold-migration': 'warn',
17
18
  '@atlaskit/design-system/no-banned-imports': 'error',
18
19
  '@atlaskit/design-system/no-boolean-autofocus-on-modal-dialog': 'warn',
19
20
  '@atlaskit/design-system/no-css-tagged-template-expression': 'error',
@@ -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::3328b9c675a0d09876dcfbc5d29bc63f>>
3
+ * @codegen <<SignedSource::44a03b30a12e3b52d720c16785c9c649>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
5
5
  */
6
6
 
@@ -11,6 +11,7 @@ var rules = {
11
11
  '@atlaskit/design-system/consistent-css-prop-usage': 'error',
12
12
  '@atlaskit/design-system/ensure-design-token-usage': 'error',
13
13
  '@atlaskit/design-system/icon-label': 'warn',
14
+ '@atlaskit/design-system/lozenge-appearance-and-isbold-migration': 'warn',
14
15
  '@atlaskit/design-system/no-banned-imports': 'error',
15
16
  '@atlaskit/design-system/no-boolean-autofocus-on-modal-dialog': 'warn',
16
17
  '@atlaskit/design-system/no-deprecated-apis': 'error',
@@ -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::b28f895280627b7a35f059f90783644a>>
3
+ * @codegen <<SignedSource::0311febdad396820af1b01dd2825b63f>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
5
5
  */
6
6
 
@@ -10,6 +10,7 @@ var rules = {
10
10
  '@atlaskit/design-system/consistent-css-prop-usage': 'error',
11
11
  '@atlaskit/design-system/ensure-design-token-usage': 'error',
12
12
  '@atlaskit/design-system/icon-label': 'warn',
13
+ '@atlaskit/design-system/lozenge-appearance-and-isbold-migration': 'warn',
13
14
  '@atlaskit/design-system/no-banned-imports': 'error',
14
15
  '@atlaskit/design-system/no-boolean-autofocus-on-modal-dialog': 'warn',
15
16
  '@atlaskit/design-system/no-deprecated-apis': 'error',
@@ -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::732bff0fc39d7ff05b6688694101698d>>
3
+ * @codegen <<SignedSource::75f94fc6b6fa998eed54b610e41bb9b1>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
5
5
  */
6
6
 
@@ -11,6 +11,7 @@ import ensureDesignTokenUsagePreview from './ensure-design-token-usage-preview';
11
11
  import ensureIconColor from './ensure-icon-color';
12
12
  import ensureProperXcssUsage from './ensure-proper-xcss-usage';
13
13
  import iconLabel from './icon-label';
14
+ import lozengeAppearanceAndIsboldMigration from './lozenge-appearance-and-isbold-migration';
14
15
  import noBannedImports from './no-banned-imports';
15
16
  import noBooleanAutofocusOnModalDialog from './no-boolean-autofocus-on-modal-dialog';
16
17
  import noCssTaggedTemplateExpression from './no-css-tagged-template-expression';
@@ -80,6 +81,7 @@ export var rules = {
80
81
  'ensure-icon-color': ensureIconColor,
81
82
  'ensure-proper-xcss-usage': ensureProperXcssUsage,
82
83
  'icon-label': iconLabel,
84
+ 'lozenge-appearance-and-isbold-migration': lozengeAppearanceAndIsboldMigration,
83
85
  'no-banned-imports': noBannedImports,
84
86
  'no-boolean-autofocus-on-modal-dialog': noBooleanAutofocusOnModalDialog,
85
87
  'no-css-tagged-template-expression': noCssTaggedTemplateExpression,