@atlaskit/eslint-plugin-design-system 14.4.0 → 15.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/README.md +1 -0
- package/dist/cjs/presets/all-flat.codegen.js +2 -1
- package/dist/cjs/presets/all.codegen.js +2 -1
- package/dist/cjs/rules/index.codegen.js +3 -1
- package/dist/cjs/rules/use-tokens-motion/index.js +555 -0
- package/dist/cjs/rules/utils/create-no-tagged-template-expression-rule/create-no-tagged-template-expression-rule.js +23 -23
- package/dist/cjs/rules/utils/create-no-tagged-template-expression-rule/index.js +23 -23
- package/dist/cjs/rules/utils/create-no-tagged-template-expression-rule/to-arguments.js +1 -1
- package/dist/es2019/presets/all-flat.codegen.js +2 -1
- package/dist/es2019/presets/all.codegen.js +2 -1
- package/dist/es2019/rules/index.codegen.js +3 -1
- package/dist/es2019/rules/use-tokens-motion/index.js +489 -0
- package/dist/esm/presets/all-flat.codegen.js +2 -1
- package/dist/esm/presets/all.codegen.js +2 -1
- package/dist/esm/rules/index.codegen.js +3 -1
- package/dist/esm/rules/use-tokens-motion/index.js +548 -0
- package/dist/esm/rules/utils/create-no-tagged-template-expression-rule/create-no-tagged-template-expression-rule.js +23 -23
- package/dist/esm/rules/utils/create-no-tagged-template-expression-rule/index.js +23 -23
- package/dist/esm/rules/utils/create-no-tagged-template-expression-rule/to-arguments.js +1 -1
- package/dist/types/presets/all-flat.codegen.d.ts +1 -1
- package/dist/types/presets/all.codegen.d.ts +1 -1
- package/dist/types/rules/index.codegen.d.ts +1 -1
- package/dist/types/rules/use-tokens-motion/index.d.ts +3 -0
- package/package.json +7 -15
- package/dist/types-ts4.5/ast-nodes/function-call.d.ts +0 -21
- package/dist/types-ts4.5/ast-nodes/import.d.ts +0 -16
- package/dist/types-ts4.5/ast-nodes/jsx-attribute.d.ts +0 -29
- package/dist/types-ts4.5/ast-nodes/jsx-element-helper.d.ts +0 -23
- package/dist/types-ts4.5/ast-nodes/jsx-element.d.ts +0 -24
- package/dist/types-ts4.5/ast-nodes/object-entry.d.ts +0 -17
- package/dist/types-ts4.5/ast-nodes/object.d.ts +0 -53
- package/dist/types-ts4.5/ast-nodes/root.d.ts +0 -26
- package/dist/types-ts4.5/common/is-from-import-source.d.ts +0 -8
- package/dist/types-ts4.5/common/is-imported-jsx-element.d.ts +0 -8
- package/dist/types-ts4.5/common/token-maps.partial.d.ts +0 -65
- package/dist/types-ts4.5/index.codegen.d.ts +0 -15
- package/dist/types-ts4.5/index.d.ts +0 -2
- package/dist/types-ts4.5/presets/all-flat.codegen.d.ts +0 -8
- package/dist/types-ts4.5/presets/all.codegen.d.ts +0 -8
- package/dist/types-ts4.5/presets/recommended-flat.codegen.d.ts +0 -8
- package/dist/types-ts4.5/presets/recommended.codegen.d.ts +0 -8
- package/dist/types-ts4.5/rules/consistent-css-prop-usage/index.d.ts +0 -3
- package/dist/types-ts4.5/rules/consistent-css-prop-usage/types.d.ts +0 -10
- package/dist/types-ts4.5/rules/enforce-inline-styles-in-select/index.d.ts +0 -3
- package/dist/types-ts4.5/rules/enforce-inline-styles-in-select/utils.d.ts +0 -2
- package/dist/types-ts4.5/rules/ensure-avatar-tag-avatar-props/index.d.ts +0 -3
- package/dist/types-ts4.5/rules/ensure-design-token-usage/border-width-value-to-token.d.ts +0 -1
- package/dist/types-ts4.5/rules/ensure-design-token-usage/clean-comments.d.ts +0 -5
- package/dist/types-ts4.5/rules/ensure-design-token-usage/convert-hyphenated-name-to-camel-case.d.ts +0 -1
- package/dist/types-ts4.5/rules/ensure-design-token-usage/em-to-pixels.d.ts +0 -1
- package/dist/types-ts4.5/rules/ensure-design-token-usage/find-parent-node-for-line.d.ts +0 -6
- package/dist/types-ts4.5/rules/ensure-design-token-usage/find-token-name-by-property-value.d.ts +0 -1
- package/dist/types-ts4.5/rules/ensure-design-token-usage/get-domains-for-property.d.ts +0 -13
- package/dist/types-ts4.5/rules/ensure-design-token-usage/get-elevation-token-example.d.ts +0 -2
- package/dist/types-ts4.5/rules/ensure-design-token-usage/get-font-size-value-in-scope.d.ts +0 -2
- package/dist/types-ts4.5/rules/ensure-design-token-usage/get-property-node-from-parent.d.ts +0 -3
- package/dist/types-ts4.5/rules/ensure-design-token-usage/get-raw-expression.d.ts +0 -3
- package/dist/types-ts4.5/rules/ensure-design-token-usage/get-token-node-for-value.d.ts +0 -12
- package/dist/types-ts4.5/rules/ensure-design-token-usage/get-token-replacement.d.ts +0 -8
- package/dist/types-ts4.5/rules/ensure-design-token-usage/get-token-suggestion.d.ts +0 -7
- package/dist/types-ts4.5/rules/ensure-design-token-usage/get-value-for-property-node.d.ts +0 -3
- package/dist/types-ts4.5/rules/ensure-design-token-usage/get-value-from-shorthand.d.ts +0 -1
- package/dist/types-ts4.5/rules/ensure-design-token-usage/get-value-from-template-literal-raw.d.ts +0 -17
- package/dist/types-ts4.5/rules/ensure-design-token-usage/get-value.d.ts +0 -3
- package/dist/types-ts4.5/rules/ensure-design-token-usage/includes-token-string.d.ts +0 -1
- package/dist/types-ts4.5/rules/ensure-design-token-usage/index.d.ts +0 -5
- package/dist/types-ts4.5/rules/ensure-design-token-usage/insert-tokens-import.d.ts +0 -2
- package/dist/types-ts4.5/rules/ensure-design-token-usage/is-auto.d.ts +0 -1
- package/dist/types-ts4.5/rules/ensure-design-token-usage/is-border-radius.d.ts +0 -2
- package/dist/types-ts4.5/rules/ensure-design-token-usage/is-border-size-property.d.ts +0 -1
- package/dist/types-ts4.5/rules/ensure-design-token-usage/is-calc.d.ts +0 -1
- package/dist/types-ts4.5/rules/ensure-design-token-usage/is-radius-property.d.ts +0 -1
- package/dist/types-ts4.5/rules/ensure-design-token-usage/is-shape-property.d.ts +0 -1
- package/dist/types-ts4.5/rules/ensure-design-token-usage/is-spacing-property.d.ts +0 -1
- package/dist/types-ts4.5/rules/ensure-design-token-usage/is-token-value-string.d.ts +0 -5
- package/dist/types-ts4.5/rules/ensure-design-token-usage/is-valid-spacing-value.d.ts +0 -1
- package/dist/types-ts4.5/rules/ensure-design-token-usage/is-zero.d.ts +0 -1
- package/dist/types-ts4.5/rules/ensure-design-token-usage/lint-jsx-identifier-for-color.d.ts +0 -3
- package/dist/types-ts4.5/rules/ensure-design-token-usage/lint-jsx-literal-for-color.d.ts +0 -3
- package/dist/types-ts4.5/rules/ensure-design-token-usage/lint-jsx-member-for-color.d.ts +0 -3
- package/dist/types-ts4.5/rules/ensure-design-token-usage/lint-object-for-color.d.ts +0 -4
- package/dist/types-ts4.5/rules/ensure-design-token-usage/lint-template-identifier-for-color.d.ts +0 -3
- package/dist/types-ts4.5/rules/ensure-design-token-usage/normalise-value.d.ts +0 -10
- package/dist/types-ts4.5/rules/ensure-design-token-usage/process-css-node.d.ts +0 -16
- package/dist/types-ts4.5/rules/ensure-design-token-usage/radius-value-to-token.d.ts +0 -1
- package/dist/types-ts4.5/rules/ensure-design-token-usage/remove-pixel-suffix.d.ts +0 -1
- package/dist/types-ts4.5/rules/ensure-design-token-usage/rule-meta.d.ts +0 -44
- package/dist/types-ts4.5/rules/ensure-design-token-usage/spacing.d.ts +0 -4
- package/dist/types-ts4.5/rules/ensure-design-token-usage/split-css-properties.d.ts +0 -6
- package/dist/types-ts4.5/rules/ensure-design-token-usage/split-shorthand-values.d.ts +0 -12
- package/dist/types-ts4.5/rules/ensure-design-token-usage/types.d.ts +0 -15
- package/dist/types-ts4.5/rules/ensure-design-token-usage-preview/index.d.ts +0 -3
- package/dist/types-ts4.5/rules/ensure-icon-color/index.d.ts +0 -3
- package/dist/types-ts4.5/rules/ensure-proper-xcss-usage/index.d.ts +0 -3
- package/dist/types-ts4.5/rules/icon-label/index.d.ts +0 -2
- package/dist/types-ts4.5/rules/index.codegen.d.ts +0 -7
- package/dist/types-ts4.5/rules/lozenge-badge-tag-labelling-system-migration/index.d.ts +0 -3
- package/dist/types-ts4.5/rules/no-banned-imports/index.d.ts +0 -2
- package/dist/types-ts4.5/rules/no-banned-imports/paths.d.ts +0 -4
- package/dist/types-ts4.5/rules/no-boolean-autofocus-on-modal-dialog/index.d.ts +0 -5
- package/dist/types-ts4.5/rules/no-css-tagged-template-expression/index.d.ts +0 -2
- package/dist/types-ts4.5/rules/no-dark-theme-vr-tests/index.d.ts +0 -3
- package/dist/types-ts4.5/rules/no-deprecated-apis/helpers/filter-actionable-deprecations.d.ts +0 -1
- package/dist/types-ts4.5/rules/no-deprecated-apis/helpers/validate-deprecated-apis-config.d.ts +0 -2
- package/dist/types-ts4.5/rules/no-deprecated-apis/index.d.ts +0 -5
- package/dist/types-ts4.5/rules/no-deprecated-design-token-usage/index.d.ts +0 -3
- package/dist/types-ts4.5/rules/no-deprecated-imports/checks.d.ts +0 -11
- package/dist/types-ts4.5/rules/no-deprecated-imports/constants.d.ts +0 -2
- package/dist/types-ts4.5/rules/no-deprecated-imports/handlers/icon.d.ts +0 -38
- package/dist/types-ts4.5/rules/no-deprecated-imports/index.d.ts +0 -29
- package/dist/types-ts4.5/rules/no-direct-use-of-web-platform-drag-and-drop/checks/is-blocked-add-event-listener.d.ts +0 -2
- package/dist/types-ts4.5/rules/no-direct-use-of-web-platform-drag-and-drop/checks/is-blocked-bind-all.d.ts +0 -3
- package/dist/types-ts4.5/rules/no-direct-use-of-web-platform-drag-and-drop/checks/is-blocked-bind.d.ts +0 -3
- package/dist/types-ts4.5/rules/no-direct-use-of-web-platform-drag-and-drop/checks/is-blocked-jsx-attribute.d.ts +0 -3
- package/dist/types-ts4.5/rules/no-direct-use-of-web-platform-drag-and-drop/index.d.ts +0 -2
- package/dist/types-ts4.5/rules/no-direct-use-of-web-platform-drag-and-drop/shared/blocked-event-name-lookup.d.ts +0 -1
- package/dist/types-ts4.5/rules/no-direct-use-of-web-platform-drag-and-drop/shared/blocked-jsx-attribute-lookup.d.ts +0 -1
- package/dist/types-ts4.5/rules/no-direct-use-of-web-platform-drag-and-drop/shared/is-blocked-event-binding.d.ts +0 -2
- package/dist/types-ts4.5/rules/no-emotion-primitives/index.d.ts +0 -3
- package/dist/types-ts4.5/rules/no-empty-styled-expression/index.d.ts +0 -3
- package/dist/types-ts4.5/rules/no-exported-css/index.d.ts +0 -3
- package/dist/types-ts4.5/rules/no-exported-keyframes/index.d.ts +0 -3
- package/dist/types-ts4.5/rules/no-html-anchor/index.d.ts +0 -3
- package/dist/types-ts4.5/rules/no-html-anchor/node-types/jsx-element/index.d.ts +0 -8
- package/dist/types-ts4.5/rules/no-html-anchor/node-types/styled-component/index.d.ts +0 -8
- package/dist/types-ts4.5/rules/no-html-anchor/node-types/supported.d.ts +0 -7
- package/dist/types-ts4.5/rules/no-html-button/index.d.ts +0 -3
- package/dist/types-ts4.5/rules/no-html-button/node-types/jsx-element/index.d.ts +0 -8
- package/dist/types-ts4.5/rules/no-html-button/node-types/styled-component/index.d.ts +0 -8
- package/dist/types-ts4.5/rules/no-html-button/node-types/supported.d.ts +0 -7
- package/dist/types-ts4.5/rules/no-html-checkbox/index.d.ts +0 -3
- package/dist/types-ts4.5/rules/no-html-checkbox/node-types/jsx-element/index.d.ts +0 -8
- package/dist/types-ts4.5/rules/no-html-checkbox/node-types/supported.d.ts +0 -7
- package/dist/types-ts4.5/rules/no-html-code/index.d.ts +0 -3
- package/dist/types-ts4.5/rules/no-html-code/node-types/jsx-element/index.d.ts +0 -8
- package/dist/types-ts4.5/rules/no-html-code/node-types/styled-component/index.d.ts +0 -8
- package/dist/types-ts4.5/rules/no-html-code/node-types/supported.d.ts +0 -7
- package/dist/types-ts4.5/rules/no-html-heading/index.d.ts +0 -3
- package/dist/types-ts4.5/rules/no-html-heading/node-types/jsx-element/index.d.ts +0 -8
- package/dist/types-ts4.5/rules/no-html-heading/node-types/styled-component/index.d.ts +0 -8
- package/dist/types-ts4.5/rules/no-html-heading/node-types/supported.d.ts +0 -7
- package/dist/types-ts4.5/rules/no-html-image/index.d.ts +0 -3
- package/dist/types-ts4.5/rules/no-html-image/node-types/jsx-element/index.d.ts +0 -8
- package/dist/types-ts4.5/rules/no-html-image/node-types/styled-component/index.d.ts +0 -8
- package/dist/types-ts4.5/rules/no-html-image/node-types/supported.d.ts +0 -7
- package/dist/types-ts4.5/rules/no-html-image/utils/get-jsx-element-by-name.d.ts +0 -6
- package/dist/types-ts4.5/rules/no-html-radio/index.d.ts +0 -3
- package/dist/types-ts4.5/rules/no-html-radio/node-types/jsx-element/index.d.ts +0 -8
- package/dist/types-ts4.5/rules/no-html-radio/node-types/supported.d.ts +0 -7
- package/dist/types-ts4.5/rules/no-html-range/index.d.ts +0 -3
- package/dist/types-ts4.5/rules/no-html-range/node-types/jsx-element/index.d.ts +0 -8
- package/dist/types-ts4.5/rules/no-html-range/node-types/supported.d.ts +0 -7
- package/dist/types-ts4.5/rules/no-html-select/index.d.ts +0 -3
- package/dist/types-ts4.5/rules/no-html-select/node-types/jsx-element/index.d.ts +0 -8
- package/dist/types-ts4.5/rules/no-html-select/node-types/styled-component/index.d.ts +0 -8
- package/dist/types-ts4.5/rules/no-html-select/node-types/supported.d.ts +0 -7
- package/dist/types-ts4.5/rules/no-html-text-input/index.d.ts +0 -3
- package/dist/types-ts4.5/rules/no-html-text-input/node-types/jsx-element/index.d.ts +0 -8
- package/dist/types-ts4.5/rules/no-html-text-input/node-types/supported.d.ts +0 -7
- package/dist/types-ts4.5/rules/no-html-textarea/index.d.ts +0 -3
- package/dist/types-ts4.5/rules/no-html-textarea/node-types/jsx-element/index.d.ts +0 -8
- package/dist/types-ts4.5/rules/no-html-textarea/node-types/styled-component/index.d.ts +0 -8
- package/dist/types-ts4.5/rules/no-html-textarea/node-types/supported.d.ts +0 -7
- package/dist/types-ts4.5/rules/no-icon-spacing-prop/get-css-map-key.d.ts +0 -5
- package/dist/types-ts4.5/rules/no-icon-spacing-prop/get-icon-size.d.ts +0 -5
- package/dist/types-ts4.5/rules/no-icon-spacing-prop/get-spacing-attribute.d.ts +0 -5
- package/dist/types-ts4.5/rules/no-icon-spacing-prop/get-static-attribute-value.d.ts +0 -5
- package/dist/types-ts4.5/rules/no-icon-spacing-prop/has-spread-props.d.ts +0 -5
- package/dist/types-ts4.5/rules/no-icon-spacing-prop/index.d.ts +0 -3
- package/dist/types-ts4.5/rules/no-icon-spacing-prop/spacing-to-padding.d.ts +0 -5
- package/dist/types-ts4.5/rules/no-icon-spacing-prop/upsert-css-map-import.d.ts +0 -8
- package/dist/types-ts4.5/rules/no-icon-spacing-prop/upsert-css-map-variable.d.ts +0 -9
- package/dist/types-ts4.5/rules/no-icon-spacing-prop/upsert-flex-import.d.ts +0 -8
- package/dist/types-ts4.5/rules/no-icon-spacing-prop/upsert-token-import.d.ts +0 -8
- package/dist/types-ts4.5/rules/no-invalid-css-map/get-css-map-object.d.ts +0 -2
- package/dist/types-ts4.5/rules/no-invalid-css-map/index.d.ts +0 -3
- package/dist/types-ts4.5/rules/no-invalid-css-map/utils.d.ts +0 -12
- package/dist/types-ts4.5/rules/no-keyframes-tagged-template-expression/index.d.ts +0 -2
- package/dist/types-ts4.5/rules/no-margin/index.d.ts +0 -3
- package/dist/types-ts4.5/rules/no-nested-styles/index.d.ts +0 -3
- package/dist/types-ts4.5/rules/no-physical-properties/index.d.ts +0 -3
- package/dist/types-ts4.5/rules/no-physical-properties/logical-physical-map.d.ts +0 -72
- package/dist/types-ts4.5/rules/no-physical-properties/physical-logical-map.d.ts +0 -34
- package/dist/types-ts4.5/rules/no-placeholder/affected-atlaskit-packages.d.ts +0 -1
- package/dist/types-ts4.5/rules/no-placeholder/affected-html-elements.d.ts +0 -1
- package/dist/types-ts4.5/rules/no-placeholder/index.d.ts +0 -2
- package/dist/types-ts4.5/rules/no-readonly-or-disabled-inputs/affected-atlaskit-packages.d.ts +0 -1
- package/dist/types-ts4.5/rules/no-readonly-or-disabled-inputs/affected-html-elements.d.ts +0 -1
- package/dist/types-ts4.5/rules/no-readonly-or-disabled-inputs/index.d.ts +0 -2
- package/dist/types-ts4.5/rules/no-readonly-or-disabled-inputs/unwanted-atlaskit-attributes.d.ts +0 -4
- package/dist/types-ts4.5/rules/no-readonly-or-disabled-inputs/unwanted-html-attributes.d.ts +0 -4
- package/dist/types-ts4.5/rules/no-separator-with-list-elements/index.d.ts +0 -3
- package/dist/types-ts4.5/rules/no-styled-tagged-template-expression/index.d.ts +0 -2
- package/dist/types-ts4.5/rules/no-to-match-snapshot/index.d.ts +0 -4
- package/dist/types-ts4.5/rules/no-unsafe-design-token-usage/index.d.ts +0 -3
- package/dist/types-ts4.5/rules/no-unsafe-inline-snapshot/index.d.ts +0 -4
- package/dist/types-ts4.5/rules/no-unsafe-style-overrides/index.d.ts +0 -2
- package/dist/types-ts4.5/rules/no-unsupported-drag-and-drop-libraries/index.d.ts +0 -2
- package/dist/types-ts4.5/rules/no-unsupported-drag-and-drop-libraries/paths.d.ts +0 -4
- package/dist/types-ts4.5/rules/no-unused-css-map/get-css-map-object.d.ts +0 -5
- package/dist/types-ts4.5/rules/no-unused-css-map/index.d.ts +0 -3
- package/dist/types-ts4.5/rules/no-unused-css-map/unused-css-map-checker.d.ts +0 -14
- package/dist/types-ts4.5/rules/no-unused-css-map/utils.d.ts +0 -15
- package/dist/types-ts4.5/rules/prefer-primitives/index.d.ts +0 -2
- package/dist/types-ts4.5/rules/prefer-primitives/utils.d.ts +0 -2
- package/dist/types-ts4.5/rules/prefer-primitives/valid-primitive-elements.d.ts +0 -1
- package/dist/types-ts4.5/rules/use-button-group-label/index.d.ts +0 -3
- package/dist/types-ts4.5/rules/use-character-counter-field/index.d.ts +0 -6
- package/dist/types-ts4.5/rules/use-correct-field/index.d.ts +0 -5
- package/dist/types-ts4.5/rules/use-cx-function-in-xcss/index.d.ts +0 -3
- package/dist/types-ts4.5/rules/use-datetime-picker-calendar-button/index.d.ts +0 -7
- package/dist/types-ts4.5/rules/use-drawer-label/index.d.ts +0 -3
- package/dist/types-ts4.5/rules/use-field-message-wrapper/index.d.ts +0 -3
- package/dist/types-ts4.5/rules/use-heading/config/index.d.ts +0 -9
- package/dist/types-ts4.5/rules/use-heading/index.d.ts +0 -3
- package/dist/types-ts4.5/rules/use-heading/transformers/allowed-attrs.d.ts +0 -1
- package/dist/types-ts4.5/rules/use-heading/transformers/common.d.ts +0 -6
- package/dist/types-ts4.5/rules/use-heading/transformers/native-elements.d.ts +0 -22
- package/dist/types-ts4.5/rules/use-heading/transformers/update-test-id-attribute-fix.d.ts +0 -3
- package/dist/types-ts4.5/rules/use-heading-level-in-section-message/index.d.ts +0 -4
- package/dist/types-ts4.5/rules/use-heading-level-in-spotlight-card/index.d.ts +0 -4
- package/dist/types-ts4.5/rules/use-href-in-link-item/get-unique-button-item-name.d.ts +0 -2
- package/dist/types-ts4.5/rules/use-href-in-link-item/has-import-of-name.d.ts +0 -2
- package/dist/types-ts4.5/rules/use-href-in-link-item/index.d.ts +0 -4
- package/dist/types-ts4.5/rules/use-href-in-link-item/insert-button-item-default-import.d.ts +0 -3
- package/dist/types-ts4.5/rules/use-href-in-link-item/insert-button-item-import.d.ts +0 -3
- package/dist/types-ts4.5/rules/use-href-in-link-item/utils.d.ts +0 -3
- package/dist/types-ts4.5/rules/use-latest-xcss-syntax/index.d.ts +0 -4
- package/dist/types-ts4.5/rules/use-latest-xcss-syntax/transformers/style-property/index.d.ts +0 -18
- package/dist/types-ts4.5/rules/use-latest-xcss-syntax/transformers/style-property/style-map.d.ts +0 -1
- package/dist/types-ts4.5/rules/use-latest-xcss-syntax/transformers/style-property/supported.d.ts +0 -6
- package/dist/types-ts4.5/rules/use-latest-xcss-syntax/utils/is-string-or-number.d.ts +0 -1
- package/dist/types-ts4.5/rules/use-latest-xcss-syntax-typography/config/get-config.d.ts +0 -2
- package/dist/types-ts4.5/rules/use-latest-xcss-syntax-typography/config/patterns.d.ts +0 -6
- package/dist/types-ts4.5/rules/use-latest-xcss-syntax-typography/config/types.d.ts +0 -5
- package/dist/types-ts4.5/rules/use-latest-xcss-syntax-typography/index.d.ts +0 -3
- package/dist/types-ts4.5/rules/use-latest-xcss-syntax-typography/linters/common.d.ts +0 -7
- package/dist/types-ts4.5/rules/use-latest-xcss-syntax-typography/linters/restricted-capitalisation.d.ts +0 -6
- package/dist/types-ts4.5/rules/use-latest-xcss-syntax-typography/linters/restricted-property.d.ts +0 -6
- package/dist/types-ts4.5/rules/use-latest-xcss-syntax-typography/linters/wrapped-token-value.d.ts +0 -7
- package/dist/types-ts4.5/rules/use-menu-section-title/index.d.ts +0 -3
- package/dist/types-ts4.5/rules/use-modal-dialog-close-button/index.d.ts +0 -7
- package/dist/types-ts4.5/rules/use-onboarding-spotlight-label/index.d.ts +0 -3
- package/dist/types-ts4.5/rules/use-popup-label/index.d.ts +0 -3
- package/dist/types-ts4.5/rules/use-primitives/config/get-config.d.ts +0 -2
- package/dist/types-ts4.5/rules/use-primitives/config/index.d.ts +0 -7
- package/dist/types-ts4.5/rules/use-primitives/config/types.d.ts +0 -4
- package/dist/types-ts4.5/rules/use-primitives/config/valid-patterns.d.ts +0 -2
- package/dist/types-ts4.5/rules/use-primitives/index.d.ts +0 -3
- package/dist/types-ts4.5/rules/use-primitives/transformers/compiled-styled/attributes.d.ts +0 -1
- package/dist/types-ts4.5/rules/use-primitives/transformers/compiled-styled/convert-jsx-call-site.d.ts +0 -17
- package/dist/types-ts4.5/rules/use-primitives/transformers/compiled-styled/convert-styled-component-call-to-jsx.d.ts +0 -17
- package/dist/types-ts4.5/rules/use-primitives/transformers/compiled-styled/elements.d.ts +0 -1
- package/dist/types-ts4.5/rules/use-primitives/transformers/compiled-styled/find-valid-jsx-usage-to-transform.d.ts +0 -9
- package/dist/types-ts4.5/rules/use-primitives/transformers/compiled-styled/find-valid-styled-component-call.d.ts +0 -7
- package/dist/types-ts4.5/rules/use-primitives/transformers/compiled-styled/index.d.ts +0 -25
- package/dist/types-ts4.5/rules/use-primitives/transformers/css-to-xcss-transformer.d.ts +0 -3
- package/dist/types-ts4.5/rules/use-primitives/transformers/dimensions-map.d.ts +0 -3
- package/dist/types-ts4.5/rules/use-primitives/transformers/emotion-css/attributes.d.ts +0 -1
- package/dist/types-ts4.5/rules/use-primitives/transformers/emotion-css/elements.d.ts +0 -1
- package/dist/types-ts4.5/rules/use-primitives/transformers/emotion-css/index.d.ts +0 -15
- package/dist/types-ts4.5/rules/use-primitives/transformers/space-token-map.d.ts +0 -3
- package/dist/types-ts4.5/rules/use-primitives/transformers/space-token-positive-map.d.ts +0 -3
- package/dist/types-ts4.5/rules/use-primitives/transformers/styled-object-to-xcss-tokens.d.ts +0 -3
- package/dist/types-ts4.5/rules/use-primitives/transformers/supported-dimension-attributes-map.d.ts +0 -4
- package/dist/types-ts4.5/rules/use-primitives/transformers/supported-styles-map.d.ts +0 -4
- package/dist/types-ts4.5/rules/use-primitives/utils/convert-ast-object-expression-to-js-object.d.ts +0 -18
- package/dist/types-ts4.5/rules/use-primitives/utils/get-attribute-value-identifier.d.ts +0 -14
- package/dist/types-ts4.5/rules/use-primitives/utils/get-function-argument-at-pos.d.ts +0 -2
- package/dist/types-ts4.5/rules/use-primitives/utils/get-jsx-attribute-by-name.d.ts +0 -2
- package/dist/types-ts4.5/rules/use-primitives/utils/get-variable-definition-value.d.ts +0 -2
- package/dist/types-ts4.5/rules/use-primitives/utils/get-variable-usage-count.d.ts +0 -7
- package/dist/types-ts4.5/rules/use-primitives/utils/is-function-named.d.ts +0 -2
- package/dist/types-ts4.5/rules/use-primitives/utils/is-valid-css-properties-to-transform.d.ts +0 -4
- package/dist/types-ts4.5/rules/use-primitives/utils/spread-syntax.d.ts +0 -1
- package/dist/types-ts4.5/rules/use-primitives/utils/update-jsx-attribute-by-name.d.ts +0 -3
- package/dist/types-ts4.5/rules/use-primitives/utils/validate-styles.d.ts +0 -3
- package/dist/types-ts4.5/rules/use-primitives-text/config/get-config.d.ts +0 -2
- package/dist/types-ts4.5/rules/use-primitives-text/config/patterns.d.ts +0 -2
- package/dist/types-ts4.5/rules/use-primitives-text/config/types.d.ts +0 -8
- package/dist/types-ts4.5/rules/use-primitives-text/index.d.ts +0 -3
- package/dist/types-ts4.5/rules/use-primitives-text/transformers/add-color-inherit-attribute-fix.d.ts +0 -4
- package/dist/types-ts4.5/rules/use-primitives-text/transformers/allowed-attrs.d.ts +0 -1
- package/dist/types-ts4.5/rules/use-primitives-text/transformers/common.d.ts +0 -6
- package/dist/types-ts4.5/rules/use-primitives-text/transformers/emphasis-elements.d.ts +0 -13
- package/dist/types-ts4.5/rules/use-primitives-text/transformers/has-text-children-only.d.ts +0 -2
- package/dist/types-ts4.5/rules/use-primitives-text/transformers/paragraph-elements.d.ts +0 -25
- package/dist/types-ts4.5/rules/use-primitives-text/transformers/span-elements.d.ts +0 -13
- package/dist/types-ts4.5/rules/use-primitives-text/transformers/strong-elements.d.ts +0 -13
- package/dist/types-ts4.5/rules/use-primitives-text/transformers/update-test-id-attribute-fix.d.ts +0 -3
- package/dist/types-ts4.5/rules/use-should-render-to-parent/add-prop.d.ts +0 -1
- package/dist/types-ts4.5/rules/use-should-render-to-parent/index.d.ts +0 -6
- package/dist/types-ts4.5/rules/use-should-render-to-parent/set-prop-to-true.d.ts +0 -1
- package/dist/types-ts4.5/rules/use-simple-field/index.d.ts +0 -4
- package/dist/types-ts4.5/rules/use-simple-form/index.d.ts +0 -5
- package/dist/types-ts4.5/rules/use-simple-form/top-level-attribute-names.d.ts +0 -1
- package/dist/types-ts4.5/rules/use-spotlight-package/index.d.ts +0 -3
- package/dist/types-ts4.5/rules/use-spotlight-package/linters/import-declaration/index.d.ts +0 -16
- package/dist/types-ts4.5/rules/use-tag-group-label/index.d.ts +0 -3
- package/dist/types-ts4.5/rules/use-textfield-autocomplete/index.d.ts +0 -4
- package/dist/types-ts4.5/rules/use-tokens-shape/index.d.ts +0 -3
- package/dist/types-ts4.5/rules/use-tokens-shape/transformers/index.d.ts +0 -26
- package/dist/types-ts4.5/rules/use-tokens-shape/transformers/style-map.d.ts +0 -10
- package/dist/types-ts4.5/rules/use-tokens-shape/transformers/supported.d.ts +0 -6
- package/dist/types-ts4.5/rules/use-tokens-space/index.d.ts +0 -3
- package/dist/types-ts4.5/rules/use-tokens-space/transformers/style-property/index.d.ts +0 -26
- package/dist/types-ts4.5/rules/use-tokens-space/transformers/style-property/style-map.d.ts +0 -7
- package/dist/types-ts4.5/rules/use-tokens-space/transformers/style-property/supported.d.ts +0 -6
- package/dist/types-ts4.5/rules/use-tokens-space/utils/is-string-or-number.d.ts +0 -1
- package/dist/types-ts4.5/rules/use-tokens-typography/config/get-config.d.ts +0 -2
- package/dist/types-ts4.5/rules/use-tokens-typography/config/rule-schema.d.ts +0 -2
- package/dist/types-ts4.5/rules/use-tokens-typography/config/types.d.ts +0 -7
- package/dist/types-ts4.5/rules/use-tokens-typography/convert-property-node-to-stringable-node.d.ts +0 -2
- package/dist/types-ts4.5/rules/use-tokens-typography/default-font-weight.d.ts +0 -1
- package/dist/types-ts4.5/rules/use-tokens-typography/find-font-family-token-for-value.d.ts +0 -1
- package/dist/types-ts4.5/rules/use-tokens-typography/find-font-weight-token-for-value.d.ts +0 -2
- package/dist/types-ts4.5/rules/use-tokens-typography/find-typography-token-for-values.d.ts +0 -2
- package/dist/types-ts4.5/rules/use-tokens-typography/font-weight-map.d.ts +0 -2
- package/dist/types-ts4.5/rules/use-tokens-typography/font-weight-tokens.d.ts +0 -2
- package/dist/types-ts4.5/rules/use-tokens-typography/get-literal-property.d.ts +0 -2
- package/dist/types-ts4.5/rules/use-tokens-typography/get-token-property.d.ts +0 -2
- package/dist/types-ts4.5/rules/use-tokens-typography/index.d.ts +0 -3
- package/dist/types-ts4.5/rules/use-tokens-typography/insert-tokens-import.d.ts +0 -3
- package/dist/types-ts4.5/rules/use-tokens-typography/is-code-font-family.d.ts +0 -2
- package/dist/types-ts4.5/rules/use-tokens-typography/is-font-family.d.ts +0 -2
- package/dist/types-ts4.5/rules/use-tokens-typography/is-font-size-small.d.ts +0 -2
- package/dist/types-ts4.5/rules/use-tokens-typography/is-font-size.d.ts +0 -2
- package/dist/types-ts4.5/rules/use-tokens-typography/is-typography-property.d.ts +0 -1
- package/dist/types-ts4.5/rules/use-tokens-typography/is-valid-property-node.d.ts +0 -2
- package/dist/types-ts4.5/rules/use-tokens-typography/is-valid-typography-token.d.ts +0 -36
- package/dist/types-ts4.5/rules/use-tokens-typography/not-undefined.d.ts +0 -1
- package/dist/types-ts4.5/rules/use-tokens-typography/transformers/banned-properties.d.ts +0 -12
- package/dist/types-ts4.5/rules/use-tokens-typography/transformers/font-family.d.ts +0 -13
- package/dist/types-ts4.5/rules/use-tokens-typography/transformers/font-weight.d.ts +0 -13
- package/dist/types-ts4.5/rules/use-tokens-typography/transformers/restricted-capitalisation.d.ts +0 -12
- package/dist/types-ts4.5/rules/use-tokens-typography/transformers/style-object.d.ts +0 -33
- package/dist/types-ts4.5/rules/use-tokens-typography/transformers/untokenized-properties.d.ts +0 -12
- package/dist/types-ts4.5/rules/use-tokens-typography/types.d.ts +0 -15
- package/dist/types-ts4.5/rules/use-tokens-typography/typography-properties.d.ts +0 -1
- package/dist/types-ts4.5/rules/use-tokens-typography/typography-value-to-token.d.ts +0 -2
- package/dist/types-ts4.5/rules/use-visually-hidden/constants.d.ts +0 -3
- package/dist/types-ts4.5/rules/use-visually-hidden/count-matching-key-values.d.ts +0 -6
- package/dist/types-ts4.5/rules/use-visually-hidden/fix-jsx.d.ts +0 -3
- package/dist/types-ts4.5/rules/use-visually-hidden/fix-vanilla.d.ts +0 -3
- package/dist/types-ts4.5/rules/use-visually-hidden/get-first-import.d.ts +0 -5
- package/dist/types-ts4.5/rules/use-visually-hidden/get-object-likeness.d.ts +0 -9
- package/dist/types-ts4.5/rules/use-visually-hidden/index.d.ts +0 -3
- package/dist/types-ts4.5/rules/use-visually-hidden/make-template-literal-into-entries.d.ts +0 -4
- package/dist/types-ts4.5/rules/use-visually-hidden/reference-object.d.ts +0 -11
- package/dist/types-ts4.5/rules/use-visually-hidden/utils.d.ts +0 -26
- package/dist/types-ts4.5/rules/utils/create-lint-rule.d.ts +0 -8
- package/dist/types-ts4.5/rules/utils/create-no-exported-rule/check-if-supported-export.d.ts +0 -15
- package/dist/types-ts4.5/rules/utils/create-no-exported-rule/is-styled-component.d.ts +0 -14
- package/dist/types-ts4.5/rules/utils/create-no-exported-rule/main.d.ts +0 -19
- package/dist/types-ts4.5/rules/utils/create-no-tagged-template-expression-rule/create-no-tagged-template-expression-rule.d.ts +0 -5
- package/dist/types-ts4.5/rules/utils/create-no-tagged-template-expression-rule/generate.d.ts +0 -2
- package/dist/types-ts4.5/rules/utils/create-no-tagged-template-expression-rule/get-tagged-template-expression-offset.d.ts +0 -4
- package/dist/types-ts4.5/rules/utils/create-no-tagged-template-expression-rule/index.d.ts +0 -7
- package/dist/types-ts4.5/rules/utils/create-no-tagged-template-expression-rule/no-tagged-template-expression-rule-schema.d.ts +0 -2
- package/dist/types-ts4.5/rules/utils/create-no-tagged-template-expression-rule/to-arguments.d.ts +0 -4
- package/dist/types-ts4.5/rules/utils/create-no-tagged-template-expression-rule/types.d.ts +0 -28
- package/dist/types-ts4.5/rules/utils/create-rule.d.ts +0 -11
- package/dist/types-ts4.5/rules/utils/error-boundary.d.ts +0 -18
- package/dist/types-ts4.5/rules/utils/find-in-parent.d.ts +0 -9
- package/dist/types-ts4.5/rules/utils/find-prop.d.ts +0 -2
- package/dist/types-ts4.5/rules/utils/get-deprecated-config.d.ts +0 -2
- package/dist/types-ts4.5/rules/utils/get-first-supported-import.d.ts +0 -17
- package/dist/types-ts4.5/rules/utils/get-import-name.d.ts +0 -2
- package/dist/types-ts4.5/rules/utils/get-imported-node-by-source.d.ts +0 -8
- package/dist/types-ts4.5/rules/utils/get-is-exception.d.ts +0 -2
- package/dist/types-ts4.5/rules/utils/get-jsx-element-by-name.d.ts +0 -6
- package/dist/types-ts4.5/rules/utils/get-module-of-identifier.d.ts +0 -10
- package/dist/types-ts4.5/rules/utils/get-node-source.d.ts +0 -3
- package/dist/types-ts4.5/rules/utils/get-rule-url.d.ts +0 -1
- package/dist/types-ts4.5/rules/utils/get-styled-component-call.d.ts +0 -6
- package/dist/types-ts4.5/rules/utils/includes-hard-coded-color.d.ts +0 -1
- package/dist/types-ts4.5/rules/utils/is-child-of-type.d.ts +0 -2
- package/dist/types-ts4.5/rules/utils/is-color-css-property-name.d.ts +0 -1
- package/dist/types-ts4.5/rules/utils/is-css-in-js-call-node.d.ts +0 -2
- package/dist/types-ts4.5/rules/utils/is-css-in-js-object-node.d.ts +0 -2
- package/dist/types-ts4.5/rules/utils/is-css-in-js-template-node.d.ts +0 -2
- package/dist/types-ts4.5/rules/utils/is-current-surface-custom-property-name.d.ts +0 -1
- package/dist/types-ts4.5/rules/utils/is-decendant-of-global-token.d.ts +0 -2
- package/dist/types-ts4.5/rules/utils/is-decendant-of-primitive.d.ts +0 -2
- package/dist/types-ts4.5/rules/utils/is-decendant-of-style-block.d.ts +0 -2
- package/dist/types-ts4.5/rules/utils/is-decendant-of-style-jsx-attribute.d.ts +0 -2
- package/dist/types-ts4.5/rules/utils/is-decendant-of-svg-element.d.ts +0 -2
- package/dist/types-ts4.5/rules/utils/is-decendant-of-type.d.ts +0 -2
- package/dist/types-ts4.5/rules/utils/is-decendant-of-xcss-block.d.ts +0 -2
- package/dist/types-ts4.5/rules/utils/is-deprecated-import-config.d.ts +0 -2
- package/dist/types-ts4.5/rules/utils/is-deprecated-jsx-attribute-config.d.ts +0 -2
- package/dist/types-ts4.5/rules/utils/is-elevation.d.ts +0 -5
- package/dist/types-ts4.5/rules/utils/is-hard-coded-color.d.ts +0 -1
- package/dist/types-ts4.5/rules/utils/is-legacy-color.d.ts +0 -1
- package/dist/types-ts4.5/rules/utils/is-legacy-named-color.d.ts +0 -1
- package/dist/types-ts4.5/rules/utils/is-node.d.ts +0 -6
- package/dist/types-ts4.5/rules/utils/is-property-key.d.ts +0 -2
- package/dist/types-ts4.5/rules/utils/is-token.d.ts +0 -1
- package/dist/types-ts4.5/rules/utils/jsx.d.ts +0 -2
- package/dist/types-ts4.5/rules/utils/named-colors.d.ts +0 -1
- package/dist/types-ts4.5/rules/utils/types.d.ts +0 -28
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import type { Rule } from 'eslint';
|
|
2
|
-
import { type ObjectExpression, type Property, type SpreadElement } from 'eslint-codemod-utils';
|
|
3
|
-
export declare function getPropertyNodeFromParent(property: string, parentNode: ObjectExpression & Rule.NodeParentExtension): Property | SpreadElement | undefined;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { type SimpleCallExpression, type StringableASTNode } from 'eslint-codemod-utils';
|
|
2
|
-
/**
|
|
3
|
-
* Returns a token node for a given value including fallbacks.
|
|
4
|
-
* @param propertyName camelCase CSS property
|
|
5
|
-
* @param value string representing pixel value, or font family, or number representing font weight
|
|
6
|
-
* @example
|
|
7
|
-
* ```
|
|
8
|
-
* propertyName: padding, value: '8px' => token('space.100', '8px')
|
|
9
|
-
* propertyName: fontWeight, value: 400 => token('font.weight.regular', '400')
|
|
10
|
-
* ```
|
|
11
|
-
*/
|
|
12
|
-
export declare function getTokenNodeForValue(propertyName: string, value: string): StringableASTNode<SimpleCallExpression>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { SimpleCallExpression, StringableASTNode } from 'eslint-codemod-utils';
|
|
2
|
-
/**
|
|
3
|
-
* Returns a stringifiable node with the token expression corresponding to its matching token.
|
|
4
|
-
* If no token found for the pair the function returns undefined.
|
|
5
|
-
* @param propertyName string camelCased css property.
|
|
6
|
-
* @param value The computed value e.g '8px' -> '8'.
|
|
7
|
-
*/
|
|
8
|
-
export declare function getTokenReplacement(propertyName: string, value: string): StringableASTNode<SimpleCallExpression> | undefined;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import type { Rule } from 'eslint';
|
|
2
|
-
import type { RuleConfig } from './types';
|
|
3
|
-
type Suggestion = {
|
|
4
|
-
shouldReturnSuggestion: boolean;
|
|
5
|
-
} & Rule.SuggestionReportDescriptor;
|
|
6
|
-
export declare const getTokenSuggestion: (node: Rule.Node, reference: string, config: RuleConfig) => Suggestion[];
|
|
7
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const getValueFromShorthand: (str: unknown) => (string | number)[];
|
package/dist/types-ts4.5/rules/ensure-design-token-usage/get-value-from-template-literal-raw.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { Rule } from 'eslint';
|
|
2
|
-
import { type EslintNode } from 'eslint-codemod-utils';
|
|
3
|
-
/**
|
|
4
|
-
* @example
|
|
5
|
-
* ```js
|
|
6
|
-
* `2 ${variable} 0`
|
|
7
|
-
*
|
|
8
|
-
* // results in [2, NaN, 0]
|
|
9
|
-
* ```
|
|
10
|
-
* ```js
|
|
11
|
-
* const variable = 4;
|
|
12
|
-
* `2 ${variable} 0`
|
|
13
|
-
*
|
|
14
|
-
* // results in [2, 4, 0]
|
|
15
|
-
* ```
|
|
16
|
-
*/
|
|
17
|
-
export declare const getValueFromTemplateLiteralRaw: (node: EslintNode, context: Rule.RuleContext) => string[] | string | null;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function includesTokenString(originalValue: string): boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const isAuto: (value: string | number | boolean | RegExp | null | undefined | any[] | bigint) => boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isBorderSizeProperty(propertyName: string): boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const isCalc: (value: string | number | boolean | RegExp | null | undefined | any[] | bigint) => boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isRadiusProperty(propertyName: string): boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function isShapeProperty(propertyName: string): boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const isSpacingProperty: (propertyName: string) => boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const isValidSpacingValue: (value: string | number | boolean | RegExp | null | undefined | any[] | bigint, fontSize?: number | null | undefined) => boolean;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const isZero: (value: string | number | boolean | RegExp | null | undefined | any[] | bigint) => boolean;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Translate a raw value into the same value format for further parsing:
|
|
3
|
-
*
|
|
4
|
-
* -> for pixels this '8px'
|
|
5
|
-
* -> for weights '400'
|
|
6
|
-
* -> for family 'Arial'.
|
|
7
|
-
*
|
|
8
|
-
* @internal
|
|
9
|
-
*/
|
|
10
|
-
export declare function normaliseValue(propertyName: string, value: string | number): string;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { Rule } from 'eslint';
|
|
2
|
-
import { type TaggedTemplateExpression } from 'eslint-codemod-utils';
|
|
3
|
-
import type { ProcessedCSSLines } from './types';
|
|
4
|
-
/**
|
|
5
|
-
* Returns an array of tuples representing a processed css within `TaggedTemplateExpression` node.
|
|
6
|
-
* Each element of the array is a tuple `[string, string]`,
|
|
7
|
-
* where the first element is the processed css line with computed values
|
|
8
|
-
* and the second element of the tuple is the original css line from source.
|
|
9
|
-
* @param node TaggedTemplateExpression node.
|
|
10
|
-
* @param context Rule.RuleContext.
|
|
11
|
-
* @example
|
|
12
|
-
* ```
|
|
13
|
-
* `[['padding: 8', 'padding: ${gridSize()}'], ['margin: 6', 'margin: 6px' ]]`
|
|
14
|
-
* ```
|
|
15
|
-
*/
|
|
16
|
-
export declare function processCssNode(node: TaggedTemplateExpression & Rule.NodeParentExtension, context: Rule.RuleContext): ProcessedCSSLines | undefined;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const radiusValueToToken: any;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const removePixelSuffix: (value: string | number) => string | number;
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import type { Domains } from './types';
|
|
2
|
-
declare const ruleMeta: {
|
|
3
|
-
readonly name: 'ensure-design-token-usage';
|
|
4
|
-
readonly hasSuggestions: true;
|
|
5
|
-
readonly schema: {
|
|
6
|
-
readonly type: 'array';
|
|
7
|
-
readonly items: {
|
|
8
|
-
readonly type: 'object';
|
|
9
|
-
readonly properties: {
|
|
10
|
-
readonly applyImport: {
|
|
11
|
-
readonly type: 'boolean';
|
|
12
|
-
};
|
|
13
|
-
readonly shouldEnforceFallbacks: {
|
|
14
|
-
readonly type: 'boolean';
|
|
15
|
-
};
|
|
16
|
-
readonly domains: {
|
|
17
|
-
readonly type: 'array';
|
|
18
|
-
readonly items: {
|
|
19
|
-
readonly enum: Domains;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
readonly exceptions: {
|
|
23
|
-
readonly type: 'array';
|
|
24
|
-
};
|
|
25
|
-
};
|
|
26
|
-
};
|
|
27
|
-
};
|
|
28
|
-
readonly type: 'problem';
|
|
29
|
-
readonly fixable: 'code';
|
|
30
|
-
readonly docs: {
|
|
31
|
-
readonly description: 'Enforces usage of design tokens rather than hard-coded values.';
|
|
32
|
-
readonly recommended: true;
|
|
33
|
-
readonly severity: 'error';
|
|
34
|
-
};
|
|
35
|
-
readonly messages: {
|
|
36
|
-
readonly noRawRadiusValues: 'The use of shape tokens is preferred over the direct application of border properties.\n\n@meta <<{{payload}}>>';
|
|
37
|
-
readonly noRawSpacingValues: 'The use of spacing primitives or tokens is preferred over the direct application of spacing properties.\n\n@meta <<{{payload}}>>';
|
|
38
|
-
readonly autofixesPossible: 'Automated corrections available for spacing values. Apply autofix to replace values with appropriate tokens';
|
|
39
|
-
readonly noCalcUsage: 'The use of space tokens is preferred over using the CSS calc function. If using a value that is not aligned to the spacing scale, consider aligning to the scale and using tokens instead.';
|
|
40
|
-
readonly hardCodedColor: 'Colors can be sourced from the global theme using the token function.';
|
|
41
|
-
readonly legacyElevation: 'Elevations can be sourced from the global theme using the token function made of both a background and shadow. Use "card" for card elevations, and "overlay" for anything else that should appear elevated.';
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
export default ruleMeta;
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import type { Rule } from 'eslint';
|
|
2
|
-
import { type ImportDeclaration, type Property } from 'eslint-codemod-utils';
|
|
3
|
-
import type { RuleConfig } from './types';
|
|
4
|
-
export declare const lintObjectForSpacing: (node: Property, context: Rule.RuleContext, ruleConfig: RuleConfig, fontSize: any, tokenNode: ImportDeclaration | null) => void;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Accomplishes split str by whitespace but preserves expressions in between ${...}
|
|
3
|
-
* even if they might have whitepaces or nested brackets
|
|
4
|
-
* @param str
|
|
5
|
-
* @returns string[]
|
|
6
|
-
* @example
|
|
7
|
-
* Regex has two parts, first attempts to capture anything in between `${...}` in a capture group
|
|
8
|
-
* Whilst allowing nested brackets and non empty characters leading or traling wrapping expression e.g `${gridSize}`, `-${gridSize}px`
|
|
9
|
-
* second part is a white space delimiter
|
|
10
|
-
* For input `-${gridSize / 2}px ${token(...)} 18px -> [`-${gridSize / 2}px`, `${token(...)}`, `18px`]
|
|
11
|
-
*/
|
|
12
|
-
export declare const splitShorthandValues: (str: string) => string[];
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export type Domains = ('color' | 'spacing' | 'shape')[];
|
|
2
|
-
export type RuleConfig = {
|
|
3
|
-
domains: Domains;
|
|
4
|
-
applyImport?: boolean;
|
|
5
|
-
shouldEnforceFallbacks: boolean;
|
|
6
|
-
/**
|
|
7
|
-
* List of exceptions that can be configured for the rule to always ignore.
|
|
8
|
-
*/
|
|
9
|
-
exceptions?: string[];
|
|
10
|
-
failSilently?: boolean;
|
|
11
|
-
};
|
|
12
|
-
export type ProcessedCSSLines = [
|
|
13
|
-
string,
|
|
14
|
-
string
|
|
15
|
-
][];
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::b90bcf0b2fb6429faae59c7a454e3260>>
|
|
4
|
-
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
5
|
-
*/
|
|
6
|
-
import type { Rule } from 'eslint';
|
|
7
|
-
export declare const rules: Record<string, Rule.RuleModule>;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { Rule } from 'eslint';
|
|
2
|
-
export declare const message = "`autoFocus` should be set to a component's `ref` or left to resolve to the default value of `true`. It is recommended to leave it as is for a maximally accessible experience.";
|
|
3
|
-
export declare const ruleName: string;
|
|
4
|
-
declare const rule: Rule.RuleModule;
|
|
5
|
-
export default rule;
|
package/dist/types-ts4.5/rules/no-deprecated-apis/helpers/filter-actionable-deprecations.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const filterActionableDeprecations: (originalDeprecatedConfig: string, rootPackageJson: string) => string;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import type { Rule } from 'eslint';
|
|
2
|
-
import { type ExportNamedDeclaration, type ImportDeclaration } from 'eslint-codemod-utils';
|
|
3
|
-
type ReturnObject = {
|
|
4
|
-
checkImportNode: (node: ImportDeclaration & Rule.NodeParentExtension) => void;
|
|
5
|
-
checkExportNode: (node: ExportNamedDeclaration & Rule.NodeParentExtension) => void;
|
|
6
|
-
checkJSXElement: (node: Rule.Node) => void;
|
|
7
|
-
checkIdentifier: (node: Rule.Node) => void;
|
|
8
|
-
throwErrors: () => void;
|
|
9
|
-
};
|
|
10
|
-
export declare const createChecks: (context: Rule.RuleContext) => ReturnObject;
|
|
11
|
-
export {};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import type { Rule } from 'eslint';
|
|
2
|
-
import { type ExportNamedDeclaration, type ImportDeclaration, type JSXElement } from 'eslint-codemod-utils';
|
|
3
|
-
import type { DeprecatedImportConfigEntry } from '../../utils/types';
|
|
4
|
-
export type ImportIconDeprecationError = Rule.ReportDescriptor & {
|
|
5
|
-
node: ImportDeclaration;
|
|
6
|
-
};
|
|
7
|
-
export type ExportIconDeprecationError = Rule.ReportDescriptor & {
|
|
8
|
-
node: ExportNamedDeclaration;
|
|
9
|
-
};
|
|
10
|
-
export type ImportIconDeprecationErrorListAuto = {
|
|
11
|
-
[key: string]: ImportIconDeprecationError;
|
|
12
|
-
};
|
|
13
|
-
export type ExportIconDeprecationErrorListAuto = {
|
|
14
|
-
[key: string]: ExportIconDeprecationError;
|
|
15
|
-
};
|
|
16
|
-
type DeprecationIconHandler = (context: Rule.RuleContext) => {
|
|
17
|
-
createImportError: (args: {
|
|
18
|
-
node: ImportDeclaration;
|
|
19
|
-
importSource: string;
|
|
20
|
-
config: DeprecatedImportConfigEntry;
|
|
21
|
-
}) => void;
|
|
22
|
-
createExportError: (args: {
|
|
23
|
-
node: ExportNamedDeclaration;
|
|
24
|
-
importSource: string;
|
|
25
|
-
config: DeprecatedImportConfigEntry;
|
|
26
|
-
}) => void;
|
|
27
|
-
checkJSXElement: (node: JSXElement) => void;
|
|
28
|
-
checkIdentifier: (node: Rule.Node) => void;
|
|
29
|
-
throwErrors: () => void;
|
|
30
|
-
};
|
|
31
|
-
/**
|
|
32
|
-
* __Deprecation icon handler__
|
|
33
|
-
*
|
|
34
|
-
* A deprecation icon handler which is responsible for displaying an error for deprecated icons.
|
|
35
|
-
* It also includes a fixer to replace the deprecated icon with the new icon if a replacement exists.
|
|
36
|
-
*/
|
|
37
|
-
export declare const getDeprecationIconHandler: DeprecationIconHandler;
|
|
38
|
-
export {};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Forked from original `no-restricted-imports` although the source has been substantially changed.
|
|
3
|
-
*
|
|
4
|
-
* To ensure compliance the license from eslint has been included and the original attribution.
|
|
5
|
-
* @author Guy Ellis
|
|
6
|
-
*
|
|
7
|
-
* Copyright OpenJS Foundation and other contributors, <www.openjsf.org>
|
|
8
|
-
*
|
|
9
|
-
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
10
|
-
* of this software and associated documentation files (the "Software"), to deal
|
|
11
|
-
* in the Software without restriction, including without limitation the rights
|
|
12
|
-
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
13
|
-
* copies of the Software, and to permit persons to whom the Software is
|
|
14
|
-
* furnished to do so, subject to the following conditions:
|
|
15
|
-
*
|
|
16
|
-
* The above copyright notice and this permission notice shall be included in
|
|
17
|
-
* all copies or substantial portions of the Software.
|
|
18
|
-
*
|
|
19
|
-
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
20
|
-
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
21
|
-
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
22
|
-
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
23
|
-
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
24
|
-
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
25
|
-
* THE SOFTWARE.
|
|
26
|
-
*/
|
|
27
|
-
export declare const name = "no-deprecated-imports";
|
|
28
|
-
declare const rule: import('eslint').Rule.RuleModule;
|
|
29
|
-
export default rule;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const blockedEventNameLookup: Set<string>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const blockedJSXAttributeLookup: Set<string>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type EslintNode } from 'eslint-codemod-utils';
|
|
2
|
-
/**
|
|
3
|
-
* Determines if the given JSX element is a supported element to lint with this rule.
|
|
4
|
-
*/
|
|
5
|
-
export declare function isSupportedForLint(jsxNode: EslintNode, elementName?: string): jsxNode is Extract<EslintNode, {
|
|
6
|
-
type: 'JSXElement';
|
|
7
|
-
}>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type EslintNode } from 'eslint-codemod-utils';
|
|
2
|
-
/**
|
|
3
|
-
* Determines if the given JSX element is a supported element to lint with this rule.
|
|
4
|
-
*/
|
|
5
|
-
export declare function isSupportedForLint(jsxNode: EslintNode, elementName?: string): jsxNode is Extract<EslintNode, {
|
|
6
|
-
type: 'JSXElement';
|
|
7
|
-
}>;
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { type EslintNode } from 'eslint-codemod-utils';
|
|
2
|
-
/**
|
|
3
|
-
* Determines if the given JSX element is a supported element to lint with this rule.
|
|
4
|
-
*/
|
|
5
|
-
export declare function isSupportedForLint(jsxNode: EslintNode, elementName?: string): jsxNode is Extract<EslintNode, {
|
|
6
|
-
type: 'JSXElement';
|
|
7
|
-
}>;
|