@atlaskit/eslint-plugin-design-system 14.3.2 → 15.0.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 +33 -0
- package/README.md +80 -79
- package/dist/cjs/presets/all-flat.codegen.js +2 -1
- package/dist/cjs/presets/all.codegen.js +2 -1
- package/dist/cjs/presets/recommended-flat.codegen.js +2 -1
- package/dist/cjs/presets/recommended.codegen.js +2 -1
- package/dist/cjs/rules/index.codegen.js +3 -1
- package/dist/cjs/rules/use-heading-level-in-section-message/index.js +68 -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/presets/recommended-flat.codegen.js +2 -1
- package/dist/es2019/presets/recommended.codegen.js +2 -1
- package/dist/es2019/rules/index.codegen.js +3 -1
- package/dist/es2019/rules/use-heading-level-in-section-message/index.js +54 -0
- package/dist/esm/presets/all-flat.codegen.js +2 -1
- package/dist/esm/presets/all.codegen.js +2 -1
- package/dist/esm/presets/recommended-flat.codegen.js +2 -1
- package/dist/esm/presets/recommended.codegen.js +2 -1
- package/dist/esm/rules/index.codegen.js +3 -1
- package/dist/esm/rules/use-heading-level-in-section-message/index.js +62 -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/presets/recommended-flat.codegen.d.ts +1 -1
- package/dist/types/presets/recommended.codegen.d.ts +1 -1
- package/dist/types/rules/index.codegen.d.ts +1 -1
- 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-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
- /package/dist/{types-ts4.5/rules/use-heading-level-in-spotlight-card → types/rules/use-heading-level-in-section-message}/index.d.ts +0 -0
|
@@ -44,7 +44,7 @@ export var createNoTaggedTemplateExpressionRule = function createNoTaggedTemplat
|
|
|
44
44
|
node: node,
|
|
45
45
|
fix: /*#__PURE__*/_regeneratorRuntime.mark(function fix(fixer) {
|
|
46
46
|
var quasi, source, matches, args, oldCode, withoutQuasi, newCode, usesEmotion;
|
|
47
|
-
return _regeneratorRuntime.wrap(function
|
|
47
|
+
return _regeneratorRuntime.wrap(function (_context) {
|
|
48
48
|
while (1) switch (_context.prev = _context.next) {
|
|
49
49
|
case 0:
|
|
50
50
|
quasi = node.quasi;
|
|
@@ -53,40 +53,40 @@ export var createNoTaggedTemplateExpressionRule = function createNoTaggedTemplat
|
|
|
53
53
|
if (!(shouldSkipMultilineComments && quasi.quasis.map(function (q) {
|
|
54
54
|
return q.value.raw;
|
|
55
55
|
}).join('').match(/\/\*[\s\S]*\*\//g))) {
|
|
56
|
-
_context.next =
|
|
56
|
+
_context.next = 1;
|
|
57
57
|
break;
|
|
58
58
|
}
|
|
59
59
|
return _context.abrupt("return");
|
|
60
|
-
case
|
|
60
|
+
case 1:
|
|
61
61
|
matches = esquery(node, 'ArrowFunctionExpression > BlockStatement');
|
|
62
62
|
if (!matches.length) {
|
|
63
|
-
_context.next =
|
|
63
|
+
_context.next = 2;
|
|
64
64
|
break;
|
|
65
65
|
}
|
|
66
66
|
return _context.abrupt("return");
|
|
67
|
-
case
|
|
67
|
+
case 2:
|
|
68
68
|
if (!(!quasi.expressions.length && quasi.quasis.length === 1 && !quasi.quasis[0].value.raw.trim())) {
|
|
69
|
-
_context.next =
|
|
69
|
+
_context.next = 4;
|
|
70
70
|
break;
|
|
71
71
|
}
|
|
72
|
-
_context.next =
|
|
72
|
+
_context.next = 3;
|
|
73
73
|
return fixer.replaceText(quasi, '({})');
|
|
74
|
-
case
|
|
74
|
+
case 3:
|
|
75
75
|
return _context.abrupt("return");
|
|
76
|
-
case
|
|
76
|
+
case 4:
|
|
77
77
|
args = toArguments(source, quasi);
|
|
78
78
|
if (!args.some(hasNestedSelectorWithMultipleArguments)) {
|
|
79
|
-
_context.next =
|
|
79
|
+
_context.next = 5;
|
|
80
80
|
break;
|
|
81
81
|
}
|
|
82
82
|
return _context.abrupt("return");
|
|
83
|
-
case
|
|
83
|
+
case 5:
|
|
84
84
|
if (!(args.length < 1)) {
|
|
85
|
-
_context.next =
|
|
85
|
+
_context.next = 6;
|
|
86
86
|
break;
|
|
87
87
|
}
|
|
88
88
|
return _context.abrupt("return");
|
|
89
|
-
case
|
|
89
|
+
case 6:
|
|
90
90
|
oldCode = source.getText(node); // Remove quasi:
|
|
91
91
|
// styled.div<Props>`
|
|
92
92
|
// color: red;
|
|
@@ -98,33 +98,33 @@ export var createNoTaggedTemplateExpressionRule = function createNoTaggedTemplat
|
|
|
98
98
|
// Indent the arguments after the tagged template expression range
|
|
99
99
|
generate(args, getTaggedTemplateExpressionOffset(node));
|
|
100
100
|
if (!(oldCode === newCode)) {
|
|
101
|
-
_context.next =
|
|
101
|
+
_context.next = 7;
|
|
102
102
|
break;
|
|
103
103
|
}
|
|
104
104
|
return _context.abrupt("return");
|
|
105
|
-
case
|
|
105
|
+
case 7:
|
|
106
106
|
// For styles like `position: initial !important`,
|
|
107
107
|
// Emotion can give typechecking errors when using object syntax
|
|
108
108
|
// due to csstype being overly strict
|
|
109
109
|
usesEmotion = isEmotion(node.tag, references, importSources);
|
|
110
110
|
if (!(usesEmotion && !!newCode.match(/!\s*important/gm))) {
|
|
111
|
-
_context.next =
|
|
111
|
+
_context.next = 8;
|
|
112
112
|
break;
|
|
113
113
|
}
|
|
114
114
|
return _context.abrupt("return");
|
|
115
|
-
case
|
|
115
|
+
case 8:
|
|
116
116
|
if (!/\$\{.*:/.test(newCode)) {
|
|
117
|
-
_context.next =
|
|
117
|
+
_context.next = 9;
|
|
118
118
|
break;
|
|
119
119
|
}
|
|
120
120
|
return _context.abrupt("return");
|
|
121
|
-
case
|
|
122
|
-
_context.next =
|
|
121
|
+
case 9:
|
|
122
|
+
_context.next = 10;
|
|
123
123
|
return fixer.insertTextBefore(node, newCode);
|
|
124
|
-
case
|
|
125
|
-
_context.next =
|
|
124
|
+
case 10:
|
|
125
|
+
_context.next = 11;
|
|
126
126
|
return fixer.remove(node);
|
|
127
|
-
case
|
|
127
|
+
case 11:
|
|
128
128
|
case "end":
|
|
129
129
|
return _context.stop();
|
|
130
130
|
}
|
|
@@ -27,7 +27,7 @@ var getArguments = function getArguments(chars) {
|
|
|
27
27
|
var _chars$split = chars.split(':'),
|
|
28
28
|
_chars$split2 = _toArray(_chars$split),
|
|
29
29
|
property = _chars$split2[0],
|
|
30
|
-
v = _chars$split2.slice(1);
|
|
30
|
+
v = _arrayLikeToArray(_chars$split2).slice(1);
|
|
31
31
|
var value = v.join(':');
|
|
32
32
|
|
|
33
33
|
// Extract any expressions listed before the property that were not delimited by a ;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::4cd2dfd73ed3cdd152ee6481087c49ee>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
5
5
|
*/
|
|
6
6
|
import type { Linter } from 'eslint';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::8efae2c2e169f84381b978b4bc47433d>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
5
5
|
*/
|
|
6
6
|
import type { ESLint } from 'eslint';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::80b81104d52bdf5ca1b99e6265b83cef>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
5
5
|
*/
|
|
6
6
|
import type { Linter } from 'eslint';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::c7aa5d4ccdf62d54c12e1d5344a38fb8>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
5
5
|
*/
|
|
6
6
|
import type { ESLint } from 'eslint';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::b90bcf0b2fb6429faae59c7a454e3260>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
5
5
|
*/
|
|
6
6
|
import type { Rule } from 'eslint';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@atlaskit/eslint-plugin-design-system",
|
|
3
3
|
"description": "The essential plugin for use with the Atlassian Design System.",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "15.0.0",
|
|
5
5
|
"author": "Atlassian Pty Ltd",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"publishConfig": {
|
|
@@ -22,14 +22,6 @@
|
|
|
22
22
|
"module": "dist/esm/index.js",
|
|
23
23
|
"module:es2019": "dist/es2019/index.js",
|
|
24
24
|
"types": "dist/types/index.d.ts",
|
|
25
|
-
"typesVersions": {
|
|
26
|
-
">=4.5 <4.9": {
|
|
27
|
-
"*": [
|
|
28
|
-
"dist/types-ts4.5/*",
|
|
29
|
-
"dist/types-ts4.5/index.d.ts"
|
|
30
|
-
]
|
|
31
|
-
}
|
|
32
|
-
},
|
|
33
25
|
"sideEffects": [
|
|
34
26
|
"**/*.compiled.css"
|
|
35
27
|
],
|
|
@@ -38,10 +30,10 @@
|
|
|
38
30
|
"react": "^18.2.0"
|
|
39
31
|
},
|
|
40
32
|
"dependencies": {
|
|
41
|
-
"@atlaskit/eslint-utils": "^
|
|
42
|
-
"@atlaskit/icon": "^
|
|
43
|
-
"@atlaskit/icon-lab": "^
|
|
44
|
-
"@atlaskit/tokens": "^
|
|
33
|
+
"@atlaskit/eslint-utils": "^3.0.0",
|
|
34
|
+
"@atlaskit/icon": "^36.0.0",
|
|
35
|
+
"@atlaskit/icon-lab": "^7.0.0",
|
|
36
|
+
"@atlaskit/tokens": "^14.0.0",
|
|
45
37
|
"@babel/runtime": "^7.0.0",
|
|
46
38
|
"@typescript-eslint/utils": "^7.1.0",
|
|
47
39
|
"ajv": "^6.12.6",
|
|
@@ -55,8 +47,8 @@
|
|
|
55
47
|
},
|
|
56
48
|
"devDependencies": {
|
|
57
49
|
"@af/formatting": "workspace:^",
|
|
58
|
-
"@atlaskit/ds-lib": "^
|
|
59
|
-
"@atlaskit/theme": "^
|
|
50
|
+
"@atlaskit/ds-lib": "^8.0.0",
|
|
51
|
+
"@atlaskit/theme": "^26.0.0",
|
|
60
52
|
"@atlassian/codegen": "^0.2.0",
|
|
61
53
|
"@atlassian/eslint-utils": "^0.5.0",
|
|
62
54
|
"@atlassian/ts-loader": "^0.1.0",
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { Rule } from 'eslint';
|
|
2
|
-
import { type CallExpression, type ObjectExpression } from 'eslint-codemod-utils';
|
|
3
|
-
export declare const FunctionCall: {
|
|
4
|
-
getName(node: CallExpression): string | undefined;
|
|
5
|
-
updateName(node: CallExpression, newName: string, fixer: Rule.RuleFixer): Rule.Fix;
|
|
6
|
-
/**
|
|
7
|
-
* Function arguments can be many things:
|
|
8
|
-
* `css(myStyles, () => {}, undefined, 'literal', ...rest) // etc`
|
|
9
|
-
* They all need slightly different treatment.
|
|
10
|
-
*
|
|
11
|
-
* Currently 'getArgumentAtPos' only implements strategies for Literals and ObjectExpressions.
|
|
12
|
-
* If you need to support another type of arg, add it, and update the type.
|
|
13
|
-
*/
|
|
14
|
-
getArgumentAtPos(node: CallExpression, pos: number): {
|
|
15
|
-
type: "Literal";
|
|
16
|
-
value: string;
|
|
17
|
-
} | {
|
|
18
|
-
type: "ObjectExpression";
|
|
19
|
-
value: ObjectExpression;
|
|
20
|
-
} | undefined;
|
|
21
|
-
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { Rule } from 'eslint';
|
|
2
|
-
import { type ImportDeclaration } from 'eslint-codemod-utils';
|
|
3
|
-
export declare const Import: {
|
|
4
|
-
/**
|
|
5
|
-
* Note: fixes can't overlap, which means this will fail:
|
|
6
|
-
* ```
|
|
7
|
-
* const importNode = Root.findImportByModule('@atlaskit/primitives')
|
|
8
|
-
* Import.insertNamedSpecifier(importNode, 'Box')
|
|
9
|
-
* Import.insertNamedSpecifier(importNode, 'xcss')
|
|
10
|
-
* ```
|
|
11
|
-
*
|
|
12
|
-
* For this reason `insertNamedSpecifiers` accepts a `specifiers` array, so you can group all inserts together.
|
|
13
|
-
*/
|
|
14
|
-
insertNamedSpecifiers(node: ImportDeclaration, specifiers: string[], fixer: Rule.RuleFixer): Rule.Fix | undefined;
|
|
15
|
-
containsNamedSpecifier(node: ImportDeclaration, name: string): boolean;
|
|
16
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { Rule } from 'eslint';
|
|
2
|
-
import { type JSXAttribute } from 'eslint-codemod-utils';
|
|
3
|
-
declare const HelperJSXAttribute: {
|
|
4
|
-
getName(node: JSXAttribute): string;
|
|
5
|
-
updateName(node: JSXAttribute, name: string, fixer: Rule.RuleFixer): Rule.Fix;
|
|
6
|
-
/**
|
|
7
|
-
* A JSXAttribute value can be many things:
|
|
8
|
-
* - css='myStyles'
|
|
9
|
-
* - css={myStyles}
|
|
10
|
-
* - css={[styles1, styles2]}
|
|
11
|
-
* - header={<></>}
|
|
12
|
-
* - css={styleMap.header}
|
|
13
|
-
* - css={...styles}
|
|
14
|
-
*
|
|
15
|
-
* Currently, `getValue` has only implemented strategies for when the value is a string, or an ExpressionStatement
|
|
16
|
-
* If you need additional functionality add it, and set the correct `type` on the returned object
|
|
17
|
-
*/
|
|
18
|
-
getValue(node: JSXAttribute): {
|
|
19
|
-
type: "ExpressionStatement";
|
|
20
|
-
value: string;
|
|
21
|
-
} | {
|
|
22
|
-
type: "ExpressionStatement Literal";
|
|
23
|
-
value: string | number | bigint | boolean | RegExp | null | undefined;
|
|
24
|
-
} | {
|
|
25
|
-
type: "Literal";
|
|
26
|
-
value: string;
|
|
27
|
-
} | undefined;
|
|
28
|
-
};
|
|
29
|
-
export { HelperJSXAttribute as JSXAttribute };
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import type { Rule } from 'eslint';
|
|
2
|
-
import { type JSXAttribute, type JSXElement, type JSXFragment, type JSXSpreadAttribute } from 'eslint-codemod-utils';
|
|
3
|
-
export declare const JSXElementHelper: {
|
|
4
|
-
/**
|
|
5
|
-
* Names of JSXElements can be any of:
|
|
6
|
-
* `<Component></Component>` - (JSXIdentifier)
|
|
7
|
-
* `<MyComponents.Component></MyComponents.Component>` - `MyComponents` is a namespace (JSXNamespacedName)
|
|
8
|
-
* `<MyComponents.Component></MyComponents.Component>` - `MyComponents` is an object (JSXMemberExpression)
|
|
9
|
-
*
|
|
10
|
-
* getting the name of a JSXMemberExpression is difficult, because object can contain objects, which is recursively defined in the AST.
|
|
11
|
-
* e.g. Getting the name of `<MyComponents.PresentationLayer.LeftSideBar.Header />` would require `getName` to recursively resolve all parts of the name.
|
|
12
|
-
* `getName` does not currently have this functionality. Add it if you need it.
|
|
13
|
-
*/
|
|
14
|
-
getName(node: JSXElement): string;
|
|
15
|
-
updateName(node: JSXElement, newName: string, fixer: Rule.RuleFixer): Rule.Fix[];
|
|
16
|
-
isSelfClosing(node: JSXElement): boolean;
|
|
17
|
-
getAttributes(node: JSXElement): (JSXAttribute | JSXSpreadAttribute)[];
|
|
18
|
-
getAttributeByName(node: JSXElement, name: string): JSXAttribute | undefined;
|
|
19
|
-
containsSpreadAttributes(node: JSXElement): boolean;
|
|
20
|
-
addAttribute(node: JSXElement, name: string, value: string, fixer: Rule.RuleFixer): Rule.Fix;
|
|
21
|
-
getChildren(node: JSXElement | JSXFragment): JSXElement["children"];
|
|
22
|
-
hasAllowedAttrsOnly(node: JSXElement, allowedProps: string[]): boolean;
|
|
23
|
-
};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import type { Rule } from 'eslint';
|
|
2
|
-
import { type JSXAttribute, type JSXElement, type JSXFragment, type JSXSpreadAttribute } from 'eslint-codemod-utils';
|
|
3
|
-
export declare const JSXElementHelper: {
|
|
4
|
-
/**
|
|
5
|
-
* Names of JSXElements can be any of:
|
|
6
|
-
* `<Component></Component>` - (JSXIdentifier)
|
|
7
|
-
* `<MyComponents.Component></MyComponents.Component>` - `MyComponents` is a namespace (JSXNamespacedName)
|
|
8
|
-
* `<MyComponents.Component></MyComponents.Component>` - `MyComponents` is an object (JSXMemberExpression)
|
|
9
|
-
*
|
|
10
|
-
* getting the name of a JSXMemberExpression is difficult, because object can contain objects, which is recursively defined in the AST.
|
|
11
|
-
* e.g. Getting the name of `<MyComponents.PresentationLayer.LeftSideBar.Header />` would require `getName` to recursively resolve all parts of the name.
|
|
12
|
-
* `getName` does not currently have this functionality. Add it if you need it.
|
|
13
|
-
*/
|
|
14
|
-
getName(node: JSXElement): string;
|
|
15
|
-
updateName(node: JSXElement, newName: string, fixer: Rule.RuleFixer): Rule.Fix[];
|
|
16
|
-
isSelfClosing(node: JSXElement): boolean;
|
|
17
|
-
getAttributes(node: JSXElement): (JSXAttribute | JSXSpreadAttribute)[];
|
|
18
|
-
getAttributeByName(node: JSXElement, name: string): JSXAttribute | undefined;
|
|
19
|
-
containsSpreadAttributes(node: JSXElement): boolean;
|
|
20
|
-
addAttribute(node: JSXElement, name: string, value: string, fixer: Rule.RuleFixer): Rule.Fix;
|
|
21
|
-
getChildren(node: JSXElement | JSXFragment): JSXElement["children"];
|
|
22
|
-
hasAllowedAttrsOnly(node: JSXElement, allowedProps: string[]): boolean;
|
|
23
|
-
};
|
|
24
|
-
export { JSXElementHelper as JSXElement };
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { Rule } from 'eslint';
|
|
2
|
-
import { type Property, type SpreadElement } from 'eslint-codemod-utils';
|
|
3
|
-
export declare const ObjectEntry: {
|
|
4
|
-
getProperty(node: Property): {
|
|
5
|
-
type: "Identifier";
|
|
6
|
-
value: string;
|
|
7
|
-
} | {
|
|
8
|
-
type: "Literal";
|
|
9
|
-
value: string;
|
|
10
|
-
} | {
|
|
11
|
-
type: undefined;
|
|
12
|
-
value: undefined;
|
|
13
|
-
};
|
|
14
|
-
getValue(node: Property): string | number | bigint | true | RegExp | undefined;
|
|
15
|
-
deleteEntry(node: Property | SpreadElement, context: Rule.RuleContext, fixer: Rule.RuleFixer): Rule.Fix;
|
|
16
|
-
getPropertyName(node: Property | SpreadElement): string | undefined;
|
|
17
|
-
};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import type { Rule } from 'eslint';
|
|
2
|
-
import { type ObjectExpression, type Property, type SpreadElement } from 'eslint-codemod-utils';
|
|
3
|
-
declare const ASTObjectExpression: {
|
|
4
|
-
/**
|
|
5
|
-
* Returns `true` if an object contains a property with the specified name, `false` otherwise.
|
|
6
|
-
*/
|
|
7
|
-
hasProperty(node: ObjectExpression, name: string): boolean;
|
|
8
|
-
/**
|
|
9
|
-
* Returns true if an object contains no nested values, false otherwise.
|
|
10
|
-
*
|
|
11
|
-
* Note:
|
|
12
|
-
* - Returns false if object contains spread elements.
|
|
13
|
-
* - Returns true if object is empty.
|
|
14
|
-
*/
|
|
15
|
-
isFlat(node: ObjectExpression): boolean;
|
|
16
|
-
/**
|
|
17
|
-
* Returns the first Property node from an Object that matches the provided name.
|
|
18
|
-
*/
|
|
19
|
-
getEntryByPropertyName(node: ObjectExpression, name: string): Property | undefined;
|
|
20
|
-
deleteEntry(node: ObjectExpression, name: string, fixer: Rule.RuleFixer): Rule.Fix[];
|
|
21
|
-
/**
|
|
22
|
-
* Returns only the property @type {Property['key']} like: `padding` from: `{ padding: '8px' }`.
|
|
23
|
-
* If you want the key/value pair, use `getEntryByPropertyName`.
|
|
24
|
-
*/
|
|
25
|
-
getProperty(node: ObjectExpression, name: string): Property["key"] | undefined;
|
|
26
|
-
/**
|
|
27
|
-
* Gets the array of key/value pairs in an ObjectExpression.
|
|
28
|
-
*/
|
|
29
|
-
getEntries(node: ObjectExpression): (Property | SpreadElement)[];
|
|
30
|
-
/**
|
|
31
|
-
* Returns a only the property @type {Property['value']} like: `'8px` from: `{ padding: '8px' }`.
|
|
32
|
-
*
|
|
33
|
-
* Values can be basically anything, so be careful with this.
|
|
34
|
-
*/
|
|
35
|
-
getValueByPropertyName(node: ObjectExpression, name: string): Property["value"] | undefined;
|
|
36
|
-
containsSpreadProps(node: ObjectExpression): boolean;
|
|
37
|
-
updateValue(node: ObjectExpression, propertyName: string, newValue: string, fixer: Rule.RuleFixer): Rule.Fix;
|
|
38
|
-
/**
|
|
39
|
-
* Appends a key-value pair to the end of an object. For example:
|
|
40
|
-
* ```
|
|
41
|
-
* ast.Object.appendEntry(
|
|
42
|
-
* node, // { padding: 'space.100' }
|
|
43
|
-
* key, // 'margin',
|
|
44
|
-
* value, // 'space.200'
|
|
45
|
-
* fixer,
|
|
46
|
-
* )
|
|
47
|
-
* ```
|
|
48
|
-
* Will result in `{ padding: 'space.100', margin: 'space.200'}`.
|
|
49
|
-
*/
|
|
50
|
-
appendEntry(node: ObjectExpression, key: string, value: string, fixer: Rule.RuleFixer): Rule.Fix;
|
|
51
|
-
recurse(node: ObjectExpression, callback: Function): void;
|
|
52
|
-
};
|
|
53
|
-
export { ASTObjectExpression as Object };
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import type { Rule } from 'eslint';
|
|
2
|
-
import { type Directive, type ImportDeclaration, insertImportDeclaration, type ModuleDeclaration, type Statement } from 'eslint-codemod-utils';
|
|
3
|
-
type ImportData = Parameters<typeof insertImportDeclaration>[1];
|
|
4
|
-
export declare const Root: {
|
|
5
|
-
/**
|
|
6
|
-
* Note: This can return multiple ImportDeclarations for cases like:
|
|
7
|
-
* ```
|
|
8
|
-
* import { Stack } from '@atlaskit/primitives'
|
|
9
|
-
* import type { StackProps } from '@atlaskit/primitives'
|
|
10
|
-
* ```
|
|
11
|
-
*/
|
|
12
|
-
findImportsByModule(root: (Directive | Statement | ModuleDeclaration)[], name: string | string[]): ImportDeclaration[];
|
|
13
|
-
insertImport(root: (Directive | Statement | ModuleDeclaration)[], data: {
|
|
14
|
-
module: string;
|
|
15
|
-
specifiers: ImportData;
|
|
16
|
-
}, fixer: Rule.RuleFixer): Rule.Fix;
|
|
17
|
-
upsertNamedImportDeclaration({ module, specifiers, }: {
|
|
18
|
-
module: string;
|
|
19
|
-
specifiers: string[];
|
|
20
|
-
}, context: Rule.RuleContext, fixer: Rule.RuleFixer): Rule.Fix | undefined;
|
|
21
|
-
upsertDefaultImportDeclaration({ module, localName, }: {
|
|
22
|
-
module: string;
|
|
23
|
-
localName: string;
|
|
24
|
-
}, context: Rule.RuleContext, fixer: Rule.RuleFixer): Rule.Fix | undefined;
|
|
25
|
-
};
|
|
26
|
-
export {};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Rule } from 'eslint';
|
|
2
|
-
import type { ImportDeclaration } from 'eslint-codemod-utils';
|
|
3
|
-
import { type ImportedJSXElement } from './is-imported-jsx-element';
|
|
4
|
-
export declare function createIsFromImportSourceFor(...importSources: (string | RegExp)[]): {
|
|
5
|
-
(node: Rule.Node): node is ImportedJSXElement;
|
|
6
|
-
importDeclarationHook(node: ImportDeclaration): void;
|
|
7
|
-
getImportSource(node: Rule.Node): string;
|
|
8
|
-
};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import type { Rule } from 'eslint';
|
|
2
|
-
import { type JSXElement, type JSXIdentifier, type JSXOpeningElement } from 'eslint-codemod-utils';
|
|
3
|
-
export type ImportedJSXElement = JSXElement & Rule.NodeParentExtension & {
|
|
4
|
-
openingElement: JSXOpeningElement & {
|
|
5
|
-
name: JSXIdentifier;
|
|
6
|
-
};
|
|
7
|
-
};
|
|
8
|
-
export declare function isImportedJSXElement(node: Rule.Node): node is ImportedJSXElement;
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::d35b67b5e07f9d069f3b0cbdb4cf8e77>>
|
|
4
|
-
* @codegenId spacing
|
|
5
|
-
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen-token-maps
|
|
6
|
-
* @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::535518e7add48ef24f526d0904f70060>>
|
|
7
|
-
*/
|
|
8
|
-
export declare const positiveSpaceMap: {
|
|
9
|
-
'0px': 'space.0';
|
|
10
|
-
'2px': 'space.025';
|
|
11
|
-
'4px': 'space.050';
|
|
12
|
-
'6px': 'space.075';
|
|
13
|
-
'8px': 'space.100';
|
|
14
|
-
'12px': 'space.150';
|
|
15
|
-
'16px': 'space.200';
|
|
16
|
-
'20px': 'space.250';
|
|
17
|
-
'24px': 'space.300';
|
|
18
|
-
'32px': 'space.400';
|
|
19
|
-
'40px': 'space.500';
|
|
20
|
-
'48px': 'space.600';
|
|
21
|
-
'64px': 'space.800';
|
|
22
|
-
'80px': 'space.1000';
|
|
23
|
-
};
|
|
24
|
-
export type Space = '0px' | '2px' | '4px' | '6px' | '8px' | '12px' | '16px' | '20px' | '24px' | '32px' | '40px' | '48px' | '64px' | '80px';
|
|
25
|
-
export declare const negativeSpaceMap: {
|
|
26
|
-
'-2px': 'space.negative.025';
|
|
27
|
-
'-4px': 'space.negative.050';
|
|
28
|
-
'-6px': 'space.negative.075';
|
|
29
|
-
'-8px': 'space.negative.100';
|
|
30
|
-
'-12px': 'space.negative.150';
|
|
31
|
-
'-16px': 'space.negative.200';
|
|
32
|
-
'-20px': 'space.negative.250';
|
|
33
|
-
'-24px': 'space.negative.300';
|
|
34
|
-
'-32px': 'space.negative.400';
|
|
35
|
-
};
|
|
36
|
-
export type NegativeSpace = '-2px' | '-4px' | '-6px' | '-8px' | '-12px' | '-16px' | '-20px' | '-24px' | '-32px';
|
|
37
|
-
export declare const allSpaceMap: {
|
|
38
|
-
'0px': 'space.0';
|
|
39
|
-
'2px': 'space.025';
|
|
40
|
-
'4px': 'space.050';
|
|
41
|
-
'6px': 'space.075';
|
|
42
|
-
'8px': 'space.100';
|
|
43
|
-
'12px': 'space.150';
|
|
44
|
-
'16px': 'space.200';
|
|
45
|
-
'20px': 'space.250';
|
|
46
|
-
'24px': 'space.300';
|
|
47
|
-
'32px': 'space.400';
|
|
48
|
-
'40px': 'space.500';
|
|
49
|
-
'48px': 'space.600';
|
|
50
|
-
'64px': 'space.800';
|
|
51
|
-
'80px': 'space.1000';
|
|
52
|
-
'-2px': 'space.negative.025';
|
|
53
|
-
'-4px': 'space.negative.050';
|
|
54
|
-
'-6px': 'space.negative.075';
|
|
55
|
-
'-8px': 'space.negative.100';
|
|
56
|
-
'-12px': 'space.negative.150';
|
|
57
|
-
'-16px': 'space.negative.200';
|
|
58
|
-
'-20px': 'space.negative.250';
|
|
59
|
-
'-24px': 'space.negative.300';
|
|
60
|
-
'-32px': 'space.negative.400';
|
|
61
|
-
};
|
|
62
|
-
export type AllSpace = '0px' | '2px' | '4px' | '6px' | '8px' | '12px' | '16px' | '20px' | '24px' | '32px' | '40px' | '48px' | '64px' | '80px' | '-2px' | '-4px' | '-6px' | '-8px' | '-12px' | '-16px' | '-20px' | '-24px' | '-32px';
|
|
63
|
-
/**
|
|
64
|
-
* @codegenEnd
|
|
65
|
-
*/
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::095a43b3637f01bf6b70a07041528ef7>>
|
|
4
|
-
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
5
|
-
*/
|
|
6
|
-
import type { ESLint } from 'eslint';
|
|
7
|
-
import { rules } from './rules/index.codegen';
|
|
8
|
-
declare const meta: {
|
|
9
|
-
name: string;
|
|
10
|
-
version: string;
|
|
11
|
-
};
|
|
12
|
-
export declare const plugin: ESLint.Plugin;
|
|
13
|
-
declare const configs: ESLint.Plugin['configs'];
|
|
14
|
-
export { configs, meta, rules };
|
|
15
|
-
export default plugin;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::80fbc23d43d39baa6c31e19dfe79680c>>
|
|
4
|
-
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
5
|
-
*/
|
|
6
|
-
import type { Linter } from 'eslint';
|
|
7
|
-
declare const rules: Linter.FlatConfig;
|
|
8
|
-
export default rules;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::e7c368ed33d7a7522f63adf34dd26857>>
|
|
4
|
-
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
5
|
-
*/
|
|
6
|
-
import type { ESLint } from 'eslint';
|
|
7
|
-
declare const rules: ESLint.ConfigData;
|
|
8
|
-
export default rules;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::aeb24552f4292e3b6cdfe02b769d3e8d>>
|
|
4
|
-
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
5
|
-
*/
|
|
6
|
-
import type { Linter } from 'eslint';
|
|
7
|
-
declare const rules: Linter.FlatConfig;
|
|
8
|
-
export default rules;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::6253104ce58f3dc6759e4088b85171c3>>
|
|
4
|
-
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen
|
|
5
|
-
*/
|
|
6
|
-
import type { ESLint } from 'eslint';
|
|
7
|
-
declare const rules: ESLint.ConfigData;
|
|
8
|
-
export default rules;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import type { ImportSource } from '@atlaskit/eslint-utils/is-supported-import';
|
|
2
|
-
export type RuleConfig = {
|
|
3
|
-
cssFunctions: string[];
|
|
4
|
-
stylesPlacement: 'top' | 'bottom';
|
|
5
|
-
cssImportSource: ImportSource;
|
|
6
|
-
xcssImportSource: ImportSource;
|
|
7
|
-
excludeReactComponents: boolean;
|
|
8
|
-
autoFix: boolean;
|
|
9
|
-
shouldAlwaysCheckXcss: boolean;
|
|
10
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const borderWidthValueToToken: any;
|
package/dist/types-ts4.5/rules/ensure-design-token-usage/convert-hyphenated-name-to-camel-case.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const convertHyphenatedNameToCamelCase: (prop: string) => string;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const emToPixels: <T extends unknown>(value: T, fontSize: number | null | undefined) => number | T | null;
|
package/dist/types-ts4.5/rules/ensure-design-token-usage/find-token-name-by-property-value.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function findTokenNameByPropertyValue(propertyName: string, value: string): string | undefined;
|