@atlaskit/eslint-plugin-design-system 13.21.0 → 13.21.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/common/token-maps.partial.js +2 -2
  3. package/dist/cjs/index.codegen.js +1 -1
  4. package/dist/cjs/presets/all-flat.codegen.js +5 -3
  5. package/dist/cjs/presets/all.codegen.js +5 -3
  6. package/dist/cjs/presets/recommended-flat.codegen.js +5 -3
  7. package/dist/cjs/presets/recommended.codegen.js +5 -3
  8. package/dist/cjs/rules/index.codegen.js +1 -1
  9. package/dist/cjs/rules/utils/is-node.js +2 -2
  10. package/dist/es2019/common/token-maps.partial.js +2 -2
  11. package/dist/es2019/index.codegen.js +1 -1
  12. package/dist/es2019/presets/all-flat.codegen.js +4 -3
  13. package/dist/es2019/presets/all.codegen.js +4 -3
  14. package/dist/es2019/presets/recommended-flat.codegen.js +4 -3
  15. package/dist/es2019/presets/recommended.codegen.js +4 -3
  16. package/dist/es2019/rules/index.codegen.js +2 -1
  17. package/dist/es2019/rules/utils/is-node.js +2 -2
  18. package/dist/esm/common/token-maps.partial.js +2 -2
  19. package/dist/esm/index.codegen.js +1 -1
  20. package/dist/esm/presets/all-flat.codegen.js +4 -3
  21. package/dist/esm/presets/all.codegen.js +4 -3
  22. package/dist/esm/presets/recommended-flat.codegen.js +4 -3
  23. package/dist/esm/presets/recommended.codegen.js +4 -3
  24. package/dist/esm/rules/index.codegen.js +2 -1
  25. package/dist/esm/rules/utils/create-rule.js +2 -1
  26. package/dist/esm/rules/utils/is-node.js +2 -2
  27. package/dist/types/common/token-maps.partial.d.ts +51 -51
  28. package/dist/types/index.codegen.d.ts +3 -576
  29. package/dist/types/presets/all-flat.codegen.d.ts +8 -72
  30. package/dist/types/presets/all.codegen.d.ts +8 -72
  31. package/dist/types/presets/recommended-flat.codegen.d.ts +8 -52
  32. package/dist/types/presets/recommended.codegen.d.ts +8 -52
  33. package/dist/types/rules/ensure-design-token-usage-preview/index.d.ts +2 -1
  34. package/dist/types/rules/index.codegen.d.ts +7 -69
  35. package/dist/types/rules/use-tokens-typography/utils.d.ts +13 -81
  36. package/dist/types/rules/utils/create-rule.d.ts +3 -1
  37. package/dist/types-ts4.5/common/token-maps.partial.d.ts +51 -51
  38. package/dist/types-ts4.5/index.codegen.d.ts +3 -600
  39. package/dist/types-ts4.5/presets/all-flat.codegen.d.ts +8 -75
  40. package/dist/types-ts4.5/presets/all.codegen.d.ts +8 -75
  41. package/dist/types-ts4.5/presets/recommended-flat.codegen.d.ts +8 -55
  42. package/dist/types-ts4.5/presets/recommended.codegen.d.ts +8 -55
  43. package/dist/types-ts4.5/rules/ensure-design-token-usage-preview/index.d.ts +2 -1
  44. package/dist/types-ts4.5/rules/index.codegen.d.ts +7 -69
  45. package/dist/types-ts4.5/rules/use-tokens-typography/utils.d.ts +13 -81
  46. package/dist/types-ts4.5/rules/utils/create-rule.d.ts +3 -1
  47. package/package.json +5 -9
