ESLint plugin
The essential plugin for use with the Atlassian Design System.16.12.7
Patch Changes
db3d1d131101f, (opens new window) - Keep unsafe autofixes opt-in for rules that exposeenableUnsafeAutofix; recommended warning rules use suggestions unless a consumer explicitly enables the unsafe option.
16.12.6
Patch Changes
- Updated dependencies
16.12.5
Patch Changes
172807d4dcd96, (opens new window) - Avoid crashing while inspecting styles that compose a token call in a binary expression.- Updated dependencies
16.12.4
Patch Changes
4b7046a6ca079, (opens new window) - Improve modal title rule to avoid recursive search of components.
16.12.3
Patch Changes
3dd2bfbb50aa5, (opens new window) - Fixuse-pressable-motionto recognize semantic transitions in composed xcss arrays, including motion styles gated byplatform-dst-motion-uplift-custom-button.
16.12.2
Patch Changes
ef9028194ebf1, (opens new window) - Mark @atlassian/preview-panel and @atlassian/preview-panels-api as deprecated; add ESLint deprecation rules in favour of @atlassian/panel-system
16.12.1
Patch Changes
c07f65513c732, (opens new window) - Add @atlassian/manual-trial-awareness-modal and @post-office/message-template--jira-manual-trial-awareness-modal to deprecated config. TWCG-208 experiment has been shut down.
16.12.0
Minor Changes
bd2c5b0112185, (opens new window) - Remove stale API report artifacts from published Platform packages.
Patch Changes
- Updated dependencies
16.11.3
Patch Changes
85a3e1ec4b6ff, (opens new window) - Experimental React 19 peer dependency support. This patch widens the peer range; CI coverage is partial.- Updated dependencies
16.11.2
Patch Changes
fdedfb06aa229, (opens new window) - Allow canonical typed media queries and typed container-query exceptions in styling lint rules.
16.11.1
Patch Changes
4612437357f61, (opens new window) - Remove references to the unused @atlassian/icon-private package. Its value is dropped from the icon metadata location union, the ensure-icon-color lint rule no longer matches it, and the adoption scanner no longer scans its entrypoint.- Updated dependencies
16.11.0
Minor Changes
-
d82e6f76528ab, (opens new window) - Add direct subpath package exports as part of the linking-platform, search, media, and design-system barrel-removal (de-barrel) migration.These packages now expose their individual modules via explicit
package.jsonexportssubpaths so that consumers can import directly from the leaf module (e.g.@atlaskit/pkg/thing) instead of the package barrel/index. This adds new public entry points without changing or removing any existing exports, so it is a backwards-compatible additive change.No runtime behaviour changes; this is an API-surface (entry-point) addition to support tree-shaking and to unblock removal of the barrel index files.
Patch Changes
- Updated dependencies
16.10.1
Patch Changes
25e3dde50eeb3, (opens new window) - Upgrade@typescript-eslintdependencies from v5 to v7- Updated dependencies
16.10.0
Minor Changes
-
b2a44b7d3ce87, (opens new window) - Extendno-modal-labelto disallowmodalProps.labelon modal entry-point triggers.Exclude ads-mcp get-lint-rules from content and deprecated-import ratcheting (docs embed intentional bad examples as strings).
16.9.0
Minor Changes
db14bab6f54dc, (opens new window) - Make modal title rules error instead of warn.
16.8.1
Patch Changes
2866cc2465350, (opens new window) - Exclude jira eslint-plugin restricted rules from barrel import ratcheting. Exclude ads-mcp codegen from deprecated entry-point import ratcheting (docs embed example imports). Point use-pressable-motion docs at compiled Pressable.- Updated dependencies
16.8.0
Minor Changes
bbc31818ea186, (opens new window) - Extenduse-popup-labelto coverPopupTriggerfrom@atlassian/entry-points/popup-trigger.
16.7.0
Minor Changes
b3652ef9d1db3, (opens new window) - Extenduse-pressable-motionto suggest semantic hover and pressed motion tokens for native button colour transitions.
16.6.0
Minor Changes
a54598e30d32b, (opens new window) - Fix de-barrelling support in several additional rules so they continue to recognize Atlaskit components when consumers import from subpath entrypoints instead of package root barrels. Updated rules:use-simple-fielduse-simple-formuse-field-message-wrapperuse-correct-fielduse-character-counter-fieldno-placeholderno-readonly-or-disabled-inputsuse-should-render-to-parentensure-proper-xcss-usagelozenge-badge-tag-labelling-system-migration
16.5.0
Minor Changes
5ff2cf3cc5699, (opens new window) - Adduse-pressable-motionto suggest semantic hover and pressed motion tokens for Pressable colour transitions.
16.4.0
Minor Changes
8d9f7d9d4e40d, (opens new window) - Fix de-barrelling support in several rules so they continue to recognize Atlaskit components when consumers import from subpath entrypoints instead of package root barrels. Updated rules:no-html-anchorno-html-headingno-html-imageno-html-codeno-html-text-inputno-html-textareano-separator-with-list-elementsensure-avatar-tag-avatar-propsenforce-inline-styles-in-selectuse-datetime-picker-calendar-buttonuse-drawer-labeluse-popup-labeluse-tag-group-labeluse-heading-level-in-section-messageuse-modal-dialog-close-buttonuse-heading-level-in-spotlight-carduse-spotlight-package
16.3.0
Minor Changes
6b78df4959ab8, (opens new window) - Add new rule for enforcing the usage ofModalTitlewithin a modal header.
16.2.1
Patch Changes
00f3166426df4, (opens new window) - add eslint rule for cssMapScope and ratcheting rule
16.2.0
Minor Changes
9f115ecc01686, (opens new window) - Create a new rule to block usage oflabelin modal dialog.
16.1.1
Patch Changes
- Updated dependencies
16.1.0
Minor Changes
b5338e4d22f84, (opens new window) - Update @atlaskit/design-system/no-emotion-primitives to handle de-barrelled entrypoints.
16.0.1
Patch Changes
88a1176b97a25, (opens new window) - Internal TypeScript typecheck fixes for ts7 (tsgo) adoption. No functional or API changes.
16.0.0
Major Changes
-
db02bae78813d, (opens new window) - Remove theuse-primitivesrule and its Box recommendation.This is a breaking change. After upgrading, remove
@atlaskit/design-system/use-primitivesfrom your ESLint configuration and any ESLint disable comments to avoid "Definition for rule was not found" errors.
Patch Changes
- Updated dependencies
15.6.1
Patch Changes
- Updated dependencies
15.6.0
Minor Changes
2f56c78f969b8, (opens new window) - Update i18n NPM package versions for teamwork-graph (Group 16)
Patch Changes
- Updated dependencies
15.5.0
Minor Changes
-
62b5aa6adc358, (opens new window) - Completes deprecation guidance for the legacy WidthDetector default export.Use
WidthObserverfrom@atlaskit/width-detector/width-observerinstead.
15.4.0
Minor Changes
-
0af52c9020b98, (opens new window) - Addexpand-motion-shorthandrule to@atlaskit/eslint-plugin-design-systemso it is documented on the design system website. ExpandstransitionandanimationCSS shorthand properties into their individual sub-properties so values can be replaced with motion tokens.Deprecate the
compiled/expand-motion-shorthandrule in@atlaskit/eslint-plugin-platformin favour of@atlaskit/design-system/expand-motion-shorthand.
Patch Changes
- Updated dependencies
15.3.0
Minor Changes
c012f03a95a5a, (opens new window) - Remove modalautoFocusrule because type has been updated to remove unwanted case.
15.2.0
Minor Changes
7c344654b5d24, (opens new window) - Deprecates FocusRing, useFocusRing, and their entrypoints. UseFocusablefrom@atlaskit/primitives/compiled/focusableinstead.
15.1.2
Patch Changes
- Updated dependencies
15.1.1
Patch Changes
2b3eee14e8063, (opens new window) - Update lozenge-badge-tag-labelling-system-migration ESLint rule and codemod for the new Lozenge API.- Lozenges no longer migrate to
<Tag>. The<Lozenge>component stays as<Lozenge>. - Legacy
appearancevalues are now auto-fixed in-place to new semantic values:default→neutral,inprogress→information,moved→warning,removed→danger,new→discovery. The valuesuccessis unchanged. isBoldis intentionally not flagged: while the feature flagplatform-dst-lozenge-tag-badge-visual-upliftsis OFF, users still needisBoldto render subtle Lozenges. It will be cleaned up in a separate pass after rollout.
- Lozenges no longer migrate to
15.1.0
Minor Changes
c6fce4a43355c, (opens new window) - Add newuse-tokens-motionESLint rule to enforce the use of motion design tokens for durations and easing values. This rule was moved from@atlaskit/eslint-plugin-platform(compiled/use-motion-token-values) to the design-system plugin as a first-class rule.
15.0.0
Major Changes
-
f2dc9097319f0, (opens new window) - ### Dropped support for legacy Typescript 4 types. Typescript 5 is now the new minimum.Removes the
typesVersionsproperty anddist/types-ts4.5directory from the dist.Types are now exclusively via the
"types": "dist/types/index.d.ts"property.- "typesVersions": { - ">=4.5 <4.9": { - "*": [ - "dist/types-ts4.5/*", - "dist/types-ts4.5/index.d.ts" - ] - } - },
Patch Changes
- Updated dependencies
14.4.0
Minor Changes
9e3507590f1b4, (opens new window) - Add rule to encourage use ofheadingLevelin section message component.
14.3.2
Patch Changes
7affa87ae5857, (opens new window) - Add ESLint v9/v10 RuleContext compatibility for platform ESLint packages consumed by Jira.- Updated dependencies
14.3.1
Patch Changes
- Updated dependencies
14.3.0
Minor Changes
fca44a3d35abe, (opens new window) - Adds Nav 3 packages (@atlaskit/atlassian-navigation+@atlaskit/page-layout+@atlaskit/side-navigation) to the deprecated config.
14.2.0
Minor Changes
ec906640e3e00, (opens new window) - Add new components to theuse-should-render-to-parentrule.
14.1.0
Minor Changes
06a50a4e30a01, (opens new window) - Add rule to discourage usage of disabled and readonly inputs.
14.0.0
Major Changes
b1e060ffdd070, (opens new window) - Remove no-custom-icons ESLint rule
Patch Changes
- Updated dependencies
13.44.2
Patch Changes
- Updated dependencies
13.44.1
Patch Changes
- Updated dependencies
13.44.0
Minor Changes
bc69c1d196bae, (opens new window) - RemovedshouldEnforceFallbacksoption from theuse-tokens-typographyrule. The auto-fixer no longer addsfontFallbackimports from@atlaskit/theme/typography.
Patch Changes
- Updated dependencies
13.43.2
Patch Changes
- Updated dependencies
13.43.1
Patch Changes
08170da1fbf62, (opens new window) - Migrate spacing prop usages on icons to Flex wrapper08170da1fbf62, (opens new window) - Update codemod and eslint to handle different scenarios to migrate spacing props- Updated dependencies
13.43.0
Minor Changes
7c66756e9392b, (opens new window) - Add use-textfield-autocomplete rule to flag inaccessible use of autocomplete prop for email, url and tel text fields
13.42.0
Minor Changes
0daada0469ab8, (opens new window) - Remove@atlaskit/icon/migration-mapentry point,IconMigrationMapandIconMigrationSizeGuidancetypes from@atlaskit/icon, and@atlaskit/icon-lab/migration-mapentry point. These were only needed to support the legacy glyph icon migration path which has now been fully completed. Remove theno-legacy-iconsESLint rule from@atlaskit/eslint-plugin-design-systemas@atlaskit/icon/glyphand@atlaskit/icon/core/migrationno longer exist.
Patch Changes
- Updated dependencies
13.41.3
Patch Changes
f1ef2305b8862, (opens new window) - Remove legacy icon glyphs and oldName prop support from metadata core.- Updated dependencies
13.41.2
Patch Changes
5e06fddfce409, (opens new window) - Rename codemod tonext-icon-spacing-to-flex-primitive(now discoverable vianpx @atlaskit/codemod-cli) and updateno-icon-spacing-propESLint rule to generateFlexwrapper instead ofBox.- Updated dependencies
13.41.1
Patch Changes
af619ffaf19e1, (opens new window) - Addno-icon-spacing-propESLint rule to flag and suggest migration of deprecatedspacingprop on icon components.- Updated dependencies
13.41.0
Minor Changes
dcbccb3da71a6, (opens new window) - Theuse-side-nav-items-packagerule has been removed.
13.40.4
Patch Changes
1f45f35f80c0a, (opens new window) - use-spotlight-package now triggers for specific import specifiers, and ignores modal related specifiers.- Updated dependencies
13.40.3
Patch Changes
000d0a2d3aca2, (opens new window) - Remove non-erasable syntax (e.g. enums, namespaces with runtime code) from package
13.40.2
Patch Changes
f3af0f1353dd5, (opens new window) - Remove legacy icon glyphs and oldName prop support from metadata core.- Updated dependencies
13.40.1
Patch Changes
- Updated dependencies
13.40.0
Minor Changes
8c9a9c4333c8a, (opens new window) - Theuse-side-nav-items-packagelint rule has been updated to change the fix for barrel imports to a suggestion.
13.39.0
Minor Changes
4467a975004be, (opens new window) - Adds the ruleuse-side-nav-items-package, for assisting with the migration of side nav item components to the package@atlaskit/side-nav-items.
13.38.1
Patch Changes
414f1cb19fe79, (opens new window) - Fix ensure-design-token-usage so Tag’s color prop is allowed when scope lookup fails by adding an AST fallback for imports from @atlaskit/tag.
13.38.0
Minor Changes
93ff2e6c56a27, (opens new window) - Theensure-design-token-usageESLint rule now allowscolorprop with string values (e.g.,"red","blue") on Tag components imported from@atlaskit/tagor its sub-entrypoints (e.g.,@atlaskit/tag/simple-tag,@atlaskit/tag/removable-tag)
13.37.0
Minor Changes
37d704adec380, (opens new window) - Adds theensure-avatar-tag-avatar-propseslint rule which ensures that theavatarprop onAvatarTagdoes not include controlled props (size,borderColor,appearance). These are managed internally byAvatarTagbased on thetypeprop.
13.36.2
Patch Changes
- Updated dependencies
13.36.1
Patch Changes
3c3757717bc78, (opens new window) - Introduced a temporary feature to theno-unsafe-design-token-usagerule to allow token fallbacks for tokens specified inUNSAFE_ignoreTokenseven iffallbackUsageis set to 'none'. This should not be used and exists only to aid migration. It will be removed in the near future.
13.36.0
Minor Changes
3147ae92ea7bd, (opens new window) - Updates lozenge-badge-tag-labelling-system-migration eslint rule to include the migration_fallback prop so that teams can adopt the Tag API without triggering an immediate visual change.
13.35.1
Patch Changes
- Updated dependencies
13.35.0
Minor Changes
0a325377cc8bf, (opens new window) -use-primitives-textwill autofix<Text size="UNSAFE_small">to<Text size="small">.
13.34.1
Patch Changes
- Updated dependencies
13.34.0
Minor Changes
dd764a0fde24c, (opens new window) - Add rule to enforce simple ADS forms.
13.33.0
Minor Changes
dfd88c3eda55b, (opens new window) - Add rule to enforce simplified fields in form implementations.
13.32.0
Minor Changes
7925336391df8, (opens new window) - Remove deprecated no-utility-icons ESLint rule as utility icons have been fully removed from @atlaskit/icon package.
Patch Changes
- Updated dependencies
13.31.0
Minor Changes
7de53802511d2, (opens new window) - Adds tag migration to the labelling system visual uplift migration eslint rule. Renaming lozenge-isBold-and-lozenge-badge-appearance-migration to lozenge-badge-tag-labelling-system-migration.
13.30.1
Patch Changes
c355e102b3fc0, (opens new window) - Update documentation for field message wrapper rule.- Updated dependencies
13.30.0
Minor Changes
24edc07c201e2, (opens new window) -use-tokens-typographynow only matches and supports tokens from the refreshed typography theme. Changes include:font.body.UNSAFE_smallwill no longer be suggested in autofixes.- Both 11px and 12px will now be autofixed to the
font.body.smalltoken. - Heading tokens will only be suggested if bold font weights (700 or 653) are used.
Patch Changes
- Updated dependencies
13.29.3
Patch Changes
da8c77a7aa301, (opens new window) - Update the use-character-counter-field rule to include guidance for when to use the standalone character counter component
13.29.2
Patch Changes
- Updated dependencies
13.29.1
Patch Changes
d14ea5f60b689, (opens new window) - chore: migrate platform UI & component libraries icon imports from migration paths to core
13.29.0
Minor Changes
3e6f7b52a2689, (opens new window) - Add rule to suggest usage of CharacterCounterField when using Textfield or Textarea with minLength/maxLength properties
13.28.0
Minor Changes
3f069f2616f1b, (opens new window) - Add rule to enforce usage of message wrapper for field messaging components.
13.27.1
Patch Changes
1df7a843495f6, (opens new window) - Removes eslint 'lozenge-isBold-and-lozenge-badge-appearance-migration' rule from the recommended set of Design System rules.
13.27.0
Minor Changes
32751f9d05b33, (opens new window) - Introduces two new rules which guard against improper usage of.toMatchSnapshotand.toMatchInlineSnapshot
13.26.0
Minor Changes
35453fb5a0310, (opens new window) - Updates thelozenge-appearance-and-isBold-migrationto belozenge-isBold-and-lozenge-badge-appearance-migrationto help migrate deprecated Badge usages to the new API as part of the Labelling System Phase 1 migration as well as lozenge.
13.25.0
Minor Changes
d50ecf8e02d28, (opens new window) - Updateduse-tokens-shaperule to suggest theradius.xxlargetoken replacement for 16px/1rem values.
Patch Changes
- Updated dependencies
13.24.2
Patch Changes
453ffbfcd89a0, (opens new window) - Typography lint rulesuse-tokens-typography,use-primitives-textanduse-headingadded to recommended rules.
13.24.1
Patch Changes
9e8597d0a762f, (opens new window) - Update lozenge-appearance-and-isbold-migration rule to preserve appearance prop (no color prop change)
13.24.0
Minor Changes
6346354ff2153, (opens new window) - Add a new rulelozenge-appearance-and-isbold-migrationto help migrate deprecated Lozenge usages to the new API or Tag component as part of the Labelling System Phase 1 migration
13.23.4
Patch Changes
f0d92beae2f40, (opens new window) - Removes utility icons entrypoints from the '@atlaskit/icon' package. Migrates related packages to update their imports.- Updated dependencies
13.23.3
Patch Changes
- Updated dependencies
13.23.2
Patch Changes
789b0a7d82394, (opens new window) - Updateensure-proper-xcss-usageto account for style declarations after usage.
13.23.1
Patch Changes
70773e71f139a, (opens new window) - Update description for use-spotlight-package.70773e71f139a, (opens new window) - Update tests.
13.23.0
Minor Changes
8bb8c54e2f01f, (opens new window) - Create use-spotlight-package rule.
13.22.0
Minor Changes
4df3a43323a47, (opens new window) - AddedturnOffAutoFixerconfiguration option to theno-deprecated-importsrule, allowing users to disable automatic code fixes while still reporting deprecated import violations.
13.21.3
Patch Changes
- Updated dependencies
13.21.2
Patch Changes
437668dfbdec9, (opens new window) - Add explicit types to a number of DST components- Updated dependencies
13.21.1
Patch Changes
f49681ffca5bc, (opens new window) - Fixed an issue with theensure-design-token-usagerule, where it was identifying non-issues with the@atlaskit/tilebackgroundColorprop.
13.21.0
Minor Changes
8a95abe487d79, (opens new window) - - Addeduse-tokens-shaperule to enforce borderRadius and borderWidth values.- Updated
ensure-design-token-usagerule to apply correct shape tokens. Note this rule should not be used for shape - instead use theuse-tokens-shaperule instead.
- Updated
13.20.1
Patch Changes
2896429aaa267, (opens new window) - Update the no-custom-icons eslint rule to include checking for custom svg usage
13.20.0
Minor Changes
e8f8ff85f4834, (opens new window) - Add cssmap support for no-physical-properties rule
13.19.6
Patch Changes
23bcc5bbc9cee, (opens new window) - Internal changes to how border radius is applied.- Updated dependencies
13.19.5
Patch Changes
- Updated dependencies
13.19.4
Patch Changes
- #198800, (opens new window)
b57fbbece226f, (opens new window) - Fixed some false positives in @atlaskit/design-system/use-modal-dialog-close-button ESLint rule
13.19.3
Patch Changes
- Updated dependencies
13.19.2
Patch Changes
- #192592, (opens new window)
558893bdbc7c3, (opens new window) - Fixed no-legacy-icons auto fixer to retain size prop when migrating from migration to final core entry point - Updated dependencies
13.19.1
Patch Changes
- #188952, (opens new window)
1a88e6e2601ae, (opens new window) - Migrated usage of renamed/deprecated icons - Updated dependencies
13.19.0
Minor Changes
- #187495, (opens new window)
8c0b4fd35134d, (opens new window) - Introduces new ESLint rule to identify unused variables in cssMap.
13.18.1
Patch Changes
- #188850, (opens new window)
8b19a85abe51e, (opens new window) - Add nmore cases to the new use correct field rule. - Updated dependencies
13.18.0
Minor Changes
- #187514, (opens new window)
c159d1d45ed81, (opens new window) - Add new rule to check that inputs use the correct field component from form.
Patch Changes
- Updated dependencies
13.17.3
Patch Changes
- Updated dependencies
13.17.2
Patch Changes
- Updated dependencies
13.17.1
Patch Changes
- #162714, (opens new window)
e92912cc20871, (opens new window) - Fixes the import order bug in the no-utility-icons eslint rule.
13.17.0
Minor Changes
- #161015, (opens new window)
c15d225be602e, (opens new window) - Adds aenableAutoFixerflag in the no-utility-rule config to allow more flexibility for developers.
13.16.1
Patch Changes
- #159753, (opens new window)
756c84e9b07d1, (opens new window) - Update no-utility-icons rule to add more robust fixes for new buttons cases.
13.16.0
Minor Changes
- #157767, (opens new window)
f3d552d85708a, (opens new window) - Introduces new ESLint rule to identify, discourage, and, where possible, fix use of utility icons.
Patch Changes
- Updated dependencies
13.15.0
Minor Changes
- #149822, (opens new window)
f9ab0e846ae21, (opens new window) - Updated to supportsizeprop for new icons from@atlaskit/icon.
Patch Changes
- Updated dependencies
13.14.2
Patch Changes
- #152496, (opens new window)
0411aae834d96, (opens new window) - Fix typescript issue for missing "json-schema-to-ts" dependency introduced byno-emotion-primitiveslint rule changes
13.14.1
Patch Changes
- Updated dependencies
13.14.0
Minor Changes
- #151383, (opens new window)
772bdcfd2ec5b, (opens new window) - Addno-emotion-primitiveslint rule.
13.13.0
Minor Changes
- #147266, (opens new window)
b5c2728320969, (opens new window) - Add rule to encourage use of DS textarea component. - #147256, (opens new window)
df8b0619d7ebf, (opens new window) - Add rule to encourage use of DS textfield component.
13.12.0
Minor Changes
- #145064, (opens new window)
7491e06cbbd8f, (opens new window) - Add rule to encourage the usage of ADS radio over native radio input elements.
13.11.0
Minor Changes
- #145669, (opens new window)
1bbae59bc57c9, (opens new window) - Add rule to encourage use of DS code component over native HTML elements.
13.10.0
Minor Changes
- #145568, (opens new window)
43180d95604d6, (opens new window) - Add rule to encourage use of the DS heading component over native HTML headings.
13.9.0
Minor Changes
- #145662, (opens new window)
acf5f6979c85f, (opens new window) - Add rule to encourage use of the DS select component over native HTML selects.
13.8.0
Minor Changes
- #145074, (opens new window)
97a43bf0f52f6, (opens new window) - Add rule to encourage the usage of ADS range over native range input elements.
13.7.0
Minor Changes
- #145592, (opens new window)
101d557dd9e1d, (opens new window) - Add rule for encouraging use of the image component overimg.
Patch Changes
- #145048, (opens new window)
4381ccf4b9460, (opens new window) - Refactor duplicated utilities into own reusable files.
13.6.0
Minor Changes
- #145045, (opens new window)
5aa392ee60fd9, (opens new window) - Add rule to encourage the usage of ADS checkboxes over native checkbox input elements.
13.5.0
Minor Changes
- #141971, (opens new window)
c16899828af3d, (opens new window) - Add new rule forshouldRenderToParentprop usage in popup and dropdown menu components.
13.4.1
Patch Changes
- #136299, (opens new window)
4da98e435c8da, (opens new window) - Add better logic touse-modal-dialog-close-buttonrule.
13.4.0
Minor Changes
- #133012, (opens new window)
767ec60923d2e, (opens new window) - Adds a new eslint rule to ensure that the cx function is used properly in xcss props. This is required for smooth primitives migration onto compiled styles from emotion.
13.3.0
Minor Changes
- #131514, (opens new window)
74ddca032fe0f, (opens new window) - Fixes @atlaskit/eslint-plugin-ui-styling-standard/consistent-css-prop-usage to allow aliased imports, eg., import { css as css2 } from '@compiled/react'
13.2.0
Minor Changes
- #132664, (opens new window)
30cdea781a4b2, (opens new window) - Add rule for booleans onautoFocusin modal dialog.
Patch Changes
- Updated dependencies
13.1.2
Patch Changes
- #131298, (opens new window)
13ebcc2fd6d07, (opens new window) - Updateuse-modal-dialog-close-buttonrule to include code within expression containers and logical expressions.
13.1.1
Patch Changes
- #127093, (opens new window)
1378ea7a99ce1, (opens new window) - Upgradesjscodeshiftto handle generics properly. - Updated dependencies
13.1.0
Minor Changes
- #127961, (opens new window)
900f91f38c047, (opens new window) - Add rule for modal dialog to ensure a close button is used.
13.0.4
Patch Changes
- #128626, (opens new window)
142648610a166, (opens new window) - Fixes theconsistent-css-prop-usagerule to allowxcsspass-through values to thexcssprop.
13.0.3
Patch Changes
- Updated dependencies
13.0.2
Patch Changes
- #122856, (opens new window)
24978014b9d89, (opens new window) - Update messaging for no-custom-icons to provide guideance around third party logos.
13.0.1
Patch Changes
- #119942, (opens new window)
d5163d608020e, (opens new window) - "Modify the no-unsafe-design-token-usage rule to exclude the getTokenValue function when used in 'none' mode for fallbackUsage. This adjustment is necessary because the getTokenValue function is not covered by the build-time @atlaskit/tokens/babel-plugin by design. As a result, using this function without a fallback can be unsafe, as it defaults to a blank value if applied on a webpage where the ADS theme is not enabled."
13.0.0
Major Changes
-
#117363, (opens new window)
10a0f7f6c2027, (opens new window) - This package'speerDependencieshave been adjusted forreactand/orreact-domto reflect the status of only supporting React 18 going forward. No explicit breaking change to React support has been made in this release, but this is to signify going forward, breaking changes for React 16 or React 17 may come via non-major semver releases.Please refer this community post for more details: https://community.developer.atlassian.com/t/rfc-78-dropping-support-for-react-16-and-rendering-in-a-react-18-concurrent-root-in-jira-and-confluence/87026, (opens new window)
Patch Changes
- Updated dependencies
12.2.0
Minor Changes
- #113173, (opens new window)
46aad36c62f2f, (opens new window) - Cuts a new changeset to land ESLint v9 changes to NPM fully (shipped internally Feb 5th: https://bitbucket.org/atlassian/atlassian-frontend-monorepo/pull-requests/109855, (opens new window))
Patch Changes
- Updated dependencies
12.1.0
Minor Changes
- #112918, (opens new window)
4a2db8e5349f6, (opens new window) - Fixed bugs withensure-design-token-usage,no-legacy-iconsand also support ESLint v9 context/sourceCode methods
12.0.0
Major Changes
- #111194, (opens new window)
2e69750df9b79, (opens new window) - Typography lint rules enable all patterns by default:use-tokens-typographyenables all patterns by default. Set lint rule config topatterns: ['style-object']for old default behaviour.use-primitives-textanduse-headingenables theenableUnsafeReportoption by default. Set lint rule config toenableUnsafeReport: falsefor old default behaviour.
11.10.0
Minor Changes
- #109060, (opens new window)
4660ec858a305, (opens new window) - UpdateReactfrom v16 to v18
Patch Changes
- #105414, (opens new window)
6fe5695da9ee6, (opens new window) -use-tokens-typographybug fix for font size 0 and non-pixel values. - Updated dependencies
11.9.0
Minor Changes
- #108380, (opens new window)
14e491279e7ae, (opens new window) - Fixensure-design-token-usageto allow tokens for all Primitives, not just the root@atlaskit/primitivesentrypoint.
11.8.4
Patch Changes
- #104581, (opens new window)
d7e7feee083ad, (opens new window) - Updated behavior of no-legacy-icons autofixer to maintain appropriate sizing for legacy icon-only button components
11.8.3
Patch Changes
- #103619, (opens new window)
ce8239e9cef45, (opens new window) - make config type definitions compatible with typed flat configs
11.8.2
Patch Changes
- #102117, (opens new window)
c52f9296040c2, (opens new window) - Fix for false positives in XCSS styles foruntokenized-propertiespattern foruse-tokens-typographyrule. - Updated dependencies
11.8.1
Patch Changes
- #101736, (opens new window)
e2351dd4c21c2, (opens new window) -use-tokens-typographyallowinheritforfont,fontFamilyandfontWeightstyle properties.
11.8.0
Minor Changes
- #101370, (opens new window)
d962c1dfecac6, (opens new window) -use-tokens-typographyrule now reports on untokenized compositefontstyles. This new pattern is disabled by default but can be enabled under the nameuntokenized-properties.
11.7.0
Minor Changes
- #101162, (opens new window)
e553a7506de2d, (opens new window) -use-tokens-typographyrule can now restrict capitalisation by banning the use oftextTransform: 'uppercase'. This new pattern is disabled by default but can be enabled under the namerestricted-capitalisation.
Patch Changes
- Updated dependencies
11.6.1
Patch Changes
- #180521, (opens new window)
595c61de31458, (opens new window) - add missing meta.schema to no-unsafe-design-token-usage rule
11.6.0
Minor Changes
2034d96c50c40, (opens new window) - support eslint v9
11.5.0
Minor Changes
- #178296, (opens new window)
0111a43a2fcfb, (opens new window) -use-tokens-typographyrule now reports on banned style properties likelineHeightandletterSpacing. This new pattern is disabled by default but can be enabled under the namebanned-properties.
11.4.1
Patch Changes
- #177916, (opens new window)
e37f82d3c0388, (opens new window) - Fix foruse-tokens-typographyfont weight number values as strings.
11.4.0
Minor Changes
- #177115, (opens new window)
baf5f90665687, (opens new window) -use-tokens-typographyrule now reports onfontFamilyused with raw values. If a matching token is found, a fix is suggested. This new pattern is disabled by default but can be enabled under the namefont-family.
11.3.0
Minor Changes
- #175432, (opens new window)
0a1070983ac76, (opens new window) -use-tokens-typographyrule now reports onfontWeightused with raw values (e.g. 600, 'bold'). If a matching token is found, a fix is suggested. This rule is disabled by default but can be enabled under the namefont-weight.
Patch Changes
- #173274, (opens new window)
fd5bac37c73ba, (opens new window) - Fix eslint type error.
11.2.0
Minor Changes
-
#175583, (opens new window)
75911cb003bd5, (opens new window) - #### no-legacy-iconsAdd new
shouldUseSafeMigrationModeflag to no-legacy-icons rule. When set to true, the autofixer will only attempt to migrate icons that are visually similar and do not include secondary colors or sizes other than medium.Additionally, the autofixer will no longer attempt to explicity add
color="currentColor"for every migration as this is now the default.no-deprecated-apis
Refactored to fix type errors and match code style of other rules.
Patch Changes
- Updated dependencies
11.1.0
Minor Changes
- #169407, (opens new window)
fc5784691adcf, (opens new window) -use-tokens-typographyrule now reports onfontSizeused with tokens since this is invalid syntax. If the token is a typography token, it will suggest switchingfontSizetofontwith a fixer. If the token is not a typography token it will only report.
11.0.2
Patch Changes
- #171994, (opens new window)
be58e4bb2e387, (opens new window) - Migrating usages of UNSAFE types and entrypoints that have been renamed in@atlaskit/iconand@atlaskit/icon-lab. - Updated dependencies
11.0.1
Patch Changes
- #169436, (opens new window)
8c910a5de1c93, (opens new window) - Updatesno-legacy-iconto no longer error on references to @atlaskit/icon-object - Updated dependencies
11.0.0
Major Changes
- #168980, (opens new window)
d9aae425eae69, (opens new window) -use-tokens-typographydefaults not adding token fallbacks anymore. Automatic fallbacks can still be enabled by setting theshouldEnforceFallbacks: trueconfig option.
10.26.0
Minor Changes
- #162725, (opens new window)
b2449424247a3, (opens new window) - Updatedno-deprecated-iconslint rule to include deprecated icons and auto fix for icons that have a replacement
Patch Changes
- Updated dependencies
10.25.0
Minor Changes
- #165487, (opens new window)
0e99fc2e1f211, (opens new window) - Add new rule for@atlaskit/datetime-picker. Ensures that the calendar button is used when possible to ensure the picker is accessible. Part of AUTOMAT campaign to migrate all AFM instances of date picker and date time picker to use newshouldShowCalendarButtonprop.
10.24.1
Patch Changes
- #165531, (opens new window)
57f451bda8919, (opens new window) - Adds side-effect config to support Compiled css extraction in third-party apps
10.24.0
Minor Changes
- #165462, (opens new window)
a9c04a2aaf7e4, (opens new window) - Introducing new rule to encourage adding/referencing accessible name to a Onboarding spotlight dialog component.
10.23.2
Patch Changes
- #161311, (opens new window)
adbfbbf9f7aa0, (opens new window) - Updatedno-deprecated-apisrule to mark Headinglevelprop as deprecated.
10.23.1
Patch Changes
- #160428, (opens new window)
6d4fa76f052b2, (opens new window) - Releases an unreleased fix for the '../package.json' not found in @atlaskit/eslint-plugin-design-system@10.23.0
10.23.0
Minor Changes
- #153668, (opens new window)
a6c96d74835d5, (opens new window) - Added a flat config preset equivalents for included eslint configs - #153712, (opens new window)
566eb89dd2b9f, (opens new window) - Introducing new rule to warn the combination of separator andas="li|ol|dl"
10.22.1
Patch Changes
- #153007, (opens new window)
89e8b9b297149, (opens new window) - Updateensure-design-token-usagerule to avoid false positive with Icon Tile component
10.22.0
Minor Changes
- #147366, (opens new window)
7f5bab6a1ebd1, (opens new window) - Add fixes for html anchors in the no-html-anchor rule
10.21.0
Minor Changes
- #142522, (opens new window)
42f1b0abdb783, (opens new window) - Disallow ALL CAPS styles in XCSS using theuse-latest-xcss-syntax-typographyrule.
10.20.0
Minor Changes
- #142315, (opens new window)
4810530a99092, (opens new window) - Addno-dark-theme-vr-testsrule
10.19.0
Minor Changes
- #141841, (opens new window)
80d8b75d97395, (opens new window) - Introducing new rule to encourage adding/referencing accessible name to a TagGroup component.
10.18.2
Patch Changes
- #137821, (opens new window)
bcca6c1789a37, (opens new window) - Rename of@atlassian/icon-labto@atlaskit/icon-lab
10.18.1
Patch Changes
836af8b0a3b3e, (opens new window) - Adds the ability to automigrate more complex automigration cases with multiple of the same icon.
10.18.0
Minor Changes
- #136089, (opens new window)
d0e47b2e03130, (opens new window) - Disallow wrapped tokens for typography properties in XCSS using theuse-latest-xcss-syntax-typographyrule.
10.17.3
Patch Changes
- #134533, (opens new window)
729d2ac5a7b41, (opens new window) - Disallow letter spacing and disallow font weight only when heading font token is used foruse-latest-xcss-syntax-typographyrule.
10.17.2
Patch Changes
- #133689, (opens new window)
5b1de3a5df2be, (opens new window) - Fix bug in no-legacy-icons where in certain tooling, the token() function wasn't recognised correctly when resolving icon colors.
10.17.1
Patch Changes
- #133643, (opens new window)
1ab5ca9bddc97, (opens new window) - Updated the list of upcoming icons after a new set of icons were added - Updated dependencies
10.17.0
Minor Changes
- #131211, (opens new window)
9877a261592a7, (opens new window) - Added an autofixer forno-legacy-iconseslint rule which migrates icons in the "Auto Migration" category to new icons. UseshouldUseMigrationPathoption to control the import path of the new icon.
10.16.0
Minor Changes
- #130413, (opens new window)
1a796c4acf4e9, (opens new window) - Added new eslint plugin, ensure-icon-color
10.15.0
Minor Changes
-
#127511, (opens new window)
db30e29344013, (opens new window) - Widening range ofreactandreact-dompeer dependencies from^16.8.0 || ^17.0.0 || ~18.2.0to the wider range of ``^16.8.0 || ^17.0.0 || ^18.0.0` (where applicable).This change has been done to enable usage of
react@18.3as well as to have a consistent peer dependency range forreactandreact-domfor/platformpackages.
Patch Changes
- Updated dependencies
10.14.0
Minor Changes
- #128926, (opens new window)
5df26d24db3c7, (opens new window) - - Remove config for rules that do not belong in this plugin long-term: '@atlaskit/design-system/no-empty-styled-expression', '@atlaskit/design-system/no-exported-css', '@atlaskit/design-system/no-exported-keyframes' — they may be removed in a future release and prefer@atlaskit/eslint-plugin/ui-styling-standard/recommendedfor this type of rules in the future.- Reconfigure '@atlaskit/design-system/no-invalid-css-map' to work properly of the box alongside ADS.
10.13.0
Minor Changes
- #128427, (opens new window)
ade1e717764e2, (opens new window) - Update no-legacy-icons eslint rule following changes to color prop of new icon components
Patch Changes
- #127303, (opens new window)
8c7d9e510fc2a, (opens new window) - New rule config optionenableUnsafeReportforuse-primitives-textanduse-headingto enable error reporting for native typography elements that are not autofixable. - Updated dependencies
10.12.5
Patch Changes
- #127454, (opens new window)
e869f31dbe200, (opens new window) - No-legacy-icons ESLint rule errors at all references to a legacy icon.
10.12.4
Patch Changes
- #126974, (opens new window)
bf10ab6817404, (opens new window) - Updates the no-legacy-icons eslint rule to account for upcoming icons.
10.12.3
Patch Changes
- #126553, (opens new window)
a8d7e60d3b69d, (opens new window) - Updateno-legacy-iconsrule to use icon migration map from@atlaskit/icon. - Updated dependencies
10.12.2
Patch Changes
- #124172, (opens new window)
19b2005de7c1b, (opens new window) - Wrap use-heading, use-primitives-text and use-latest-xcss-syntax-typography with an error boudary to stop it breaking issue-automat CI.
10.12.1
Patch Changes
- #124216, (opens new window)
66f55374a6828, (opens new window) - use-primitives-text bug fix for inline ESlint ignore statements.
10.12.0
Minor Changes
- #123319, (opens new window)
33c44e0d8f875, (opens new window) - Enabled linting rule to discourage direct usage of HTML anchor elements in favor of Atlassian Design System link components
10.11.2
Patch Changes
- #122050, (opens new window)
db22dc84c34c3, (opens new window) - Moves away from the use of ts-node to esbuild-register for local consumption
10.11.1
Patch Changes
- #120669, (opens new window)
9e1c531090ea4, (opens new window) - Dropped support forUNSAFEicon props in new buttons, which have now been removed. - Updated dependencies
10.11.0
Minor Changes
- #120359, (opens new window)
44b7939afb571, (opens new window) - New rule config optionenableUnsafeAutofixto switch between error or suggest autofixes foruse-tokens-typography,use-primitives-textanduse-heading.
10.10.2
Patch Changes
- #120049, (opens new window)
77504ff274f72, (opens new window) - DSP-19576: Assign names to anonymous default exports
10.10.1
Patch Changes
- #117847, (opens new window)
5795b7b47ceac, (opens new window) - Removes redundant files from NPM deployment - #117920, (opens new window)
57088349e6e38, (opens new window) - Updated guidance on no-legacy-icons lint rule to be more descriptive.
10.10.0
Minor Changes
- #116426, (opens new window)
29d6c074c76ea, (opens new window) - Add lint rule to detect use of custom icons
10.9.0
Minor Changes
- #116062, (opens new window)
2959497ccf910, (opens new window) - AddsshouldAlwaysCheckXcssconfig option toconsistent-css-prop-usageto lint thexcssprop even whenexcludeReactComponentsis enabled.
10.8.2
Patch Changes
- #115815, (opens new window)
0368d6009fc75, (opens new window) - Adds better suggestions to the no-legacy-icons lint rule to detect manual and automatic migration opportunities.
10.8.1
Patch Changes
- #113465, (opens new window)
1b198cf33c32e, (opens new window) - Createuse-latest-xcss-syntax-typographyrule. Bans the use of 'fontSize', 'lineHeight', 'fontWeight' on xcss. - Updated dependencies
10.8.0
Minor Changes
- #111403, (opens new window)
f6f2f96728bc0, (opens new window) - Marking theoverlayprop on new Buttons as deprecated.
10.7.2
Patch Changes
- #112386, (opens new window)
762c18186f898, (opens new window) - Internal refactoring to usecontext.getSourceCode()instead ofcontext.sourceCodeto better support older versions of eslint.
10.7.1
Patch Changes
- #111413, (opens new window)
492737dbcfc65, (opens new window) - Fixesconsistent-css-prop-usageto prevent unsafe auto-fixes. Previously style declarations could be hoisted out of components even if they referenced variables only defined in the component's scope.
10.7.0
Minor Changes
- #110808, (opens new window)
24a3703dbdfe3, (opens new window) - Change use-tokens-typography rule to only suggest fixes.
10.6.1
Patch Changes
- #107720, (opens new window)
b900316d320c7, (opens new window) -use-latest-xcss-syntax: Fix bug that caused an error to be thrown when accessing undefined sourceCode variable. - #93481, (opens new window)
84dab79bd0c08, (opens new window) - Remove deprecation rules foriconGradientStartandiconGradientStopin @atlaskit/logo
10.6.0
Minor Changes
- #99829, (opens new window)
f15d4f35b8f6, (opens new window) - Adduse-menu-section-titleeslint rule.
10.5.0
Minor Changes
- #105106, (opens new window)
c1ef7e00be9d, (opens new window) - Introduces new ESLint rule to identify and discourage use of legacy icons.
10.4.5
Patch Changes
- #107585, (opens new window)
c7428760443b, (opens new window) - Fixes bugs withno-html-buttonandno-html-anchorrules that was falsely reporting for styled components not used in the same file they are defined in.
10.4.4
Patch Changes
- #107425, (opens new window)
54fa5e256f80, (opens new window) - Added@atlaskit/design-system/no-html-buttonrule to recommended configuration
10.4.3
Patch Changes
- #103109, (opens new window)
387067d94233, (opens new window) -use-latest-xcss-syntax- Update toerrorinrecommendedandall. - Updated dependencies
10.4.2
Patch Changes
- #104190, (opens new window)
a6243f719741, (opens new window) -no-banned-imports: Remove banned paths for unsafe Buttons and Pressable primitive
10.4.1
Patch Changes
- #103215, (opens new window)
1108a9b46be2, (opens new window) - Fixed an issue with theuse-tokens-typographyrule where font family properties that were already using a token could be misinterpreted and cause the font family property to be removed.
10.4.0
Minor Changes
- #103102, (opens new window)
3c920b0719af, (opens new window) - Adduse-latest-xcss-syntaxeslint rule.
10.3.1
Patch Changes
- #102908, (opens new window)
b08bb74e2894, (opens new window) - Fixed an issue with theuse-tokens-typographyrule where font weights that were already using a token could break the token matching logic and cause the font weight property to be removed.
10.3.0
Minor Changes
- #102286, (opens new window)
8c56c1feba06, (opens new window) - Adds support forrole="button"inno-html-anchorrule
10.2.1
Patch Changes
- #101749, (opens new window)
08a34b7d741c, (opens new window) - use-primitives-text and use-heading lint rules to not target elements with no children.
10.2.0
Minor Changes
- #96661, (opens new window)
ff9ef688b598, (opens new window) -use-primitivesrule: Adds ability to map negative margin values to negative spacing tokens.
10.1.0
Minor Changes
- #98883, (opens new window)
482fe4d89379, (opens new window) - Automatically insert the default fallback value for a token when fallbacks are enforced
10.0.1
Patch Changes
- #98294, (opens new window)
0663be43d057, (opens new window) - Theensure-design-token-usagerule will now ignorexcss()calls even if thexcssvariable has been aliased.
10.0.0
Major Changes
- #96329, (opens new window)
16e879f9ab10, (opens new window) - Renamed theno-html-button-elementrule tono-html-button. This rule is not yet in use, so it should not be a breaking change. The new name reflects the broadened scope of the rule to not only include<button>elements, but other forms of HTML buttons such as<input type="button" />androle="button".
Minor Changes
- #97630, (opens new window)
8cac5287d0c4, (opens new window) - Adding new rule:no-html-anchor. This discourages usage of native HTML anchors and favors ADS link components.
9.7.0
Minor Changes
- #91673, (opens new window)
e757c83a22ee, (opens new window) - Introducing new rule to encourage adding/referencing accessible name to a Popup component.
9.6.0
Minor Changes
- #94356, (opens new window)
8c4f5854f3da, (opens new window) - Theicon-labelrule now supports label being defined via spreading render props in the new buttons.
9.5.2
Patch Changes
- #92007, (opens new window)
85525725cb0d, (opens new window) - Migrated to the new button component
9.5.1
Patch Changes
- #87213, (opens new window)
c7caf85c839c, (opens new window) - Internal refactoring tono-invalid-css-mapto use new shared utilities from@atlaskit/eslint-utilsfor determining allowed functions calls. - Updated dependencies
9.5.0
Minor Changes
- #91506, (opens new window)
2724a3783955, (opens new window) - Add support for React 18 in non-strict mode.
9.4.1
Patch Changes
- #90125, (opens new window)
3ee5bf94b4fd, (opens new window) - Added theshouldEnforceFallbacksoption to theuse-tokens-typographyrule which can be used to prevent token fallback values being added automatically.
9.4.0
Minor Changes
- #88717, (opens new window)
5332c5b63887, (opens new window) - Adding new eslint rule@atlaskit/design-system/no-direct-use-of-web-platform-drag-and-dropto block using web platform drag and drop directly.
9.3.1
Patch Changes
- #88012, (opens new window)
c478a4d80fc9, (opens new window) - Theno-*-tagged-template-expressionrules will no longer autofix usages with mixins in nested selectors. This is because they were producing an array syntax that is not valid in compiled or styled-components.
9.3.0
Minor Changes
- #87586, (opens new window)
47d9f5fb1b11, (opens new window) - Added use-heading rule
Patch Changes
- #87476, (opens new window)
af296d200ad2, (opens new window) - Internal refactoring to usegetCreateLintRulefrom@atlaskit/eslint-utils - Updated dependencies
9.2.5
Patch Changes
- #87434, (opens new window)
dda5ca94da13, (opens new window) -use-primitives- bail on dimension properties that have token call values.
9.2.4
Patch Changes
- #86638, (opens new window)
f003f07e88e1, (opens new window) - Internal refactoring to use a shared@atlaskit/eslint-utilspackage - Updated dependencies
9.2.3
Patch Changes
- #86352, (opens new window)
c32535ff8734, (opens new window) - Fixed an issue where theensure-design-token-usagerule (and by extensionensure-design-token-usage/previewrule) would report on color properties even if"color"was not provided in the domains config.
9.2.2
Patch Changes
- #86321, (opens new window)
b353b26e22b6, (opens new window) - Improvements forno-*-tagged-template-expressionrules:- Fixed a bug that could produce syntax errors when mixins were present in nested selectors.
- Disabled autofixing styled components usages with mixins in nested selectors, as there is no general equivalent.
- Disabled autofixing function interpolations with non-expression bodies.
9.2.1
Patch Changes
- #85899, (opens new window)
4ee3baaad3b7, (opens new window) - Loosen our final autofix check to just ignore all interpolated keys or properties in general for allno-*-tagged-template-expressionrules as they may result in broken code in some edge-cases.
9.2.0
Minor Changes
- #84330, (opens new window)
391be0d8e414, (opens new window) - -prefer-primitives: This rule is now deprecated. Please useuse-primitivesinstead.ensure-design-token-usage/preview: This rule is now deprecated. Please useuse-tokens-spaceinstead.
9.1.0
Minor Changes
- #84334, (opens new window)
b2134858ba58, (opens new window) - Theuse-tokens-typographyrule now applies token fallbacks that reference the constants exported via@atlaskit/theme/typography, rather than applying the fallback string inline.
9.0.0
Major Changes
-
#83454, (opens new window)
be8b7ad6ff8e, (opens new window) - Remove name autofixer fromconsistent-css-prop-usage. Variables for css / xcss / cssMap functions will no longer be required to end with "Styles".[BREAKING] Some rule options have been changed:
fixNamesOnlyandautoFixNameshave been removed, as there is no longer an autofixer that enforces variable names.- If you use
fixNamesOnly: true, we recommend switching to usingautoFix: false. - Users of the
autoFixNamesoption should remove this from their configuration.
- If you use
autoFixoption has been added. This controls whether the remaining autofixers should run or not (e.g. hoistingcssfunction calls, wrapping objects incssfunction calls), and istrueby default.
8.38.0
Minor Changes
- #74844, (opens new window)
7c7b8a771792, (opens new window) - Createduse-tokens-spacelint rule to replaceensure-design-token-usagerule for space values.
8.37.3
Patch Changes
- #83116, (opens new window)
8d4e99057fe0, (opens new window) - Upgrade Typescript from4.9.5to5.4.2
8.37.2
Patch Changes
-
#80662, (opens new window)
4833299b00d4, (opens new window) - Forno-css-tagged-template-expressionandno-styled-tagged-template-expression:- When importing from Emotion, stop applying autofixer when the styles contain
!important. - When importing from any library, stop applying autofixer when a selector contains a tagged template interpolation (previously only styled-components).
- When importing from Emotion, stop applying autofixer when the styles contain
-
#81697, (opens new window)
cf3483e7e87d, (opens new window) - Adding a missinglicenseentry to thepackage.jsonfor this package. This package was already licensed underApache-2.0(seeLICENSEfile), so this change is not changing it's license.
8.37.1
Patch Changes
- #81307, (opens new window)
6420f933c8ae, (opens new window) - Fix issue whereuse-primitiveswas incorrectly transforming styles with string properties.
8.37.0
Minor Changes
- #81166, (opens new window)
a249a1bd29a6, (opens new window) - Upgrade ESLint to version 8
8.36.3
Patch Changes
- #77172, (opens new window)
0e9162a7371a, (opens new window) - Fixes issues with CSS var and content string handling for theno-*-tagged-template-expressionrules
8.36.2
Patch Changes
- #80471, (opens new window)
bf21a3bfe85e, (opens new window) - AddautoFixNamesoption toconsistent-css-prop-usage. When set to false, the autofix naming that enforces style variables ending in the word "Styles" will be turned off. True by default. - #80469, (opens new window)
0b4b7268ef16, (opens new window) - Fixed an issue withensure-design-token-usagewhere styles inside xcss could be incorrectly linted against. - #80518, (opens new window)
0f90b6e17490, (opens new window) - Ignore function-like interpolations in selectors forno-css-tagged-template-expression,no-styled-…, andno-keyframes-…
8.36.1
Patch Changes
- #79810, (opens new window)
8c6e96aa3cf0, (opens new window) - Fixed an issue withensure-design-token-usagewhere color props on primitive components could report an error.
8.36.0
Minor Changes
- #78346, (opens new window)
d20b2626a3b0, (opens new window) - Adds support for use-primitives linting rule matching JSX elements declared before styles.
8.35.1
Patch Changes
- #78282, (opens new window)
e19154833d5f, (opens new window) - Missing allowed props check for single paragraph elements
8.35.0
Minor Changes
- #77589, (opens new window)
744ea21e3367, (opens new window) - Update use-primitives-text rule for new defaults in Text primitive component
Patch Changes
- Updated dependencies
8.34.0
Minor Changes
- #75311, (opens new window)
96ca033f8748, (opens new window) - Added newuse-tokens-typographyrule that handles converting fontSize and similar font properties to tokens. Removed typography functionality fromensure-design-token-usagerule.
8.33.0
Minor Changes
- #77488, (opens new window)
babedf52898f, (opens new window) - Add support for inlinecxfunc insidexcssprop for theconsistent-css-prop-usagerule.
8.32.2
Patch Changes
- #77485, (opens new window)
887b1a3193ce, (opens new window) - Forno-styled-tagged-template-expression, do not autofix component selectors forstyled-componentsimplementations
8.32.1
Patch Changes
- #77519, (opens new window)
6507c28d3c88, (opens new window) - Refactor implementation ofno-css-tagged-template-expression. No change to functionality expected.
8.32.0
Minor Changes
- #58240, (opens new window)
39f3c929f0c4, (opens new window) - Add new ruleno-html-button-elementto enforce usage of Pressable and Button
8.31.0
Minor Changes
- #75600, (opens new window)
6259d0d74690, (opens new window) - Migrates the ESLint rule from@atlaskit/design-system/local-cx-xcssto@atlaskit/ui-styling-standard/local-cx-xcss—disruption is unexpected as this rule is not in use.
8.30.0
Minor Changes
- #75603, (opens new window)
51cf4796aa02, (opens new window) - Use primitives text component rule
8.29.1
Patch Changes
- #70616, (opens new window)
e80736fccc77, (opens new window) - Moving "no-unsupported-drag-and-drop-libraries" check to pdnd 1.0 API - #75662, (opens new window)
70585b558ebd, (opens new window) - Adding "@formkit/drag-and-drop" to exclusion list for drag and drop library usage
8.29.0
Minor Changes
- #74069, (opens new window)
9bdcd6529453, (opens new window) - Allow use-primitives linting rule to lint style declarations with dimension properties.
8.28.0
Minor Changes
- #72983, (opens new window)
86e7b28c9c23, (opens new window) - Portedno-keyframes-tagged-template-expressionandno-styled-tagged-template-expressionrules from@compiled/eslint-plugin
8.27.0
Minor Changes
-
#72966, (opens new window)
ec187f466e23, (opens new window) - Updateconsistent-css-prop-usageto incorporate some updates previously made to the@compiled/eslint-pluginequivalent.- Add autofixer to add the
cssfunction for the following scenario:
const styles = { ... }; <div css={styles} />Note that this autofixer will not run if local variables are used inside the style object (e.g.
{ height: makeTaller ? '5px' : '2px' }), or if there are spread elements, template literals, and other tricky-to-parse code. These continue to require fixing manually.(This rule would previously only autofix if the file was originally
<div css={{ ... }} />) 2. Addimport { css } from '@compiled/react'(orxcss) automatically when fixing. The package from which to import thecssfunction can be specified through theimportSourceoption. 3. AddexcludeReactComponentsto exclude linting React components (i.e. components that start with uppercase). Sometimes it may not be desirable to have this rule apply to React components (e.g.@atlaskit/button), which could either use the Emotion or Compiled APIs when they expose acssprop. Passing a function from the wrong library can result in the styling erroneously not being applied. 4. Treat{ ... } as conststatements the same way as{ ... }objects. 5. AddfixNamesOnlyto disable all autofixers except the autofixer that addsstylesto the end of existing style variables. For example, in<div css={buttonComponent} />; const buttonComponent = css({ ... }),buttonComponentwill continue to be renamed tobuttonComponentStyles. Autofixers that will be disabled include hoisting the styles to the top-most scope, and adding thecssfunction call around style objects. - Add autofixer to add the
8.26.0
Minor Changes
-
#71429, (opens new window)
457122c5d002, (opens new window) - Add some ESLint rules from Compiled CSS-in-JS, and adapt them for the UI Styling Standard.Rules added:
no-empty-styled-expression: banstyled({})usagesno-exported-cssandno-exported-keyframes: bancssandkeyframesfunction calls that are exportedno-invalid-css-map: ban usages of the Compiled/@atlaskit/csscssMapfunction call that are not valid
Changes made:
- Add them to monorepo, modify to use the existing utility functions
- Add support for CSS-in-JS libraries other than Compiled (styled-components, Emotion,
@atlaskit/css, etc.) andxcsswhere appropriate
8.25.2
Patch Changes
- #71361, (opens new window)
0f3be2c76337, (opens new window) -use-primitivesno longer reports elements that have empty style objects.
8.25.1
Patch Changes
- #67941, (opens new window)
0b1def807516, (opens new window) - Now rule is aplicable only to ButtonGroup ImportSpecifiers
8.25.0
Minor Changes
- #70369, (opens new window)
611434ce1fe5, (opens new window) - ensure-design-token-usage no longer errors on color properties defined in SVG JSX elements.
8.24.0
Minor Changes
- #70036, (opens new window)
667c0a990b15, (opens new window) - Allow linting of multiple property style objects in use-primitives rule.
8.23.4
Patch Changes
-
#69370, (opens new window)
e14e79732cd4, (opens new window) - Add local-cx-xcss rule, which ensures that thecx()function (if imported from@compiled/reactor@atlaskit/css) is only used within thexcssprop.Internal changes: Also refactored the utility functions used by
no-css-tagged-template-expression.
8.23.3
Patch Changes
- #69222, (opens new window)
a1c52086fdb9, (opens new window) - Address issues in consistent-css-prop-usage hoisting and naming fixers - Updated dependencies
8.23.2
Patch Changes
- #65758, (opens new window)
16e6a0fbe125, (opens new window) - Internal refactor ofuse-primitvesrule. There should be no change to consumers of the rule.
8.23.1
Patch Changes
- #68093, (opens new window)
4c5371a76547, (opens new window) - Wrap ensure-design-token-usage with an error boudary to stop it breaking issue-automat CI.
8.23.0
Minor Changes
- #68090, (opens new window)
251d7c1fca48, (opens new window) - Modified fix naming convention for consistent-css-prop-usage rule to align with camelCase convention
Patch Changes
- Updated dependencies
8.22.0
Minor Changes
- #63589, (opens new window)
f59d997d1913, (opens new window) - Implemented new fixers for cssOnTopOfModule and cssAtBottomOfModule violation cases
8.21.0
Minor Changes
- #66250, (opens new window)
6ff74a16aee7, (opens new window) - Introducing new rule to encourage adding/referencing accessible name to a ButtonGroup component.
8.20.0
Minor Changes
- #66409, (opens new window)
f6c48f4a67c1, (opens new window) - Implemented functionality for the consistent-css-prop-usage rule to account for cssMap usages
Patch Changes
- #66604, (opens new window)
3205b1daf57f, (opens new window) - Refactor internal logic ofuse-primitivesto better handle cases it will not suggest transformations for, based on the value of CSS properties.
8.19.2
Patch Changes
- #66118, (opens new window)
93988e6fd035, (opens new window) -use-primitivesnow handles tokenised padding/margin properties. This change is guarded by a config flag and not enabled by default.
8.19.1
Patch Changes
- #65221, (opens new window)
a2ba22904ca0, (opens new window) - Allow for @atlaskit/design-system/use-primitives lint rule to take a configuration object.
8.19.0
Minor Changes
- #64899, (opens new window)
442878c001f9, (opens new window) - Addno-unsafe-style-overrides. This rule marks any usage of unsafe style overrides as violations, such as usage ofcss,theme, andcssFnprops.
8.18.1
Patch Changes
- #64857, (opens new window)
1be24644c029, (opens new window) -use-primitivesis now capable of converting styled components. This is guarded by a config flag so this release is only a patch.
8.18.0
Minor Changes
- #65123, (opens new window)
f3b62a2c6bdd, (opens new window) - Add new rule to warn of rollout of requiredheadingLevelprop in theSpotlightCardcomponent of the onboarding package.
8.17.0
Minor Changes
- #64660, (opens new window)
52bbf4498c2a, (opens new window) - Internal update to use the latest version of the@atlaskit/tokenspackage. Theno-unsafe-design-token-usagerule should no longer error on typography tokens.
8.16.0
Minor Changes
- #58402, (opens new window)
2b1a12e5936f, (opens new window) - Re-workuse-primitiveslint rule to only suggestBox, and only trigger a violation styles contain one style property and the style value can be mapped to a token.
8.15.5
Patch Changes
- #63526, (opens new window)
cae958047771, (opens new window) - Internal change to how typography tokens are imported. There is no expected behaviour change. - Updated dependencies
8.15.4
Patch Changes
- #63768, (opens new window)
56342fba2b72, (opens new window) - Fixes an issue with theuse-drawer-labelrule where named imports such as type imports from@atlaskit/drawercould incorrectly report an error.
8.15.3
Patch Changes
- #59147, (opens new window)
f12e489f23b0, (opens new window) - Re-build and deploy packages to NPM to resolve React/Compiled not found error (HOT-106483).
8.15.2
Patch Changes
- #57118, (opens new window)
b9bd80957181, (opens new window) - Upgrade Emotion v10 (@emotion/core) to Emotion v11 (@emotion/react). No behaviour change expected.
8.15.1
Patch Changes
- #43718, (opens new window)
8aebcad547a, (opens new window) - Deprecated tokens are now warned against even when a replacement token has not been specified - Updated dependencies
8.15.0
Minor Changes
- #43258, (opens new window)
0004d49c240, (opens new window) - Adds a new argumentfallbackUsagewhich replacesshouldEnforceFallbacks. This new argument is an enum which represents the three possible states this rule can be configured with.forced: Fallbacks must always been in usenone: Fallbacks must never been in use. (Fixer will remove any value provided )optional: (new) Fallbacks are optional
8.14.1
Patch Changes
- #42240, (opens new window)
ec474733d38, (opens new window) - Handle destructured variables in link item rule.
8.14.0
Minor Changes
- #41884, (opens new window)
862be3ee13b, (opens new window) - Addsno-css-tagged-template-expressionrule that disallows anycsstagged template expressions that originate from@emotion/reactand automatically converts them to the preferred call expression syntax.
8.13.1
Patch Changes
- #42031, (opens new window)
0b60a2a6318, (opens new window) - Add more test cases and handle undefined object property error.
8.13.0
Minor Changes
- #41825, (opens new window)
f9641b28ed5, (opens new window) - Introducing new rule to encourage adding/referencing accessible name to a Drawer component.
8.12.1
Patch Changes
- #41836, (opens new window)
93427b209ad, (opens new window) - Update all generated files for recent changes to link item rule.
8.12.0
Minor Changes
- #41346, (opens new window)
b7e50f54fb3, (opens new window) - Changed the no-unsupported-drag-and-drop-libraries to 'problem' type with 'error' severity. Therefore an error will now be thrown when a drag and drop package that is not Pragmatic drag and drop is imported in packages that have the rule enabled.
8.11.0
Minor Changes
- #41624, (opens new window)
ee68a82c409, (opens new window) - Add fixer to and handle another invalidhrefvalue for link item rule.
8.10.1
Patch Changes
- #41402, (opens new window)
25bf22e0ad8, (opens new window) - Add better conditional checks in internal util.
8.10.0
Minor Changes
- #40425, (opens new window)
5d0222e1bd7, (opens new window) - Added newno-unsupported-drag-and-drop-librariesrule that detects imports of restricted drag and drop libraries, instead suggesting use of our library, Pragmatic drag and drop.
8.9.0
Minor Changes
- #40868, (opens new window)
3f36676cbfb, (opens new window) - Adduse-href-in-linkitemrule.
8.8.1
Patch Changes
- #39407, (opens new window)
c6db573350d, (opens new window) - The themed() and AtlaskitThemeProvider legacy theming API's are now marked as deprecated and eslint rules have been modified to disallow new usage of them.
8.8.0
Minor Changes
- #40241, (opens new window)
6c149f3e71d, (opens new window) - Theensure-design-token-usagerules now report on use of the CSScalcfunction when used with padding, margin, and gap properties.
8.7.1
Patch Changes
- #40106, (opens new window)
d6845989896, (opens new window) - Configuration added to consistent-css-prop-usage where it is now possible to specify what function names the rule should lint against, and what position is recommended for styles (top or bottom).
8.7.0
Minor Changes
- #40128, (opens new window)
859ef96da96, (opens new window) - Adds additional rule encouraging the use of CSS logical properties. This rule comes with a fix for code that uses object syntax (via css, styled or xcss) for styles.
8.6.0
Minor Changes
- #39578, (opens new window)
192ba90d75b, (opens new window) - Theensure-design-token-usagerules now support auto-fixing negative values to negative space tokens.
Patch Changes
- Updated dependencies
8.5.0
Minor Changes
- #39701, (opens new window)
4eab52ffd1c, (opens new window) - Add@atlaskit/button/unsafeto 'no-banned-imports' lint rule
8.4.5
Patch Changes
- #39649, (opens new window)
d37dcab0fc4, (opens new window) - Stopprefer-primitivesfrom reporting on React components.
8.4.4
Patch Changes
- #39213, (opens new window)
f7a807adba2, (opens new window) - Update theensure-design-token-usagerule to disallow setting the 'current surface' CSS variable (--ds-elevation-surface-current) to a hardcoded color. - Updated dependencies
8.4.3
Patch Changes
- #39210, (opens new window)
96e35ec4b9d, (opens new window) - Tweakuse-primitivesandprefer-primitiveslogic to stop false positives for component names that contain HTML element names.
8.4.2
Patch Changes
- #38362, (opens new window)
fb85e69cf5e, (opens new window) - Added this package into push model consumption.
8.4.1
Patch Changes
- #38433, (opens new window)
b11339bc8a3, (opens new window) - Internal updates for ADS Typography ADG3 theme. - Updated dependencies
8.4.0
Minor Changes
- #38670, (opens new window)
0128df16060, (opens new window) - Added newprefer-primitivesrule that detects use of<div>and<span>either as HTML tags or via styled components (styled.div,styled('div')) and suggests using primitive components instead.
8.3.0
Minor Changes
- #38239, (opens new window)
87feea3d8e0, (opens new window) - Add banned import rule for@atlaskit/primitives/pressable
8.2.2
Patch Changes
- #37947, (opens new window)
1859bc0b8c7, (opens new window) - Update the casing onxcssto ensure consistency with the API and package consumption.
8.2.1
Patch Changes
- #37733, (opens new window)
52b35a6b571, (opens new window) - - Fixed an issue where theensure-design-token-usagerule may incorrectly report variables that reference tokens as an error.- Fixed an issue where the
ensure-design-token-usagerule may handle expressions that span multiple lines in template literals incorrectly.
- Fixed an issue where the
8.2.0
Minor Changes
- #37278, (opens new window)
a5c9f63d2a8, (opens new window) - Add improved behavior for suggestions foruse-primitivesrule.
8.1.0
Minor Changes
- #37066, (opens new window)
4f9c29b2f9f, (opens new window) - Added theno-nested-stylesrule which disallows usage of nested styles. Theno-nested-stylesrule also disallows media queries that contain min-width or max-width. The Atlassian Design Systemmediaobject should be used instead. Other forms of media queries are still allowed.
8.0.2
Patch Changes
- #37041, (opens new window)
05a00999956, (opens new window) -TODOcomments are no longer added when applying a spacing fix fromensure-design-token-usage.
8.0.1
Patch Changes
- #36624, (opens new window)
278fb6833be, (opens new window) - Theensure-design-token-usagerule no longer lints against styles insidexcssas it already has type-safety built in for properties that accept tokens.
8.0.0
Major Changes
-
#36273, (opens new window)
3919464ef44, (opens new window) - Removedensure-design-token-usage-spacing. Useensure-design-token-usageinstead. See release notes for v7.0.0 for more info.ensure-design-token-usagenow errors against spacing properties by default.If the
domainsoption is provided it will override any defaults, for example the following will ignore defaults and only error for color:rules: { '@atlaskit/design-system/ensure-design-token-usage': [ 'error', { domains: ['color'], shouldEnforceFallbacks: false }, ], },You can use
ensure-design-token-usage/previewto warn about spacing properties until you are ready to set the main rule to error:rules: { '@atlaskit/design-system/ensure-design-token-usage/preview': [ 'warn', { domains: ['spacing'], shouldEnforceFallbacks: false }, ], '@atlaskit/design-system/ensure-design-token-usage': [ 'error', { domains: ['color'], shouldEnforceFallbacks: false }, ], },In many cases
eslint --fixwill automatically apply migrations from hardcoded values andgridSizeto space tokens.
7.0.3
Patch Changes
- #35441, (opens new window)
81c15e86b18, (opens new window) - Improved autofix for 50% border radius to shape token.
7.0.2
Patch Changes
- #35950, (opens new window)
50cf866a219, (opens new window) - bump semver
7.0.1
Patch Changes
- #36144, (opens new window)
8c955333863, (opens new window) - Fix ensure-design-token-usage to declare that is has suggestions, unblocking ESLint 7+ usage.
7.0.0
Major Changes
-
#35383, (opens new window)
177c8c14160, (opens new window) - Merged theensure-design-token-usageandensure-design-token-usage-spacingrules into a single rule:ensure-design-token-usage. This rule enforces color and space tokens and will be extended to enforce domains such as typography and shape in the future. The rule accepts adomainsoption which allows you to specify which domains to lint, currently defaulting to 'color' and 'space'. This rule defaults toerror.To update to this version:
-
If you are using the
ensure-design-token-usagerule, add thedomainsproperty with a value of['color']:rules: { '@atlaskit/design-system/ensure-design-token-usage': [ 'error', { domains: ['color'], shouldEnforceFallbacks: false }, ], }, -
If you are using the
ensure-design-token-usage-spacingrule, remove any references to it and add'spacing'to the domains array above.rules: { '@atlaskit/design-system/ensure-design-token-usage': [ 'error', { domains: ['color', 'spacing'], shouldEnforceFallbacks: false }, ], }, -
If you are not using either of these rules, no changes are required.
Added a new rule
ensure-design-token-usage/previewwhich is a direct clone ofensure-design-token-usage, but defaults towarn. Through this rule you can specify domains to enforce tokens for, but with a warning rather than a blocking error. This is intended to ease the introduction of certain tokens into a codebase. -
6.2.1
Patch Changes
- #36054, (opens new window)
0f48aae95e4, (opens new window) - Patch for incorrect behavior in upstream library.
6.2.0
Minor Changes
- #34821, (opens new window)
373b6b701ca, (opens new window) - Linters will now error when deprecated theme color mixins are imported
6.1.0
Minor Changes
- #34833, (opens new window)
99d5309f42b, (opens new window) - The ensure-design-token-usage-spacing rule will now lint against inline style objects
6.0.1
Patch Changes
- #35448, (opens new window)
fa18829653d, (opens new window) - Updated spacing rule to ignore gridSize functions that accept arguments as these are custom and not part of the Design System.
6.0.0
Major Changes
- #34804, (opens new window)
c8174712a85, (opens new window) - New rule consistent-css-prop-usage available as part of the recommended preset. For detailed docs please see: https://atlassian.design/components/eslint-plugin-design-system/usage#consistent-css-prop-usage, (opens new window)
5.5.0
Minor Changes
- #34739, (opens new window)
35a57c481af, (opens new window) - Improved import matching for no-deprecated-apis rule to match substrings of import paths.
5.4.2
Patch Changes
- #34873, (opens new window)
121f9ae5c38, (opens new window) - Internal dependency bump.
5.4.1
Patch Changes
- #34778, (opens new window)
432d4ce47ee, (opens new window) - Account for additional border properties in spacing rule.
5.4.0
Minor Changes
- #33802, (opens new window)
eb75c962cfb, (opens new window) -gridSizeimports from@atlaskit/themeare now deprecated in favor of applying space tokens via@atlaskit/tokens.
Patch Changes
- #34217, (opens new window)
019af32072d, (opens new window) - Add shape token handling to theensure-design-token-usage-spacingrule. 7b017c0be76, (opens new window) - Internal tweaks to spacing rule fixers.- Updated dependencies
5.3.2
Patch Changes
- #33793, (opens new window)
9d00501a414, (opens new window) - Ensure legacy types are published for TS 4.5-4.8
5.3.1
Patch Changes
- #33649, (opens new window)
41fae2c6f68, (opens new window) - Upgrade Typescript from4.5.5to4.9.5
5.3.0
Minor Changes
- #33417, (opens new window)
51a48a1bb1b, (opens new window) - Update docs to accept aseverityproperty so the purpose ofrecommendedis no longer double. "all" preset now respects this preference - before it was always "error". This makes the presets more aligned with the underlying implementations."
5.2.0
Minor Changes
- #31565, (opens new window)
11e5168f1c2, (opens new window) - Internal refactor of ensure-design-token-usage which also addresses some false positives
5.1.0
Minor Changes
- #33258, (opens new window)
56507598609, (opens new window) - Skip minor dependency bump
Patch Changes
- Updated dependencies
5.0.3
Patch Changes
- #32916, (opens new window)
7c55a69a5ec, (opens new window) - Fix issue where 'auto' may still be reported as an error in object styles.
5.0.2
Patch Changes
- #32895, (opens new window)
a5f1c4fa284, (opens new window) - Update links in theuse-primitivesrule to point to the right docs URL.
5.0.1
Patch Changes
- #32846, (opens new window)
31ebca384fa, (opens new window) - Improved behaviour ofensure-design-token-usage-spacingrule to not report on or replace 0, auto, and calc within spacing properties.
5.0.0
Major Changes
-
#32576, (opens new window)
b910bbe6130, (opens new window) - The following rules are now included in the recommended preset as errors:- ensure-design-token-usage
- no-deprecated-apis
- no-deprecated-imports
- no-unsafe-design-token-usage
The following rules are now included in the recommended preset as warnings:
- no-deprecated-design-token-usage
Minor Changes
b689e24847d, (opens new window) - All lint rule violations in IDEs now point to their corresponding documentation on https://atlassian.design, (opens new window).
4.20.0
Minor Changes
- #32211, (opens new window)
fa50be73bfe, (opens new window) - [ux] Spacing rule now also looks at and attempts to parse additional properties.
4.19.1
Patch Changes
- #32367, (opens new window)
0047d204889, (opens new window) - Docs are now generated from source.
4.19.0
Minor Changes
- #32306, (opens new window)
ecbb3354125, (opens new window) - This package now uses codegen to generate the rules index and presets. There is no change to the public api with this release. e00ab4b87d9, (opens new window) - The README and website documentation now contain a generated table with all available rules in the plugin.
4.18.0
Minor Changes
- #31044, (opens new window)
c858ddc70ff, (opens new window) - Add deprecated-imports entries to config that the rule no-deprecated-imports can read from.
4.17.1
Patch Changes
- #31568, (opens new window)
fd4bdeabac4, (opens new window) - ensure-design-token-usage: Fixes various false positives including linting of variable declarations, type definitions, switch cases and if statements
4.17.0
Minor Changes
- #31131, (opens new window)
c80505045f0, (opens new window) - Added new rule to encourage use of @atlaskit/primitives components where relavant. Currently disabled by default, so there should be no expected change to consumers.
4.16.5
Patch Changes
- #30785, (opens new window)
c82e6ef389c, (opens new window) - Fix bug when replacing shorthand css property values with tokens, values without corresponding token won't be replaced. Also, allow styled2 alias to be matched in object styles for the spacing rule, given Jira frontend uses that alias extensively
4.16.4
Patch Changes
- #30707, (opens new window)
358730833d8, (opens new window) - Add overrides in @atlaskit/drawer to deprecated config
4.16.3
Patch Changes
- #30678, (opens new window)
ed34264c827, (opens new window) - Fix errors on tagged template literals for eslint rule ensure-design-token-usage-spacing and handle edgecases ensuring seamless fallback on errors
4.16.2
Patch Changes
- #30658, (opens new window)
3db6efeac0d, (opens new window) - Improves internal configuration of spacing tokens rule.
4.16.1
Patch Changes
- #30604, (opens new window)
29648ace573, (opens new window) - Additional selector for ObjectExpression improves coverage of eslint rule.
4.16.0
Minor Changes
- #29960, (opens new window)
efadee8e999, (opens new window) - Update no-deprecated-apis ESlint rule to accept configurations
4.15.6
Patch Changes
- #30134, (opens new window)
6a43a780a85, (opens new window) - Enhance token replacement capabilities of ensure-design-tokens-usage-spacing rule in tagged template literal strings
4.15.5
Patch Changes
- #30141, (opens new window)
dda18b361da, (opens new window) - Bump version ofeslint-codemod-utils.
4.15.4
Patch Changes
- #27964, (opens new window)
ada57c0423d, (opens new window) - Add lint rule to prevent use ofmarginCSS property.
4.15.3
Patch Changes
- #29613, (opens new window)
965e9c7f5d7, (opens new window) - Fix spacing token autofix in tagged template literal styles, enabling replacement of expression to equivalent spacing tokens
4.15.2
Patch Changes
- #27634, (opens new window)
cf16d8f8bcc, (opens new window) - Removes usage of tokens which have been removed from the codebase - Updated dependencies
4.15.1
Patch Changes
- #29390, (opens new window)
18aeca8c199, (opens new window) - Internal change to update token references. There is no expected behaviour or visual change.
4.15.0
Minor Changes
- #29346, (opens new window)
17b3c102180, (opens new window) - ensure-design-token-usage-spacing only lints on spacing properties by default, with typography properties enabled via config
4.14.1
Patch Changes
- #28064, (opens new window)
03697c65399, (opens new window) - Improved handling of font-family properties.
4.14.0
Minor Changes
- #27730, (opens new window)
be1ec01a101, (opens new window) - Added another valid calleegetTokenValue()which is used for getting the current computed CSS value for the resulting CSS Custom Property, hard-coded colors that wrapped ingetTokenValue()call won't fail.
4.13.10
Patch Changes
- #28011, (opens new window)
00c057bdd71, (opens new window) - Removes spacing-raw & typography-raw entrypoints in favor of tokens-raw - Updated dependencies
4.13.9
Patch Changes
- Updated dependencies
4.13.8
Patch Changes
- #27783, (opens new window)
f4c5d7db7aa, (opens new window) - Updates fix forensure-design-token-usage-spacingto ensure fixes are not applied erroneously.
4.13.7
Patch Changes
- #27592, (opens new window)
41ac6cadd32, (opens new window) - Adds support to the ensure-design-token-usage-spacing rule for replacing typography values with tokens
4.13.6
Patch Changes
- #27482, (opens new window)
0518a6ab41d, (opens new window) - Changes behavior ofensure-design-token-usage-spacingto fallback to px instead of rems when a fix is applied.
4.13.5
Patch Changes
- #27431, (opens new window)
fd903efd5f8, (opens new window) - Dependency bump ofeslint-codemod-utils.
4.13.4
Patch Changes
- Updated dependencies
4.13.3
Patch Changes
- #26561, (opens new window)
4793b01cfcc, (opens new window) - Add an optionalcustomTokensconfiguration option for no-unsafe-design-token-usage
4.13.2
Patch Changes
- #26623, (opens new window)
1a7a2c87797, (opens new window) - @atlaskit/eslint-plugin-design-system now maps values to rem based tokens
4.13.1
Patch Changes
- #26604, (opens new window)
cc76eda3bc0, (opens new window) - Add support for template literals in ensure-design-token-usage-spacing
4.13.0
Minor Changes
- #25860, (opens new window)
9693f6e7816, (opens new window) - [ux] Adds a new case to the no-unsafe-design-token-usage rule to lint against uses of 'experimental' tokens and automatically replace them with their replacement (either a token or a fallback) via a fixer.
4.12.4
Patch Changes
- #26488, (opens new window)
bc989043572, (opens new window) - Internal changes to apply spacing tokens. This should be a no-op change.
4.12.3
Patch Changes
- #26408, (opens new window)
9de88fa1e1e, (opens new window) - Internal changes to include spacing tokens in component implementations.
4.12.2
Patch Changes
- #26186, (opens new window)
c6b748ff03a, (opens new window) - Small tweak to the ensure-design-token-usage-spacing rule to ensure we aren't over-eager in auto-fixing code with highly experimental tokens.
4.12.1
Patch Changes
- #26165, (opens new window)
e86c57a4a60, (opens new window) - Improves theno-raw-spacing-valuesrule to include an autofixer. Spacing values that can be resolved to a token will be.
4.12.0
Minor Changes
- #26111, (opens new window)
109c705cd9c, (opens new window) - [ux] Adds a new case to the no-unsafe-design-token-usage rule to lint against uses of 'experimental' tokens and automatically replace them with their replacement (either a token or a fallback) via a fixer.
4.11.2
Patch Changes
- #24710, (opens new window)
3ee63238f49, (opens new window) - Update internals of Box, Text, Inline and Stack to handlechildrenmore accurately. Also update scope ofuse-primitivesto suggest Box and Text more selectively.
4.11.1
Patch Changes
- #24874, (opens new window)
8cc2f888c83, (opens new window) - Upgrade Typescript from4.3.5to4.5.5
4.11.0
Minor Changes
- #24934, (opens new window)
268f92124e2, (opens new window) - Bolster isException logic to support descendants of excepted functions and to be case-agnostic
4.10.1
Patch Changes
- #24004, (opens new window)
d76851b2f42, (opens new window) - Improved NaN handling and output 0544fe823d1, (opens new window) - Updates to account for nested unary selectors.1ed3db0c9be, (opens new window) - Improvements to lint rule and accounting for edge cases
4.10.0
Minor Changes
- #24591, (opens new window)
bb808f9a186, (opens new window) - Add exceptions option to ensure-design-token-usage rule
4.9.0
Minor Changes
- #24547, (opens new window)
9701bf4a8b3, (opens new window) - Fix false positives for variable names and object property keys
4.8.2
Patch Changes
- #24492, (opens new window)
8d4228767b0, (opens new window) - Upgrade Typescript from4.2.4to4.3.5.
4.8.1
Patch Changes
- #24445, (opens new window)
805d0fde0fa, (opens new window) - Bump eslint-codemod-utils to 1.4.0, no real changes as no new imports are exercised
4.8.0
Minor Changes
- #23610, (opens new window)
725f5fde8d9, (opens new window) - Adds a rule to restrict usage of deprecated attributetypefor inline-message
4.7.2
Patch Changes
- #23381, (opens new window)
9f64ab9d5ea, (opens new window) - Improvements / added robustness to edge cases previously unhandled. 8e848e3a4a6, (opens new window) - Internal updates to a number of rules. Introduced a custom formatter for the rule 'no-raw-spacing-values'.31494c13aaa, (opens new window) - Type fixes to the internals of a number of rules.
4.7.1
Patch Changes
- #23674, (opens new window)
37ac5652977, (opens new window) - MarkisOpenandinnerRefprops on @atlaskit/banner as deprecated.
4.7.0
Minor Changes
- #22642, (opens new window)
740057653f9, (opens new window) - Adds additional rule to restrict usage of banned imports from the design system.
4.6.0
Minor Changes
- #21819, (opens new window)
f561f58bc7a, (opens new window) - Introduces a new ruleicon-labelto validate accessible usage of the icon components label prop when used with other design system components.
4.5.0
Minor Changes
- #21570, (opens new window)
b7235858f48, (opens new window) - Add new paths to the no-deprecated-imports rule for deprecated @atlaskit/logo exports.
4.4.6
Patch Changes
- Updated dependencies
4.4.5
Patch Changes
- #20721, (opens new window)
344784eec9e, (opens new window) - Fix linting error message for focusRing import
4.4.4
Patch Changes
- #20860, (opens new window)
55a212b8b01, (opens new window) - Adds an additional rule for DS users to opt into to using 'noop' as a common reference rather than rewriting anonymous functions.
4.4.3
Patch Changes
- #20650, (opens new window)
cb2392f6d33, (opens new window) - Upgrade to TypeScript 4.2.4
4.4.2
Patch Changes
- #20033, (opens new window)
b3e5a62a9e3, (opens new window) - Addsstatictechstack to package, enforcing stricter style linting. In this case the package already satisfied this requirement so there have been no changes to styles. - Updated dependencies
4.4.1
Patch Changes
-
#20390, (opens new window)
236e6040fb9, (opens new window) - Fixes a bug in the ruleensure-design-token-usagewhere some color value types were not being detected as hardcoded color usage. This affected Styled Components and Emotion CSS prop syntaxes.These color types have been fixed:
- rgb
- rgba
- hsl
- hsla
- lch
- lab
- color()
4.4.0
Minor Changes
- #19618, (opens new window)
1065b5b1bbb, (opens new window) - Fixed bug where deleted '[default]' tokens were not being detected by lint tooling
Patch Changes
- Updated dependencies
4.3.0
Minor Changes
- #19019, (opens new window)
2dbc546f748, (opens new window) - Fixes a bug where token paths including [default] were not being detected by the linter
Patch Changes
- Updated dependencies
4.2.1
Patch Changes
- #19453, (opens new window)
63a22b17621, (opens new window) - Fixes a bug where use of qualified type annotations would throw an error.
4.2.0
Minor Changes
- #16752, (opens new window)
afc248d2ded, (opens new window) - Adds a new rule,use-visually-hiddento complement the@atlaskit/visually-hiddencomponent. - #18526, (opens new window)
0c0a8b5dff4, (opens new window) - Adds an additional rule 'no-deprecated-api-usage'. This rule targets APIs/props in the Design System that we intend to remove completely. This rule should be used by all product repos as it will provide an early warning of expected deprecations. 93d6f8856f2, (opens new window) - @atlaskit/icon-priority has been deprecated due to low usage. It will be deleted after 21 April 2022. If you rely on these icons, @atlaskit/icon-priority will still be available as a deprecated package on NPM, but we recommend self-hosting and managing.
4.1.1
Patch Changes
19d72473dfb, (opens new window) - The no-unsafe-design-token-usage eslint rule now respects the new token naming conventions when auto-fixing by correctly formatting token ids.- Updated dependencies
4.1.0
Minor Changes
- #18168, (opens new window)
52fbe80eeb5, (opens new window) - Moved logic for detecting deprecated tokens out of no-unsafe-design-token-usage and moves it into a new rule: no-deprecated-token-usage. This rule is solely reponsible for catching usage of deprecated tokens. In most cases this allows consumers to set this rule to "warn", allowing iterative migration to new token names rather than in a big bang.
Patch Changes
- Updated dependencies
4.0.1
Patch Changes
- #17094, (opens new window)
7da1a30902a, (opens new window) - Adds missing meta toensure-design-token-usagerule.
4.0.0
Major Changes
-
#15998, (opens new window)
a2f953f3814, (opens new window) - Previously theensure-design-token-usageeslint rule contained all checks relating to token use. This has now been split up into two separate rules:ensure-design-token-usagenow covers:legacyElevation— warns about old usages of the elevation mixins or styles, which instead should use thecardoroverlaytokens.hardCodedColor— warns about use of hard-coded colors such ascolor: colors.B100, which instead should be wrapped in atoken()call. This covers the majority of cases in existing codebases when first adopting tokens.
no-unsafe-design-token-usage(new) covers the remaining rules:directTokenUsage— warns against using the CSS Custom Property name that is output in the browser by thetoken()call. Eg. directly usingvar(--ds-accent-subtleBlue)is bad.staticToken— warns when tokens aren't used inline. Inlining the token usages helps with static analysis, which unlocks future improvements. Eg. pulling the token out into a const likecss={ color: token(primaryButtonText) }is bad.invalidToken— warns when using a token that doesn't exist (not one that's been renamed, see the next point).tokenRenamed— warns when using a token that's been renamed in a subsequent release.tokenFallbackEnforced— warns if a fallback for the token call is not provided. Eg. call with the fallback like thistoken('color.background.disabled', N10)instead oftoken('color.background.disabled').tokenFallbackRestricted— the opposite oftokenFallbackEnforced. Eg. do not pass in a fallback like thistoken('color.background.disabled', N10)and instead only include the tokentoken('color.background.disabled').
Upgrading — some instances of
\\eslint-disablemay need to be changed to the new rule. If you have failing lint rules after only bumping this package then switch those ignores to useno-unsafe-design-token-usageinstead.
Patch Changes
f460cc7c411, (opens new window) - Builds for this package now pass through a tokens babel plugin, removing runtime invocations of the tokens() function and improving bundle size.26719f5b7b0, (opens new window) - Update @atlaskit tokens dependency from a devDependency to a regular dependencya66711cd58c, (opens new window) - Remove@atlaskit/tokensfrom peer dependency.- Updated dependencies
3.2.0
Minor Changes
- #16362, (opens new window)
2af46de94ba, (opens new window) - Adds additional rule to design system eslint plugin; no-deprecated-imports.
3.1.0
Minor Changes
- #16088, (opens new window)
784f2560e9b, (opens new window) - Includes additional rule in the recommended ruleset to restrict imports on older deprecated components.
3.0.0
Patch Changes
- Updated dependencies
2.0.1
Patch Changes
-
#14319, (opens new window)
b6a55ffa092, (opens new window) - Introduces fixes for various edge-cases and false positives:- Objects that are not considered "style blocks" are now ignored. Style blocks are considered as objects assigned to variables with names containing either "style", "css", or "theme" and type annotations including "CSSProperties" or "CSSObject".
- Hexadecimal colors using the
0xnotation are now ignored
Increasing the linting surface-area:
- Colors used in shorthand css property values will now be linted against. (ie
border: solid 1px red) - Strings passed directly into JSX attributes (props) are now linted (ie
<Button color="red" />)
General improvements:
-
Color names will now only match against "whole" words. Meaning strings that inadvertently include color names like the "tan" in "standard" will no longer fail.
-
Template literal styles are now linted against property values only. Meaning css property names that include colors like
white-space: nowrapused in template literals will no longer error -
Increased test coverage
-
Updated dependencies
2.0.0
Patch Changes
- Updated dependencies
1.1.0
Minor Changes
- #13864, (opens new window)
ac7a0fd6558, (opens new window) - You can now configure whether fallbacks are enforced or restricted when using tokens. Fallbacks are now restricted by default.
Patch Changes
- Updated dependencies
1.0.0
Minor Changes
- #13302, (opens new window)
6cc9dc02de1, (opens new window) - Adds token renaming rule (with autofix) to ensure-design-token-usage
Patch Changes
- Updated dependencies
0.0.6
Patch Changes
- #12837, (opens new window)
297928490b8, (opens new window) - Fixes false negative reports for named legacy colors. c9d8cc07750, (opens new window) - Converts internal code to TypeScript.8eea79b8ebc, (opens new window) - Update the function of checking if a node is a legacy elevation.7da605ccafe, (opens new window) - Adds suggestions for incorrect usages of color and tokensf875eb3f5cf, (opens new window) - Will only error against hardcoded colors (Identifiers) that are assigned to an object property- Updated dependencies
0.0.5
Patch Changes
- #12592, (opens new window)
e11b3e4e1ee, (opens new window) - Restructures tokens into the following format {group}{property}{variant}{state} - Updated dependencies
0.0.4
Patch Changes
-
#12528, (opens new window)
1926dba3536, (opens new window) - Adds, removes & renames tokensAdds:
color.backgroundSelect
Renames:
color.borderTextHighlightedtocolor.bordertextSelectedelevation.basetoevelation.backgroundDefaultelevation.flatSecondarytoelevation.backgroundSunkenelevation.backgroundCardtocolor.backgroundCardelevation.backgroundOverlaytocolor.backgroundOverlayelevation.borderOverlaytocolor.borderOverlayelevation.shadowCardtoshadow.cardelevation.shadowOverlaytoshadow.overlay
Removes:
elevation.boarderFlatPrimary
Updates:
elevation.shadowOverlayvalue toDN100color.textWarningin light mode toO800color.iconBorderWarningin light mode toO600
-
Updated dependencies
0.0.3
Patch Changes
- #12570, (opens new window)
ade8d954aa5, (opens new window) - Out of the box configs have been removed until stable release. f2a0a48903d, (opens new window) - Errors no longer show up on import declarations.b71d3cd3d2f, (opens new window) - Internal artefacts no longer make their way to npm.
0.0.2
Patch Changes
- #12444, (opens new window)
769ea83469c, (opens new window) - Moves tokens and eslint-plugin-design-system to the public namespace. - Updated dependencies
0.0.1
Patch Changes
- #11993, (opens new window)
c5ae5c84d47, (opens new window) - Initial commit. - Updated dependencies