@atlaskit/eslint-plugin-design-system 13.41.3 → 13.43.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +1 -1
  3. package/dist/cjs/presets/all-flat.codegen.js +2 -2
  4. package/dist/cjs/presets/all.codegen.js +2 -2
  5. package/dist/cjs/presets/recommended-flat.codegen.js +2 -1
  6. package/dist/cjs/presets/recommended.codegen.js +2 -1
  7. package/dist/cjs/rules/index.codegen.js +3 -3
  8. package/dist/cjs/rules/use-primitives/utils/is-valid-css-properties-to-transform.js +5 -4
  9. package/dist/cjs/rules/use-textfield-autocomplete/index.js +153 -0
  10. package/dist/es2019/presets/all-flat.codegen.js +2 -2
  11. package/dist/es2019/presets/all.codegen.js +2 -2
  12. package/dist/es2019/presets/recommended-flat.codegen.js +2 -1
  13. package/dist/es2019/presets/recommended.codegen.js +2 -1
  14. package/dist/es2019/rules/index.codegen.js +3 -3
  15. package/dist/es2019/rules/use-primitives/utils/is-valid-css-properties-to-transform.js +5 -4
  16. package/dist/es2019/rules/use-textfield-autocomplete/index.js +147 -0
  17. package/dist/esm/presets/all-flat.codegen.js +2 -2
  18. package/dist/esm/presets/all.codegen.js +2 -2
  19. package/dist/esm/presets/recommended-flat.codegen.js +2 -1
  20. package/dist/esm/presets/recommended.codegen.js +2 -1
  21. package/dist/esm/rules/index.codegen.js +3 -3
  22. package/dist/esm/rules/use-primitives/utils/is-valid-css-properties-to-transform.js +5 -4
  23. package/dist/esm/rules/use-textfield-autocomplete/index.js +147 -0
  24. package/dist/types/presets/all-flat.codegen.d.ts +1 -1
  25. package/dist/types/presets/all.codegen.d.ts +1 -1
  26. package/dist/types/presets/recommended-flat.codegen.d.ts +1 -1
  27. package/dist/types/presets/recommended.codegen.d.ts +1 -1
  28. package/dist/types/rules/ensure-design-token-usage/index.d.ts +1 -1
  29. package/dist/types/rules/ensure-design-token-usage/rule-meta.d.ts +1 -1
  30. package/dist/types/rules/ensure-design-token-usage/utils.d.ts +1 -1
  31. package/dist/types/rules/index.codegen.d.ts +1 -1
  32. package/dist/types/rules/no-deprecated-imports/handlers/icon.d.ts +1 -1
  33. package/dist/types/rules/use-heading/transformers/common.d.ts +2 -2
  34. package/dist/types/rules/use-latest-xcss-syntax-typography/linters/common.d.ts +1 -1
  35. package/dist/types/rules/use-latest-xcss-syntax-typography/linters/wrapped-token-value.d.ts +1 -1
  36. package/dist/types/rules/use-primitives/transformers/compiled-styled/index.d.ts +1 -1
  37. package/dist/types/rules/use-primitives/transformers/emotion-css/index.d.ts +1 -1
  38. package/dist/types/rules/use-primitives/utils/is-valid-css-properties-to-transform.d.ts +1 -1
  39. package/dist/types/rules/use-primitives/utils/validate-styles.d.ts +1 -1
  40. package/dist/types/rules/use-primitives-text/transformers/common.d.ts +1 -1
  41. package/dist/types/rules/use-primitives-text/transformers/unsafe-small-text.d.ts +1 -1
  42. package/dist/types/rules/use-textfield-autocomplete/index.d.ts +4 -0
  43. package/dist/types/rules/use-tokens-typography/config/index.d.ts +1 -1
  44. package/dist/types/rules/use-tokens-typography/transformers/banned-properties.d.ts +1 -1
  45. package/dist/types/rules/use-tokens-typography/transformers/font-family.d.ts +1 -1
  46. package/dist/types/rules/use-tokens-typography/transformers/font-weight.d.ts +1 -1
  47. package/dist/types/rules/use-tokens-typography/transformers/restricted-capitalisation.d.ts +1 -1
  48. package/dist/types/rules/use-tokens-typography/transformers/style-object.d.ts +1 -1
  49. package/dist/types/rules/use-tokens-typography/transformers/untokenized-properties.d.ts +1 -1
  50. package/dist/types/rules/utils/create-no-exported-rule/check-if-supported-export.d.ts +1 -1
  51. package/dist/types/rules/utils/get-first-supported-import.d.ts +1 -1
  52. package/dist/types-ts4.5/presets/all-flat.codegen.d.ts +1 -1
  53. package/dist/types-ts4.5/presets/all.codegen.d.ts +1 -1
  54. package/dist/types-ts4.5/presets/recommended-flat.codegen.d.ts +1 -1
  55. package/dist/types-ts4.5/presets/recommended.codegen.d.ts +1 -1
  56. package/dist/types-ts4.5/rules/ensure-design-token-usage/index.d.ts +1 -1
  57. package/dist/types-ts4.5/rules/ensure-design-token-usage/rule-meta.d.ts +1 -1
  58. package/dist/types-ts4.5/rules/ensure-design-token-usage/utils.d.ts +1 -1
  59. package/dist/types-ts4.5/rules/index.codegen.d.ts +1 -1
  60. package/dist/types-ts4.5/rules/no-deprecated-imports/handlers/icon.d.ts +1 -1
  61. package/dist/types-ts4.5/rules/use-heading/transformers/common.d.ts +2 -2
  62. package/dist/types-ts4.5/rules/use-latest-xcss-syntax-typography/linters/common.d.ts +1 -1
  63. package/dist/types-ts4.5/rules/use-latest-xcss-syntax-typography/linters/wrapped-token-value.d.ts +1 -1
  64. package/dist/types-ts4.5/rules/use-primitives/transformers/compiled-styled/index.d.ts +1 -1
  65. package/dist/types-ts4.5/rules/use-primitives/transformers/emotion-css/index.d.ts +1 -1
  66. package/dist/types-ts4.5/rules/use-primitives/utils/is-valid-css-properties-to-transform.d.ts +1 -1
  67. package/dist/types-ts4.5/rules/use-primitives/utils/validate-styles.d.ts +1 -1
  68. package/dist/types-ts4.5/rules/use-primitives-text/transformers/common.d.ts +1 -1
  69. package/dist/types-ts4.5/rules/use-primitives-text/transformers/unsafe-small-text.d.ts +1 -1
  70. package/dist/types-ts4.5/rules/use-textfield-autocomplete/index.d.ts +4 -0
  71. package/dist/types-ts4.5/rules/use-tokens-typography/config/index.d.ts +1 -1
  72. package/dist/types-ts4.5/rules/use-tokens-typography/transformers/banned-properties.d.ts +1 -1
  73. package/dist/types-ts4.5/rules/use-tokens-typography/transformers/font-family.d.ts +1 -1
  74. package/dist/types-ts4.5/rules/use-tokens-typography/transformers/font-weight.d.ts +1 -1
  75. package/dist/types-ts4.5/rules/use-tokens-typography/transformers/restricted-capitalisation.d.ts +1 -1
  76. package/dist/types-ts4.5/rules/use-tokens-typography/transformers/style-object.d.ts +1 -1
  77. package/dist/types-ts4.5/rules/use-tokens-typography/transformers/untokenized-properties.d.ts +1 -1
  78. package/dist/types-ts4.5/rules/utils/create-no-exported-rule/check-if-supported-export.d.ts +1 -1
  79. package/dist/types-ts4.5/rules/utils/get-first-supported-import.d.ts +1 -1
  80. package/package.json +4 -4
  81. package/dist/cjs/rules/no-legacy-icons/checks.js +0 -619
  82. package/dist/cjs/rules/no-legacy-icons/helpers.js +0 -900
  83. package/dist/cjs/rules/no-legacy-icons/index.js +0 -91
  84. package/dist/cjs/rules/no-legacy-icons/upcoming-icons.js +0 -7
  85. package/dist/es2019/rules/no-legacy-icons/checks.js +0 -520
  86. package/dist/es2019/rules/no-legacy-icons/helpers.js +0 -853
  87. package/dist/es2019/rules/no-legacy-icons/index.js +0 -87
  88. package/dist/es2019/rules/no-legacy-icons/upcoming-icons.js +0 -1
  89. package/dist/esm/rules/no-legacy-icons/checks.js +0 -613
  90. package/dist/esm/rules/no-legacy-icons/helpers.js +0 -891
  91. package/dist/esm/rules/no-legacy-icons/index.js +0 -85
  92. package/dist/esm/rules/no-legacy-icons/upcoming-icons.js +0 -1
  93. package/dist/types/rules/no-legacy-icons/checks.d.ts +0 -16
  94. package/dist/types/rules/no-legacy-icons/helpers.d.ts +0 -151
  95. package/dist/types/rules/no-legacy-icons/index.d.ts +0 -2
  96. package/dist/types/rules/no-legacy-icons/upcoming-icons.d.ts +0 -1
  97. package/dist/types-ts4.5/rules/no-legacy-icons/checks.d.ts +0 -16
  98. package/dist/types-ts4.5/rules/no-legacy-icons/helpers.d.ts +0 -156
  99. package/dist/types-ts4.5/rules/no-legacy-icons/index.d.ts +0 -2
  100. package/dist/types-ts4.5/rules/no-legacy-icons/upcoming-icons.d.ts +0 -1