@@ -1,72 +1,8 @@
1
- declare const _default: {
2
- plugins: {};
3
- rules: {
4
- '@atlaskit/design-system/consistent-css-prop-usage': "error";
5
- '@atlaskit/design-system/enforce-inline-styles-in-select': "error";
6
- '@atlaskit/design-system/ensure-design-token-usage': "error";
7
- '@atlaskit/design-system/ensure-design-token-usage/preview': "warn";
8
- '@atlaskit/design-system/ensure-icon-color': "error";
9
- '@atlaskit/design-system/ensure-proper-xcss-usage': "error";
10
- '@atlaskit/design-system/icon-label': "warn";
11
- '@atlaskit/design-system/no-banned-imports': "error";
12
- '@atlaskit/design-system/no-boolean-autofocus-on-modal-dialog': "warn";
13
- '@atlaskit/design-system/no-css-tagged-template-expression': "error";
14
- '@atlaskit/design-system/no-custom-icons': "warn";
15
- '@atlaskit/design-system/no-dark-theme-vr-tests': "error";
16
- '@atlaskit/design-system/no-deprecated-apis': "error";
17
- '@atlaskit/design-system/no-deprecated-design-token-usage': "warn";
18
- '@atlaskit/design-system/no-deprecated-imports': "error";
19
- '@atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop': "error";
20
- '@atlaskit/design-system/no-emotion-primitives': "warn";
21
- '@atlaskit/design-system/no-html-anchor': "warn";
22
- '@atlaskit/design-system/no-html-button': "warn";
23
- '@atlaskit/design-system/no-html-checkbox': "warn";
24
- '@atlaskit/design-system/no-html-code': "warn";
25
- '@atlaskit/design-system/no-html-heading': "warn";
26
- '@atlaskit/design-system/no-html-image': "warn";
27
- '@atlaskit/design-system/no-html-radio': "warn";
28
- '@atlaskit/design-system/no-html-range': "warn";
29
- '@atlaskit/design-system/no-html-select': "warn";
30
- '@atlaskit/design-system/no-html-text-input': "warn";
31
- '@atlaskit/design-system/no-html-textarea': "warn";
32
- '@atlaskit/design-system/no-invalid-css-map': ["error", {
33
- allowedFunctionCalls: string[][];
34
- }];
35
- '@atlaskit/design-system/no-keyframes-tagged-template-expression': "error";
36
- '@atlaskit/design-system/no-legacy-icons': "warn";
37
- '@atlaskit/design-system/no-margin': "warn";
38
- '@atlaskit/design-system/no-nested-styles': "error";
39
- '@atlaskit/design-system/no-physical-properties': "error";
40
- '@atlaskit/design-system/no-separator-with-list-elements': "warn";
41
- '@atlaskit/design-system/no-styled-tagged-template-expression': "error";
42
- '@atlaskit/design-system/no-unsafe-design-token-usage': "error";
43
- '@atlaskit/design-system/no-unsafe-style-overrides': "warn";
44
- '@atlaskit/design-system/no-unsupported-drag-and-drop-libraries': "error";
45
- '@atlaskit/design-system/no-unused-css-map': "warn";
46
- '@atlaskit/design-system/no-utility-icons': "warn";
47
- '@atlaskit/design-system/prefer-primitives': "warn";
48
- '@atlaskit/design-system/use-button-group-label': "warn";
49
- '@atlaskit/design-system/use-correct-field': "warn";
50
- '@atlaskit/design-system/use-cx-function-in-xcss': "error";
51
- '@atlaskit/design-system/use-datetime-picker-calendar-button': "warn";
52
- '@atlaskit/design-system/use-drawer-label': "warn";
53
- '@atlaskit/design-system/use-heading': "warn";
54
- '@atlaskit/design-system/use-heading-level-in-spotlight-card': "warn";
55
- '@atlaskit/design-system/use-href-in-link-item': "warn";
56
- '@atlaskit/design-system/use-latest-xcss-syntax': "error";
57
- '@atlaskit/design-system/use-latest-xcss-syntax-typography': "warn";
58
- '@atlaskit/design-system/use-menu-section-title': "warn";
59
- '@atlaskit/design-system/use-modal-dialog-close-button': "warn";
60
- '@atlaskit/design-system/use-onboarding-spotlight-label': "warn";
61
- '@atlaskit/design-system/use-popup-label': "warn";
62
- '@atlaskit/design-system/use-primitives': "warn";
63
- '@atlaskit/design-system/use-primitives-text': "warn";
64
- '@atlaskit/design-system/use-should-render-to-parent': "warn";
65
- '@atlaskit/design-system/use-tag-group-label': "warn";
66
- '@atlaskit/design-system/use-tokens-shape': "error";
67
- '@atlaskit/design-system/use-tokens-space': "error";
68
- '@atlaskit/design-system/use-tokens-typography': "warn";
69
- '@atlaskit/design-system/use-visually-hidden': "error";
70
- };
71
- };
72
- export default _default;
1
+ /**
2
+ * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
+ * @codegen <<SignedSource::6210f09c70f4d44befb986dfd548ed3e>>
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,72 +1,8 @@
1
- declare const _default: {
2
- plugins: string[];
3
- rules: {
4
- '@atlaskit/design-system/consistent-css-prop-usage': "error";
5
- '@atlaskit/design-system/enforce-inline-styles-in-select': "error";
6
- '@atlaskit/design-system/ensure-design-token-usage': "error";
7
- '@atlaskit/design-system/ensure-design-token-usage/preview': "warn";
8
- '@atlaskit/design-system/ensure-icon-color': "error";
9
- '@atlaskit/design-system/ensure-proper-xcss-usage': "error";
10
- '@atlaskit/design-system/icon-label': "warn";
11
- '@atlaskit/design-system/no-banned-imports': "error";
12
- '@atlaskit/design-system/no-boolean-autofocus-on-modal-dialog': "warn";
13
- '@atlaskit/design-system/no-css-tagged-template-expression': "error";
14
- '@atlaskit/design-system/no-custom-icons': "warn";
15
- '@atlaskit/design-system/no-dark-theme-vr-tests': "error";
16
- '@atlaskit/design-system/no-deprecated-apis': "error";
17
- '@atlaskit/design-system/no-deprecated-design-token-usage': "warn";
18
- '@atlaskit/design-system/no-deprecated-imports': "error";
19
- '@atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop': "error";
20
- '@atlaskit/design-system/no-emotion-primitives': "warn";
21
- '@atlaskit/design-system/no-html-anchor': "warn";
22
- '@atlaskit/design-system/no-html-button': "warn";
23
- '@atlaskit/design-system/no-html-checkbox': "warn";
24
- '@atlaskit/design-system/no-html-code': "warn";
25
- '@atlaskit/design-system/no-html-heading': "warn";
26
- '@atlaskit/design-system/no-html-image': "warn";
27
- '@atlaskit/design-system/no-html-radio': "warn";
28
- '@atlaskit/design-system/no-html-range': "warn";
29
- '@atlaskit/design-system/no-html-select': "warn";
30
- '@atlaskit/design-system/no-html-text-input': "warn";
31
- '@atlaskit/design-system/no-html-textarea': "warn";
32
- '@atlaskit/design-system/no-invalid-css-map': ["error", {
33
- allowedFunctionCalls: string[][];
34
- }];
35
- '@atlaskit/design-system/no-keyframes-tagged-template-expression': "error";
36
- '@atlaskit/design-system/no-legacy-icons': "warn";
37
- '@atlaskit/design-system/no-margin': "warn";
38
- '@atlaskit/design-system/no-nested-styles': "error";
39
- '@atlaskit/design-system/no-physical-properties': "error";
40
- '@atlaskit/design-system/no-separator-with-list-elements': "warn";
41
- '@atlaskit/design-system/no-styled-tagged-template-expression': "error";
42
- '@atlaskit/design-system/no-unsafe-design-token-usage': "error";
43
- '@atlaskit/design-system/no-unsafe-style-overrides': "warn";
44
- '@atlaskit/design-system/no-unsupported-drag-and-drop-libraries': "error";
45
- '@atlaskit/design-system/no-unused-css-map': "warn";
46
- '@atlaskit/design-system/no-utility-icons': "warn";
47
- '@atlaskit/design-system/prefer-primitives': "warn";
48
- '@atlaskit/design-system/use-button-group-label': "warn";
49
- '@atlaskit/design-system/use-correct-field': "warn";
50
- '@atlaskit/design-system/use-cx-function-in-xcss': "error";
51
- '@atlaskit/design-system/use-datetime-picker-calendar-button': "warn";
52
- '@atlaskit/design-system/use-drawer-label': "warn";
53
- '@atlaskit/design-system/use-heading': "warn";
54
- '@atlaskit/design-system/use-heading-level-in-spotlight-card': "warn";
55
- '@atlaskit/design-system/use-href-in-link-item': "warn";
56
- '@atlaskit/design-system/use-latest-xcss-syntax': "error";
57
- '@atlaskit/design-system/use-latest-xcss-syntax-typography': "warn";
58
- '@atlaskit/design-system/use-menu-section-title': "warn";
59
- '@atlaskit/design-system/use-modal-dialog-close-button': "warn";
60
- '@atlaskit/design-system/use-onboarding-spotlight-label': "warn";
61
- '@atlaskit/design-system/use-popup-label': "warn";
62
- '@atlaskit/design-system/use-primitives': "warn";
63
- '@atlaskit/design-system/use-primitives-text': "warn";
64
- '@atlaskit/design-system/use-should-render-to-parent': "warn";
65
- '@atlaskit/design-system/use-tag-group-label': "warn";
66
- '@atlaskit/design-system/use-tokens-shape': "error";
67
- '@atlaskit/design-system/use-tokens-space': "error";
68
- '@atlaskit/design-system/use-tokens-typography': "warn";
69
- '@atlaskit/design-system/use-visually-hidden': "error";
70
- };
71
- };
72
- export default _default;
1
+ /**
2
+ * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
+ * @codegen <<SignedSource::daf4a5893d65c7a1592f8bc6e51920c6>>
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,52 +1,8 @@
1
- declare const _default: {
2
- plugins: {};
3
- rules: {
4
- '@atlaskit/design-system/consistent-css-prop-usage': "error";
5
- '@atlaskit/design-system/ensure-design-token-usage': "error";
6
- '@atlaskit/design-system/icon-label': "warn";
7
- '@atlaskit/design-system/no-banned-imports': "error";
8
- '@atlaskit/design-system/no-boolean-autofocus-on-modal-dialog': "warn";
9
- '@atlaskit/design-system/no-deprecated-apis': "error";
10
- '@atlaskit/design-system/no-deprecated-design-token-usage': "warn";
11
- '@atlaskit/design-system/no-deprecated-imports': "error";
12
- '@atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop': "error";
13
- '@atlaskit/design-system/no-html-anchor': "warn";
14
- '@atlaskit/design-system/no-html-button': "warn";
15
- '@atlaskit/design-system/no-html-checkbox': "warn";
16
- '@atlaskit/design-system/no-html-code': "warn";
17
- '@atlaskit/design-system/no-html-heading': "warn";
18
- '@atlaskit/design-system/no-html-image': "warn";
19
- '@atlaskit/design-system/no-html-radio': "warn";
20
- '@atlaskit/design-system/no-html-range': "warn";
21
- '@atlaskit/design-system/no-html-select': "warn";
22
- '@atlaskit/design-system/no-html-text-input': "warn";
23
- '@atlaskit/design-system/no-html-textarea': "warn";
24
- '@atlaskit/design-system/no-invalid-css-map': ["error", {
25
- allowedFunctionCalls: string[][];
26
- }];
27
- '@atlaskit/design-system/no-nested-styles': "error";
28
- '@atlaskit/design-system/no-separator-with-list-elements': "warn";
29
- '@atlaskit/design-system/no-unsafe-design-token-usage': "error";
30
- '@atlaskit/design-system/no-unsafe-style-overrides': "warn";
31
- '@atlaskit/design-system/no-unsupported-drag-and-drop-libraries': "error";
32
- '@atlaskit/design-system/no-unused-css-map': "warn";
33
- '@atlaskit/design-system/no-utility-icons': "warn";
34
- '@atlaskit/design-system/use-button-group-label': "warn";
35
- '@atlaskit/design-system/use-correct-field': "warn";
36
- '@atlaskit/design-system/use-cx-function-in-xcss': "error";
37
- '@atlaskit/design-system/use-datetime-picker-calendar-button': "warn";
38
- '@atlaskit/design-system/use-drawer-label': "warn";
39
- '@atlaskit/design-system/use-heading-level-in-spotlight-card': "warn";
40
- '@atlaskit/design-system/use-href-in-link-item': "warn";
41
- '@atlaskit/design-system/use-latest-xcss-syntax': "error";
42
- '@atlaskit/design-system/use-latest-xcss-syntax-typography': "warn";
43
- '@atlaskit/design-system/use-menu-section-title': "warn";
44
- '@atlaskit/design-system/use-modal-dialog-close-button': "warn";
45
- '@atlaskit/design-system/use-onboarding-spotlight-label': "warn";
46
- '@atlaskit/design-system/use-popup-label': "warn";
47
- '@atlaskit/design-system/use-should-render-to-parent': "warn";
48
- '@atlaskit/design-system/use-tag-group-label': "warn";
49
- '@atlaskit/design-system/use-visually-hidden': "error";
50
- };
51
- };
52
- export default _default;
1
+ /**
2
+ * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
+ * @codegen <<SignedSource::3328b9c675a0d09876dcfbc5d29bc63f>>
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,52 +1,8 @@
1
- declare const _default: {
2
- plugins: string[];
3
- rules: {
4
- '@atlaskit/design-system/consistent-css-prop-usage': "error";
5
- '@atlaskit/design-system/ensure-design-token-usage': "error";
6
- '@atlaskit/design-system/icon-label': "warn";
7
- '@atlaskit/design-system/no-banned-imports': "error";
8
- '@atlaskit/design-system/no-boolean-autofocus-on-modal-dialog': "warn";
9
- '@atlaskit/design-system/no-deprecated-apis': "error";
10
- '@atlaskit/design-system/no-deprecated-design-token-usage': "warn";
11
- '@atlaskit/design-system/no-deprecated-imports': "error";
12
- '@atlaskit/design-system/no-direct-use-of-web-platform-drag-and-drop': "error";
13
- '@atlaskit/design-system/no-html-anchor': "warn";
14
- '@atlaskit/design-system/no-html-button': "warn";
15
- '@atlaskit/design-system/no-html-checkbox': "warn";
16
- '@atlaskit/design-system/no-html-code': "warn";
17
- '@atlaskit/design-system/no-html-heading': "warn";
18
- '@atlaskit/design-system/no-html-image': "warn";
19
- '@atlaskit/design-system/no-html-radio': "warn";
20
- '@atlaskit/design-system/no-html-range': "warn";
21
- '@atlaskit/design-system/no-html-select': "warn";
22
- '@atlaskit/design-system/no-html-text-input': "warn";
23
- '@atlaskit/design-system/no-html-textarea': "warn";
24
- '@atlaskit/design-system/no-invalid-css-map': ["error", {
25
- allowedFunctionCalls: string[][];
26
- }];
27
- '@atlaskit/design-system/no-nested-styles': "error";
28
- '@atlaskit/design-system/no-separator-with-list-elements': "warn";
29
- '@atlaskit/design-system/no-unsafe-design-token-usage': "error";
30
- '@atlaskit/design-system/no-unsafe-style-overrides': "warn";
31
- '@atlaskit/design-system/no-unsupported-drag-and-drop-libraries': "error";
32
- '@atlaskit/design-system/no-unused-css-map': "warn";
33
- '@atlaskit/design-system/no-utility-icons': "warn";
34
- '@atlaskit/design-system/use-button-group-label': "warn";
35
- '@atlaskit/design-system/use-correct-field': "warn";
36
- '@atlaskit/design-system/use-cx-function-in-xcss': "error";
37
- '@atlaskit/design-system/use-datetime-picker-calendar-button': "warn";
38
- '@atlaskit/design-system/use-drawer-label': "warn";
39
- '@atlaskit/design-system/use-heading-level-in-spotlight-card': "warn";
40
- '@atlaskit/design-system/use-href-in-link-item': "warn";
41
- '@atlaskit/design-system/use-latest-xcss-syntax': "error";
42
- '@atlaskit/design-system/use-latest-xcss-syntax-typography': "warn";
43
- '@atlaskit/design-system/use-menu-section-title': "warn";
44
- '@atlaskit/design-system/use-modal-dialog-close-button': "warn";
45
- '@atlaskit/design-system/use-onboarding-spotlight-label': "warn";
46
- '@atlaskit/design-system/use-popup-label': "warn";
47
- '@atlaskit/design-system/use-should-render-to-parent': "warn";
48
- '@atlaskit/design-system/use-tag-group-label': "warn";
49
- '@atlaskit/design-system/use-visually-hidden': "error";
50
- };
51
- };
52
- export default _default;
1
+ /**
2
+ * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
+ * @codegen <<SignedSource::b28f895280627b7a35f059f90783644a>>
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,2 +1,3 @@
1
- declare const rule: import("eslint").Rule.RuleModule;
1
+ import type { Rule } from 'eslint';
2
+ declare const rule: Rule.RuleModule;
2
3
  export default rule;
@@ -1,69 +1,7 @@
1
- export declare const rules: {
2
- 'consistent-css-prop-usage': import("eslint").Rule.RuleModule;
3
- 'enforce-inline-styles-in-select': import("eslint").Rule.RuleModule;
4
- 'ensure-design-token-usage': import("eslint").Rule.RuleModule;
5
- 'ensure-design-token-usage/preview': import("eslint").Rule.RuleModule;
6
- 'ensure-icon-color': import("eslint").Rule.RuleModule;
7
- 'ensure-proper-xcss-usage': import("eslint").Rule.RuleModule;
8
- 'icon-label': import("eslint").Rule.RuleModule;
9
- 'no-banned-imports': import("eslint").Rule.RuleModule;
10
- 'no-boolean-autofocus-on-modal-dialog': import("eslint").Rule.RuleModule;
11
- 'no-css-tagged-template-expression': import("eslint").Rule.RuleModule;
12
- 'no-custom-icons': import("eslint").Rule.RuleModule;
13
- 'no-dark-theme-vr-tests': import("eslint").Rule.RuleModule;
14
- 'no-deprecated-apis': import("eslint").Rule.RuleModule;
15
- 'no-deprecated-design-token-usage': import("eslint").Rule.RuleModule;
16
- 'no-deprecated-imports': import("eslint").Rule.RuleModule;
17
- 'no-direct-use-of-web-platform-drag-and-drop': import("eslint").Rule.RuleModule;
18
- 'no-emotion-primitives': import("eslint").Rule.RuleModule;
19
- 'no-empty-styled-expression': import("eslint").Rule.RuleModule;
20
- 'no-exported-css': import("eslint").Rule.RuleModule;
21
- 'no-exported-keyframes': import("eslint").Rule.RuleModule;
22
- 'no-html-anchor': import("eslint").Rule.RuleModule;
23
- 'no-html-button': import("eslint").Rule.RuleModule;
24
- 'no-html-checkbox': import("eslint").Rule.RuleModule;
25
- 'no-html-code': import("eslint").Rule.RuleModule;
26
- 'no-html-heading': import("eslint").Rule.RuleModule;
27
- 'no-html-image': import("eslint").Rule.RuleModule;
28
- 'no-html-radio': import("eslint").Rule.RuleModule;
29
- 'no-html-range': import("eslint").Rule.RuleModule;
30
- 'no-html-select': import("eslint").Rule.RuleModule;
31
- 'no-html-text-input': import("eslint").Rule.RuleModule;
32
- 'no-html-textarea': import("eslint").Rule.RuleModule;
33
- 'no-invalid-css-map': import("eslint").Rule.RuleModule;
34
- 'no-keyframes-tagged-template-expression': import("eslint").Rule.RuleModule;
35
- 'no-legacy-icons': import("eslint").Rule.RuleModule;
36
- 'no-margin': import("eslint").Rule.RuleModule;
37
- 'no-nested-styles': import("eslint").Rule.RuleModule;
38
- 'no-physical-properties': import("eslint").Rule.RuleModule;
39
- 'no-separator-with-list-elements': import("eslint").Rule.RuleModule;
40
- 'no-styled-tagged-template-expression': import("eslint").Rule.RuleModule;
41
- 'no-unsafe-design-token-usage': import("eslint").Rule.RuleModule;
42
- 'no-unsafe-style-overrides': import("eslint").Rule.RuleModule;
43
- 'no-unsupported-drag-and-drop-libraries': import("eslint").Rule.RuleModule;
44
- 'no-unused-css-map': import("eslint").Rule.RuleModule;
45
- 'no-utility-icons': import("eslint").Rule.RuleModule;
46
- 'prefer-primitives': import("eslint").Rule.RuleModule;
47
- 'use-button-group-label': import("eslint").Rule.RuleModule;
48
- 'use-correct-field': import("eslint").Rule.RuleModule;
49
- 'use-cx-function-in-xcss': import("eslint").Rule.RuleModule;
50
- 'use-datetime-picker-calendar-button': import("eslint").Rule.RuleModule;
51
- 'use-drawer-label': import("eslint").Rule.RuleModule;
52
- 'use-heading': import("eslint").Rule.RuleModule;
53
- 'use-heading-level-in-spotlight-card': import("eslint").Rule.RuleModule;
54
- 'use-href-in-link-item': import("eslint").Rule.RuleModule;
55
- 'use-latest-xcss-syntax': import("eslint").Rule.RuleModule;
56
- 'use-latest-xcss-syntax-typography': import("eslint").Rule.RuleModule;
57
- 'use-menu-section-title': import("eslint").Rule.RuleModule;
58
- 'use-modal-dialog-close-button': import("eslint").Rule.RuleModule;
59
- 'use-onboarding-spotlight-label': import("eslint").Rule.RuleModule;
60
- 'use-popup-label': import("eslint").Rule.RuleModule;
61
- 'use-primitives': import("eslint").Rule.RuleModule;
62
- 'use-primitives-text': import("eslint").Rule.RuleModule;
63
- 'use-should-render-to-parent': import("eslint").Rule.RuleModule;
64
- 'use-tag-group-label': import("eslint").Rule.RuleModule;
65
- 'use-tokens-shape': import("eslint").Rule.RuleModule;
66
- 'use-tokens-space': import("eslint").Rule.RuleModule;
67
- 'use-tokens-typography': import("eslint").Rule.RuleModule;
68
- 'use-visually-hidden': import("eslint").Rule.RuleModule;
69
- };
1
+ /**
2
+ * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
+ * @codegen <<SignedSource::4693db80b637ac078521dd6e0591f75b>>
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 +1,6 @@
1
1
  import type { Rule } from 'eslint';
2
2
  import { type CallExpression, type Directive, type EslintNode, type ImportDeclaration, type ModuleDeclaration, type Property, type Statement, type StringableASTNode } from 'eslint-codemod-utils';
3
+ import { typographyAdg3 as typographyTokens } from '@atlaskit/tokens/tokens-raw';
3
4
  export declare const typographyProperties: string[];
4
5
  export declare const isTypographyProperty: (propertyName: string) => boolean;
5
6
  export declare const isFontSize: (node: EslintNode) => node is CallExpression;
@@ -17,45 +18,19 @@ export type TokenValueMap = {
17
18
  };
18
19
  export declare const typographyValueToToken: TokenValueMap[];
19
20
  export declare function isValidTypographyToken(tokenName: string): {
20
- attributes: {
21
- group: string;
22
- state: string;
23
- introduced: string;
24
- description: string;
25
- };
26
21
  value: string;
27
22
  filePath: string;
28
23
  isSource: boolean;
29
- original: {
30
- attributes: {
31
- group: string;
32
- state: string;
33
- introduced: string;
34
- description: string;
35
- };
36
- value: string;
37
- };
38
- name: string;
39
- path: string[];
40
- cleanName: string;
41
- } | {
42
24
  attributes: {
43
25
  group: string;
44
26
  state: string;
45
27
  introduced: string;
46
28
  description: string;
29
+ suggest?: string[];
30
+ deprecated?: string;
47
31
  };
48
- value: string;
49
- filePath: string;
50
- isSource: boolean;
51
32
  original: {
52
- attributes: {
53
- group: string;
54
- state: string;
55
- introduced: string;
56
- description: string;
57
- };
58
- value: {
33
+ value: string | {
59
34
  fontWeight: string;
60
35
  fontSize: string;
61
36
  lineHeight: string;
@@ -63,6 +38,14 @@ export declare function isValidTypographyToken(tokenName: string): {
63
38
  fontStyle: string;
64
39
  letterSpacing: string;
65
40
  };
41
+ attributes: {
42
+ group: string;
43
+ state: string;
44
+ introduced: string;
45
+ description: string;
46
+ suggest?: string[];
47
+ deprecated?: string;
48
+ };
66
49
  };
67
50
  name: string;
68
51
  path: string[];
@@ -87,58 +70,7 @@ export type FontWeightMap = {
87
70
  bold: string;
88
71
  };
89
72
  export declare const defaultFontWeight: string;
90
- export declare const fontFamilyTokens: ({
91
- attributes: {
92
- group: string;
93
- state: string;
94
- introduced: string;
95
- description: string;
96
- };
97
- value: string;
98
- filePath: string;
99
- isSource: boolean;
100
- original: {
101
- attributes: {
102
- group: string;
103
- state: string;
104
- introduced: string;
105
- description: string;
106
- };
107
- value: string;
108
- };
109
- name: string;
110
- path: string[];
111
- cleanName: string;
112
- } | {
113
- attributes: {
114
- group: string;
115
- state: string;
116
- introduced: string;
117
- description: string;
118
- };
119
- value: string;
120
- filePath: string;
121
- isSource: boolean;
122
- original: {
123
- attributes: {
124
- group: string;
125
- state: string;
126
- introduced: string;
127
- description: string;
128
- };
129
- value: {
130
- fontWeight: string;
131
- fontSize: string;
132
- lineHeight: string;
133
- fontFamily: string;
134
- fontStyle: string;
135
- letterSpacing: string;
136
- };
137
- };
138
- name: string;
139
- path: string[];
140
- cleanName: string;
141
- })[];
73
+ export declare const fontFamilyTokens: typeof typographyTokens;
142
74
  export declare function findFontFamilyValueForToken(tokenName: string): string;
143
75
  export declare function findFontFamilyTokenForValue(value: string): "font.family.brand.heading" | "font.family.brand.body" | "font.family.body" | "font.family.code" | undefined;
144
76
  export declare function notUndefined<V>(value: V | undefined): value is V;
@@ -1,4 +1,6 @@
1
1
  import { ESLintUtils } from '@typescript-eslint/utils';
2
+ import type { Rule } from 'eslint';
3
+ import { type LintRule } from '@atlaskit/eslint-utils/create-rule';
2
4
  /**
3
5
  * We are moving to our own small abstraction to create a lint rule that we have the power
4
6
  * to change and mold to our own needs.
@@ -14,4 +16,4 @@ export declare const createRule: <Options extends readonly unknown[], MessageIds
14
16
  * there is a docs link to our ESLint plugin documentation page,
15
17
  * as well as improving type support.
16
18
  */
17
- export declare const createLintRule: (rule: import("@atlaskit/eslint-utils/create-rule").LintRule) => import("eslint").Rule.RuleModule;
19
+ export declare const createLintRule: (rule: LintRule) => Rule.RuleModule;
@@ -1,65 +1,65 @@
1
1
  /**
2
2
  * THIS SECTION WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::a9fbd091c8b53fd9515afc7cdd793c6b>>
3
+ * @codegen <<SignedSource::f302f98104caa39f6137b6e8690eb7a8>>
4
4
  * @codegenId spacing
5
5
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-design-system codegen-token-maps
6
- * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::55622b91aca9b3afac4bce440f222b71>>
6
+ * @codegenDependency ../../../tokens/src/artifacts/tokens-raw/atlassian-spacing.tsx <<SignedSource::07b9c29f8d9f95e43d59a7b7ad4ce7a2>>
7
7
  */
8
8
  export declare const positiveSpaceMap: {
9
- '0px': string;
10
- '2px': string;
11
- '4px': string;
12
- '6px': string;
13
- '8px': string;
14
- '12px': string;
15
- '16px': string;
16
- '20px': string;
17
- '24px': string;
18
- '32px': string;
19
- '40px': string;
20
- '48px': string;
21
- '64px': string;
22
- '80px': string;
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
23
  };