@@ -1,5 +1,5 @@
1
1
  import type { Rule } from 'eslint';
2
- import { type MetaData } from './common';
2
+ import type { MetaData } from './common';
3
3
  export declare const WrappedTokenValue: {
4
4
  lint(node: Rule.Node, { context, config }: MetaData): void;
5
5
  _check(node: Rule.Node, { config }: MetaData): boolean;
@@ -1,6 +1,6 @@
1
1
  import type { Rule } from 'eslint';
2
2
  import { type JSXElement, type VariableDeclarator } from 'eslint-codemod-utils';
3
- import { type RuleConfig } from '../../config';
3
+ import type { RuleConfig } from '../../config';
4
4
  interface MetaData {
5
5
  context: Rule.RuleContext;
6
6
  config: RuleConfig;
@@ -1,6 +1,6 @@
1
1
  import type { Rule } from 'eslint';
2
2
  import { type JSXElement } from 'eslint-codemod-utils';
3
- import { type RuleConfig } from '../../config';
3
+ import type { RuleConfig } from '../../config';
4
4
  interface MetaData {
5
5
  context: Rule.RuleContext;
6
6
  config: RuleConfig;
@@ -1,4 +1,4 @@
1
1
  import type { Rule } from 'eslint';
2
2
  import { type SimpleCallExpression } from 'eslint-codemod-utils';
3
- import { type RuleConfig } from '../config';
3
+ import type { RuleConfig } from '../config';
4
4
  export declare const isValidCssPropertiesToTransform: (node: SimpleCallExpression & Rule.NodeParentExtension, config: RuleConfig) => boolean;
@@ -1,3 +1,3 @@
1
1
  import { type CallExpression } from 'eslint-codemod-utils';
2
- import { type RuleConfig } from '../config';
2
+ import type { RuleConfig } from '../config';
3
3
  export declare const validateStyles: (node: CallExpression, config: RuleConfig) => boolean;
@@ -1,6 +1,6 @@
1
1
  import type { Rule } from 'eslint';
2
2
  import { type JSXElement } from 'eslint-codemod-utils';
3
- import { type RuleConfig } from '../config';
3
+ import type { RuleConfig } from '../config';
4
4
  export type MetaData = {
5
5
  context: Rule.RuleContext;
6
6
  config: RuleConfig;
@@ -1,6 +1,6 @@
1
1
  import type { Rule } from 'eslint';
2
2
  import { type JSXElement } from 'eslint-codemod-utils';
3
- import { type MetaData } from './common';
3
+ import type { MetaData } from './common';
4
4
  export declare const UnsafeSmallText: {
5
5
  lint(node: Rule.Node, { context, config }: MetaData): void;
6
6
  _check(node: JSXElement, { config }: MetaData): boolean;
@@ -0,0 +1,4 @@
1
+ import type { Rule } from 'eslint';
2
+ export declare const ruleName: string;
3
+ declare const rule: Rule.RuleModule;
4
+ export default rule;
@@ -1,4 +1,4 @@
1
- import { type JSONSchema4 } from '@typescript-eslint/utils/dist/json-schema';
1
+ import type { JSONSchema4 } from '@typescript-eslint/utils/dist/json-schema';
2
2
  type Pattern = 'style-object' | 'font-weight' | 'font-family' | 'untokenized-properties' | 'banned-properties' | 'restricted-capitalisation';
3
3
  export type RuleConfig = {
4
4
  failSilently: boolean;
@@ -1,6 +1,6 @@
1
1
  import type { Rule } from 'eslint';
2
2
  import { type Property } from 'eslint-codemod-utils';
3
- import { type RuleConfig } from '../config';
3
+ import type { RuleConfig } from '../config';
4
4
  interface MetaData {
5
5
  context: Rule.RuleContext;
6
6
  config: RuleConfig;
@@ -1,6 +1,6 @@
1
1
  import type { Rule } from 'eslint';
2
2
  import { type Property } from 'eslint-codemod-utils';
3
- import { type RuleConfig } from '../config';
3
+ import type { RuleConfig } from '../config';
4
4
  interface MetaData {
5
5
  context: Rule.RuleContext;
6
6
  config: RuleConfig;
@@ -1,6 +1,6 @@
1
1
  import type { Rule } from 'eslint';
2
2
  import { type Property } from 'eslint-codemod-utils';
3
- import { type RuleConfig } from '../config';
3
+ import type { RuleConfig } from '../config';
4
4
  interface MetaData {
5
5
  context: Rule.RuleContext;
6
6
  config: RuleConfig;
@@ -1,6 +1,6 @@
1
1
  import type { Rule } from 'eslint';
2
2
  import { type Property } from 'eslint-codemod-utils';
3
- import { type RuleConfig } from '../config';
3
+ import type { RuleConfig } from '../config';
4
4
  interface MetaData {
5
5
  context: Rule.RuleContext;
6
6
  config: RuleConfig;
@@ -1,6 +1,6 @@
1
1
  import type { Rule } from 'eslint';
2
2
  import { type ImportDeclaration, type ObjectExpression, type Property, type StringableASTNode } from 'eslint-codemod-utils';
3
- import { type RuleConfig } from '../config';
3
+ import type { RuleConfig } from '../config';
4
4
  import { type TokenValueMap } from '../utils';
5
5
  interface MetaData {
6
6
  context: Rule.RuleContext;
@@ -1,6 +1,6 @@
1
1
  import type { Rule } from 'eslint';
2
2
  import { type Property } from 'eslint-codemod-utils';
3
- import { type RuleConfig } from '../config';
3
+ import type { RuleConfig } from '../config';
4
4
  interface MetaData {
5
5
  context: Rule.RuleContext;
6
6
  config: RuleConfig;
@@ -1,5 +1,5 @@
1
1
  import type { Rule, Scope as ScopeNamespace } from 'eslint';
2
- import { type ImportSource } from '@atlaskit/eslint-utils/is-supported-import';
2
+ import type { ImportSource } from '@atlaskit/eslint-utils/is-supported-import';
3
3
  type Node = Rule.Node;
4
4
  type RuleContext = Rule.RuleContext;
5
5
  type Scope = ScopeNamespace.Scope;
@@ -1,6 +1,6 @@
1
1
  import type { Rule } from 'eslint';
2
2
  import { type ImportDeclaration } from 'eslint-codemod-utils';
3
- import { type ImportSource } from '@atlaskit/eslint-utils/is-supported-import';
3
+ import type { ImportSource } from '@atlaskit/eslint-utils/is-supported-import';
4
4
  type RuleContext = Rule.RuleContext;
5
5
  /**
6
6
  * Get the first import declaration in the file that matches any of the packages
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": "13.41.3",
4
+ "version": "13.43.0",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",
7
7
  "publishConfig": {
@@ -39,9 +39,9 @@
39
39
  },
40
40
  "dependencies": {
41
41
  "@atlaskit/eslint-utils": "^2.0.0",
42
- "@atlaskit/icon": "^33.0.0",
43
- "@atlaskit/icon-lab": "^6.0.0",
44
- "@atlaskit/tokens": "^11.1.0",
42
+ "@atlaskit/icon": "^33.1.0",
43
+ "@atlaskit/icon-lab": "^6.2.0",
44
+ "@atlaskit/tokens": "^11.4.0",
45
45
  "@babel/runtime": "^7.0.0",
46
46
  "@typescript-eslint/utils": "^7.1.0",
47
47
  "ajv": "^6.12.6",