24
- export type Space = keyof typeof positiveSpaceMap;
24
+ export type Space = '0px' | '2px' | '4px' | '6px' | '8px' | '12px' | '16px' | '20px' | '24px' | '32px' | '40px' | '48px' | '64px' | '80px';
25
25
  export declare const negativeSpaceMap: {
26
- '-2px': string;
27
- '-4px': string;
28
- '-6px': string;
29
- '-8px': string;
30
- '-12px': string;
31
- '-16px': string;
32
- '-20px': string;
33
- '-24px': string;
34
- '-32px': string;
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
35
  };
36
- export type NegativeSpace = keyof typeof negativeSpaceMap;
36
+ export type NegativeSpace = '-2px' | '-4px' | '-6px' | '-8px' | '-12px' | '-16px' | '-20px' | '-24px' | '-32px';
37
37
  export declare const allSpaceMap: {
38
- '-2px': string;
39
- '-4px': string;
40
- '-6px': string;
41
- '-8px': string;
42
- '-12px': string;
43
- '-16px': string;
44
- '-20px': string;
45
- '-24px': string;
46
- '-32px': string;
47
- '0px': string;
48
- '2px': string;
49
- '4px': string;
50
- '6px': string;
51
- '8px': string;
52
- '12px': string;
53
- '16px': string;
54
- '20px': string;
55
- '24px': string;
56
- '32px': string;
57
- '40px': string;
58
- '48px': string;
59
- '64px': string;
60
- '80px': string;
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
61
  };
62
- export type AllSpace = keyof typeof allSpaceMap;
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
63
  /**
64
64
  * @codegenEnd
65
65
  */