@atlaskit/eslint-plugin-platform 2.7.0 → 2.7.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 (158) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/dist/cjs/index.js +4 -9
  3. package/dist/cjs/rules/constants.js +1 -1
  4. package/dist/cjs/rules/ensure-critical-dependency-resolutions/index.js +7 -7
  5. package/dist/cjs/rules/ensure-native-and-af-exports-synced/index.js +3 -0
  6. package/dist/cjs/rules/ensure-no-private-dependencies/index.js +48 -66
  7. package/dist/cjs/rules/feature-gating/inline-usage/index.js +14 -3
  8. package/dist/cjs/rules/feature-gating/no-alias/index.js +2 -2
  9. package/dist/cjs/rules/feature-gating/no-module-level-eval/index.js +1 -1
  10. package/dist/cjs/rules/feature-gating/no-module-level-eval-nav4/index.js +1 -1
  11. package/dist/cjs/rules/feature-gating/no-preconditioning/index.js +4 -1
  12. package/dist/cjs/rules/feature-gating/prefer-fg/index.js +1 -1
  13. package/dist/cjs/rules/feature-gating/static-feature-flags/index.js +2 -2
  14. package/dist/cjs/rules/feature-gating/use-recommended-utils/index.js +1 -1
  15. package/dist/cjs/rules/no-invalid-storybook-decorator-usage/index.js +1 -1
  16. package/dist/cjs/rules/no-sparse-checkout/index.js +1 -1
  17. package/dist/cjs/rules/prefer-crypto-random-uuid/index.js +87 -0
  18. package/dist/cjs/rules/use-entrypoints-in-examples/index.js +1 -1
  19. package/dist/cjs/rules/util/context-compat.js +4 -2
  20. package/dist/es2019/index.js +4 -9
  21. package/dist/es2019/rules/constants.js +1 -1
  22. package/dist/es2019/rules/ensure-critical-dependency-resolutions/index.js +7 -7
  23. package/dist/es2019/rules/ensure-native-and-af-exports-synced/index.js +3 -0
  24. package/dist/es2019/rules/ensure-no-private-dependencies/index.js +10 -9
  25. package/dist/es2019/rules/feature-gating/inline-usage/index.js +14 -3
  26. package/dist/es2019/rules/feature-gating/no-alias/index.js +2 -2
  27. package/dist/es2019/rules/feature-gating/no-module-level-eval/index.js +1 -1
  28. package/dist/es2019/rules/feature-gating/no-module-level-eval-nav4/index.js +1 -1
  29. package/dist/es2019/rules/feature-gating/no-preconditioning/index.js +4 -1
  30. package/dist/es2019/rules/feature-gating/prefer-fg/index.js +1 -1
  31. package/dist/es2019/rules/feature-gating/static-feature-flags/index.js +2 -2
  32. package/dist/es2019/rules/feature-gating/use-recommended-utils/index.js +1 -1
  33. package/dist/es2019/rules/no-invalid-storybook-decorator-usage/index.js +1 -1
  34. package/dist/es2019/rules/no-sparse-checkout/index.js +1 -1
  35. package/dist/es2019/rules/prefer-crypto-random-uuid/index.js +81 -0
  36. package/dist/es2019/rules/use-entrypoints-in-examples/index.js +1 -1
  37. package/dist/es2019/rules/util/context-compat.js +4 -2
  38. package/dist/esm/index.js +4 -9
  39. package/dist/esm/rules/constants.js +1 -1
  40. package/dist/esm/rules/ensure-critical-dependency-resolutions/index.js +7 -7
  41. package/dist/esm/rules/ensure-native-and-af-exports-synced/index.js +3 -0
  42. package/dist/esm/rules/ensure-no-private-dependencies/index.js +48 -65
  43. package/dist/esm/rules/feature-gating/inline-usage/index.js +14 -3
  44. package/dist/esm/rules/feature-gating/no-alias/index.js +2 -2
  45. package/dist/esm/rules/feature-gating/no-module-level-eval/index.js +1 -1
  46. package/dist/esm/rules/feature-gating/no-module-level-eval-nav4/index.js +1 -1
  47. package/dist/esm/rules/feature-gating/no-preconditioning/index.js +4 -1
  48. package/dist/esm/rules/feature-gating/prefer-fg/index.js +1 -1
  49. package/dist/esm/rules/feature-gating/static-feature-flags/index.js +2 -2
  50. package/dist/esm/rules/feature-gating/use-recommended-utils/index.js +1 -1
  51. package/dist/esm/rules/no-invalid-storybook-decorator-usage/index.js +1 -1
  52. package/dist/esm/rules/no-sparse-checkout/index.js +1 -1
  53. package/dist/esm/rules/prefer-crypto-random-uuid/index.js +81 -0
  54. package/dist/esm/rules/use-entrypoints-in-examples/index.js +1 -1
  55. package/dist/esm/rules/util/context-compat.js +4 -2
  56. package/dist/types/index.d.ts +6 -20
  57. package/dist/types/rules/util/handle-ast-object.d.ts +1 -1
  58. package/dist/types-ts4.5/index.d.ts +6 -32
  59. package/dist/types-ts4.5/rules/util/handle-ast-object.d.ts +1 -1
  60. package/package.json +2 -5
  61. package/afm-cc/tsconfig.json +0 -24
  62. package/afm-jira/tsconfig.json +0 -24
  63. package/build/tsconfig.json +0 -17
  64. package/dist/cjs/rules/ensure-feature-flag-prefix/index.js +0 -75
  65. package/dist/cjs/rules/ensure-valid-platform-yarn-protocol-usage/index.js +0 -79
  66. package/dist/es2019/rules/ensure-feature-flag-prefix/index.js +0 -65
  67. package/dist/es2019/rules/ensure-valid-platform-yarn-protocol-usage/index.js +0 -62
  68. package/dist/esm/rules/ensure-feature-flag-prefix/index.js +0 -69
  69. package/dist/esm/rules/ensure-valid-platform-yarn-protocol-usage/index.js +0 -75
  70. package/dist/types/rules/ensure-feature-flag-prefix/index.d.ts +0 -3
  71. package/dist/types/rules/ensure-valid-platform-yarn-protocol-usage/index.d.ts +0 -3
  72. package/src/__tests__/utils/_tester.tsx +0 -26
  73. package/src/index.tsx +0 -254
  74. package/src/rules/compiled/README.md +0 -3
  75. package/src/rules/compiled/expand-background-shorthand/README.md +0 -23
  76. package/src/rules/compiled/expand-background-shorthand/__tests__/rule.test.ts +0 -160
  77. package/src/rules/compiled/expand-background-shorthand/index.tsx +0 -43
  78. package/src/rules/compiled/expand-border-shorthand/README.md +0 -51
  79. package/src/rules/compiled/expand-border-shorthand/__tests__/rule.test.ts +0 -211
  80. package/src/rules/compiled/expand-border-shorthand/index.ts +0 -103
  81. package/src/rules/compiled/expand-spacing-shorthand/README.md +0 -38
  82. package/src/rules/compiled/expand-spacing-shorthand/__tests__/rule.test.ts +0 -448
  83. package/src/rules/compiled/expand-spacing-shorthand/index.ts +0 -240
  84. package/src/rules/constants.tsx +0 -20
  85. package/src/rules/ensure-atlassian-team/__tests__/unit/rule.test.ts +0 -24
  86. package/src/rules/ensure-atlassian-team/index.ts +0 -51
  87. package/src/rules/ensure-critical-dependency-resolutions/__test__/unit/rule.test.tsx +0 -200
  88. package/src/rules/ensure-critical-dependency-resolutions/index.tsx +0 -172
  89. package/src/rules/ensure-feature-flag-prefix/__tests__/unit/rule.test.tsx +0 -65
  90. package/src/rules/ensure-feature-flag-prefix/index.tsx +0 -81
  91. package/src/rules/ensure-feature-flag-registration/__tests__/unit/rule.test.tsx +0 -115
  92. package/src/rules/ensure-feature-flag-registration/index.tsx +0 -106
  93. package/src/rules/ensure-native-and-af-exports-synced/__tests__/unit/rule.test.tsx +0 -199
  94. package/src/rules/ensure-native-and-af-exports-synced/index.tsx +0 -188
  95. package/src/rules/ensure-no-private-dependencies/__tests__/unit/rule.test.ts +0 -212
  96. package/src/rules/ensure-no-private-dependencies/index.ts +0 -64
  97. package/src/rules/ensure-publish-valid/__tests__/unit/rule.test.ts +0 -39
  98. package/src/rules/ensure-publish-valid/index.ts +0 -81
  99. package/src/rules/ensure-test-runner-arguments/__tests__/unit/rule.test.tsx +0 -298
  100. package/src/rules/ensure-test-runner-arguments/index.tsx +0 -121
  101. package/src/rules/ensure-test-runner-nested-count/__tests__/unit/rule.test.tsx +0 -308
  102. package/src/rules/ensure-test-runner-nested-count/index.tsx +0 -82
  103. package/src/rules/ensure-valid-bin-values/__tests__/unit/rule.test.ts +0 -159
  104. package/src/rules/ensure-valid-bin-values/index.ts +0 -70
  105. package/src/rules/ensure-valid-platform-yarn-protocol-usage/__tests__/unit/rule.test.ts +0 -147
  106. package/src/rules/ensure-valid-platform-yarn-protocol-usage/index.ts +0 -67
  107. package/src/rules/feature-gating/README.md +0 -8
  108. package/src/rules/feature-gating/inline-usage/README.md +0 -53
  109. package/src/rules/feature-gating/inline-usage/__tests__/rule.test.tsx +0 -106
  110. package/src/rules/feature-gating/inline-usage/index.tsx +0 -135
  111. package/src/rules/feature-gating/no-alias/README.md +0 -29
  112. package/src/rules/feature-gating/no-alias/__tests__/rule.test.tsx +0 -76
  113. package/src/rules/feature-gating/no-alias/index.tsx +0 -80
  114. package/src/rules/feature-gating/no-module-level-eval/README.md +0 -53
  115. package/src/rules/feature-gating/no-module-level-eval/__tests__/test.tsx +0 -133
  116. package/src/rules/feature-gating/no-module-level-eval/index.tsx +0 -54
  117. package/src/rules/feature-gating/no-module-level-eval-nav4/README.md +0 -8
  118. package/src/rules/feature-gating/no-module-level-eval-nav4/__tests__/test.tsx +0 -130
  119. package/src/rules/feature-gating/no-module-level-eval-nav4/index.tsx +0 -73
  120. package/src/rules/feature-gating/no-preconditioning/README.md +0 -69
  121. package/src/rules/feature-gating/no-preconditioning/__tests__/rule.test.tsx +0 -164
  122. package/src/rules/feature-gating/no-preconditioning/index.tsx +0 -138
  123. package/src/rules/feature-gating/prefer-fg/README.md +0 -3
  124. package/src/rules/feature-gating/prefer-fg/__tests__/rule.test.tsx +0 -83
  125. package/src/rules/feature-gating/prefer-fg/index.tsx +0 -110
  126. package/src/rules/feature-gating/static-feature-flags/README.md +0 -3
  127. package/src/rules/feature-gating/static-feature-flags/__tests__/test.tsx +0 -135
  128. package/src/rules/feature-gating/static-feature-flags/index.tsx +0 -103
  129. package/src/rules/feature-gating/use-recommended-utils/README.md +0 -67
  130. package/src/rules/feature-gating/use-recommended-utils/__tests__/rule.test.tsx +0 -78
  131. package/src/rules/feature-gating/use-recommended-utils/index.tsx +0 -57
  132. package/src/rules/feature-gating/utils.tsx +0 -48
  133. package/src/rules/no-direct-document-usage/index.tsx +0 -111
  134. package/src/rules/no-duplicate-dependencies/__tests__/unit/rule.test.ts +0 -116
  135. package/src/rules/no-duplicate-dependencies/index.ts +0 -79
  136. package/src/rules/no-invalid-feature-flag-usage/__tests__/unit/rule.test.tsx +0 -69
  137. package/src/rules/no-invalid-feature-flag-usage/index.tsx +0 -128
  138. package/src/rules/no-invalid-storybook-decorator-usage/__tests__/unit/rule.test.tsx +0 -18
  139. package/src/rules/no-invalid-storybook-decorator-usage/index.tsx +0 -39
  140. package/src/rules/no-pre-post-installs/__tests__/unit/rule.test.ts +0 -41
  141. package/src/rules/no-pre-post-installs/index.ts +0 -35
  142. package/src/rules/no-set-immediate/index.tsx +0 -43
  143. package/src/rules/no-sparse-checkout/__tests__/unit/rule.test.tsx +0 -48
  144. package/src/rules/no-sparse-checkout/index.tsx +0 -54
  145. package/src/rules/use-entrypoints-in-examples/README.md +0 -27
  146. package/src/rules/use-entrypoints-in-examples/__tests__/rule.test.tsx +0 -34
  147. package/src/rules/use-entrypoints-in-examples/index.tsx +0 -43
  148. package/src/rules/util/__tests__/context-compat.test.ts +0 -122
  149. package/src/rules/util/compiled-utils.ts +0 -27
  150. package/src/rules/util/context-compat.ts +0 -41
  151. package/src/rules/util/file-exclusions.ts +0 -39
  152. package/src/rules/util/handle-ast-object.ts +0 -33
  153. package/src/rules/util/registration-utils.ts +0 -59
  154. package/tsconfig.app.json +0 -43
  155. package/tsconfig.dev.json +0 -40
  156. package/tsconfig.json +0 -23
  157. /package/dist/{types-ts4.5/rules/ensure-valid-platform-yarn-protocol-usage → types/rules/prefer-crypto-random-uuid}/index.d.ts +0 -0
  158. /package/dist/types-ts4.5/rules/{ensure-feature-flag-prefix → prefer-crypto-random-uuid}/index.d.ts +0 -0
@@ -1,7 +1,7 @@
1
1
  import _slicedToArray from "@babel/runtime/helpers/slicedToArray";
2
2
  import { isAPIimport } from '../utils';
3
- var FUNCTION_NAMES = new Set(['ff', 'fg', 'expVal', 'expValEquals', 'UNSAFE_noExposureExp']);
4
- var STATSIG_ONLY_FUNCTION_NAMES = new Set(['fg', 'expVal', 'expValEquals', 'UNSAFE_noExposureExp']);
3
+ var FUNCTION_NAMES = new Set(['checkGate', 'ff', 'fg', 'expVal', 'expValEquals', 'UNSAFE_noExposureExp']);
4
+ var STATSIG_ONLY_FUNCTION_NAMES = new Set(['checkGate', 'fg', 'expVal', 'expValEquals', 'UNSAFE_noExposureExp']);
5
5
  var _findDefinitionDeclaration = function findDefinitionDeclaration(node) {
6
6
  return node.type === 'VariableDeclaration' || node.type === 'FunctionDeclaration' ? node : _findDefinitionDeclaration(node.parent);
7
7
  };
@@ -30,6 +30,12 @@ var validateBinaryExpression = function validateBinaryExpression(node, context)
30
30
  }
31
31
  }
32
32
  };
33
+ var validateAwaitExpression = function validateAwaitExpression(node, context) {
34
+ if (node.argument.type === 'CallExpression') {
35
+ return validateCallExpression(node.argument, context);
36
+ }
37
+ return false;
38
+ };
33
39
  var validateReturnExpression = function validateReturnExpression(_ref, context) {
34
40
  var body = _ref.body;
35
41
  if (body.length !== 1) {
@@ -41,6 +47,8 @@ var validateReturnExpression = function validateReturnExpression(_ref, context)
41
47
  var argument = statement.argument;
42
48
  if (argument && argument.type === 'CallExpression') {
43
49
  validateCallExpression(argument, context);
50
+ } else if (argument && argument.type === 'AwaitExpression') {
51
+ validateAwaitExpression(argument, context);
44
52
  } else if (argument && argument.type === 'BinaryExpression') {
45
53
  validateBinaryExpression(argument, context);
46
54
  }
@@ -51,6 +59,9 @@ var validateFunctionBody = function validateFunctionBody(body, context) {
51
59
  case 'CallExpression':
52
60
  validateCallExpression(body, context);
53
61
  break;
62
+ case 'AwaitExpression':
63
+ validateAwaitExpression(body, context);
64
+ break;
54
65
  case 'BinaryExpression':
55
66
  validateBinaryExpression(body, context);
56
67
  break;
@@ -65,7 +76,7 @@ var rule = {
65
76
  type: 'problem',
66
77
  docs: {
67
78
  description: 'Ensure feature flags/gates and experiments are inlined so that they can be statically analyzable.',
68
- url: 'https://stash.atlassian.com/projects/ATLASSIAN/repos/atlassian-frontend-monorepo/browse/platform/packages/platform/eslint-plugin/src/rules/inline-usage/README.md'
79
+ url: 'https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master/platform/packages/platform/eslint-plugin/src/rules/inline-usage/README.md'
69
80
  },
70
81
  schema: [{
71
82
  enum: ['ssOnly']
@@ -5,7 +5,7 @@ var IMPORT_SOURCES = new Set([].concat(_toConsumableArray(FEATURE_API_IMPORT_SOU
5
5
  var rule = {
6
6
  meta: {
7
7
  docs: {
8
- url: 'https://stash.atlassian.com/projects/ATLASSIAN/repos/atlassian-frontend-monorepo/browse/platform/packages/platform/eslint-plugin/src/rules/no-alias/README.md',
8
+ url: 'https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master/platform/packages/platform/eslint-plugin/src/rules/no-alias/README.md',
9
9
  description: 'Disallow aliasing of feature flag utils to ensure feature flag usage is statically analyzable'
10
10
  },
11
11
  messages: {
@@ -22,7 +22,7 @@ var rule = {
22
22
  return;
23
23
  }
24
24
  (_node$specifiers = node.specifiers) === null || _node$specifiers === void 0 || _node$specifiers.forEach(function (specifier) {
25
- if (specifier.type === 'ImportSpecifier') {
25
+ if (specifier.type === 'ImportSpecifier' && 'name' in specifier.imported) {
26
26
  var imported = specifier.imported,
27
27
  local = specifier.local;
28
28
  if (imported.name !== local.name) {
@@ -18,7 +18,7 @@ var rule = {
18
18
  meta: {
19
19
  docs: {
20
20
  description: 'Disallow feature flag usage at module level',
21
- url: 'https://stash.atlassian.com/projects/ATLASSIAN/repos/atlassian-frontend-monorepo/browse/platform/packages/platform/eslint-plugin/src/rules/no-module-level-eval/README.md'
21
+ url: 'https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master/platform/packages/platform/eslint-plugin/src/rules/no-module-level-eval/README.md'
22
22
  },
23
23
  messages: {
24
24
  noModuleLevelEval: 'Do not evaluate feature flags in the module level, it will always resolve to false when server side rendered or when flags are loaded async.'
@@ -29,7 +29,7 @@ var rule = {
29
29
  meta: {
30
30
  docs: {
31
31
  description: 'Disallow getWillShowNav4 or isVisualRefreshEnabled usage at module level',
32
- url: 'https://stash.atlassian.com/projects/ATLASSIAN/repos/atlassian-frontend-monorepo/browse/platform/packages/platform/eslint-plugin/src/rules/no-module-level-eval-nav4/README.md'
32
+ url: 'https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master/platform/packages/platform/eslint-plugin/src/rules/no-module-level-eval-nav4/README.md'
33
33
  },
34
34
  messages: {
35
35
  noModuleLevelEval: 'Do not evaluate getWillShowNav4 or isVisualRefreshEnabled at module level. This causes complications with SSR. If feature flagging components in `jira` use `componentWithCondition` from `@atlassian/jira-feature-flagging-utils`.'
@@ -10,6 +10,9 @@ var _getGateType = function getGateType(node, context) {
10
10
  if (type === 'BinaryExpression') {
11
11
  return _getGateType(node.left, context) || _getGateType(node.right, context);
12
12
  }
13
+ if (type === 'AwaitExpression') {
14
+ return _getGateType(node.argument, context);
15
+ }
13
16
  if (node.type === 'CallExpression') {
14
17
  var callee = node.callee;
15
18
  var isFeatureGate = type === 'CallExpression' && callee.type === 'Identifier' && (
@@ -46,7 +49,7 @@ var rule = {
46
49
  meta: {
47
50
  docs: {
48
51
  description: 'Inform on how to use gates and experiments in logical expressions',
49
- url: 'https://stash.atlassian.com/projects/ATLASSIAN/repos/atlassian-frontend-monorepo/browse/platform/packages/platform/eslint-plugin/src/rules/no-preconditioning/README.md'
52
+ url: 'https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master/platform/packages/platform/eslint-plugin/src/rules/no-preconditioning/README.md'
50
53
  },
51
54
  messages: {
52
55
  useConfig: 'Do not precondition gates or experiments with another gate. Configure this in Statsig instead to reduce unnecessary code, simplify cleanup and to ensure accurate exposures in Statsig.',
@@ -47,7 +47,7 @@ var validateUsage = function validateUsage(node, utilName, context, changeMap) {
47
47
  var rule = {
48
48
  meta: {
49
49
  docs: {
50
- url: 'https://stash.atlassian.com/projects/ATLASSIAN/repos/atlassian-frontend-monorepo/browse/platform/packages/platform/eslint-plugin/src/rules/prefer-fg/README.md',
50
+ url: 'https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master/platform/packages/platform/eslint-plugin/src/rules/prefer-fg/README.md',
51
51
  description: 'Keep usages of boolean feature flags consistent'
52
52
  },
53
53
  fixable: 'code',
@@ -4,13 +4,13 @@ import { getDef, isIdentifierImportedFrom } from '../utils';
4
4
  var IMPORT_SOURCES = new Set([].concat(_toConsumableArray(FEATURE_API_IMPORT_SOURCES), ['@atlassian/jira-feature-flagging-utils', '@atlassian/jira-feature-gate-component', '@atlassian/jira-feature-gates-test-mocks', '@atlassian/jira-feature-gates-storybook-mocks']));
5
5
 
6
6
  // Any functions not in this list should be skipped for performance.
7
- var FUNCTION_NAMES = new Set(['ff', 'fg', 'getFeatureFlagValue', 'getMultivariateFeatureFlag', 'componentWithFF', 'componentWithFG', 'passGate', 'withGate', 'expVal', 'expValEquals', 'UNSAFE_noExposureExp', 'mockExp', 'withExp', 'wasExperimentManuallyExposed']);
7
+ var FUNCTION_NAMES = new Set(['ff', 'fg', 'getFeatureFlagValue', 'componentWithFF', 'componentWithFG', 'passGate', 'withGate', 'expVal', 'expValEquals', 'UNSAFE_noExposureExp', 'mockExp', 'withExp', 'wasExperimentManuallyExposed']);
8
8
  var STATSIG_ONLY_FUNCTION_NAMES = new Set(['fg', 'componentWithFG', 'passGate', 'withGate', 'expVal', 'expValEquals', 'UNSAFE_noExposureExp', 'mockExp', 'withExp', 'wasExperimentManuallyExposed']);
9
9
  var rule = {
10
10
  meta: {
11
11
  type: 'problem',
12
12
  docs: {
13
- url: 'https://stash.atlassian.com/projects/ATLASSIAN/repos/atlassian-frontend-monorepo/browse/platform/packages/platform/eslint-plugin/src/rules/static-feature-flags/README.md',
13
+ url: 'https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master/platform/packages/platform/eslint-plugin/src/rules/static-feature-flags/README.md',
14
14
  description: 'Ensure feature flags or gates are static string literals'
15
15
  },
16
16
  fixable: 'code',
@@ -3,7 +3,7 @@ var BANNED_IMPORTS_SET = new Set(['@atlaskit/feature-gate-js-client']);
3
3
  var rule = {
4
4
  meta: {
5
5
  docs: {
6
- url: 'https://stash.atlassian.com/projects/ATLASSIAN/repos/atlassian-frontend-monorepo/browse/platform/packages/platform/eslint-plugin/src/rules/use-recommended-utils/README.md',
6
+ url: 'https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master/platform/packages/platform/eslint-plugin/src/rules/use-recommended-utils/README.md',
7
7
  description: 'Prefer using the feature flag abstraction over direct statsig library.'
8
8
  },
9
9
  messages: {
@@ -1,7 +1,7 @@
1
1
  import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  // eslint-disable-next-line import/no-extraneous-dependencies
3
3
 
4
- var STORYBOOK_DECORATOR_IDENTIFIER = 'withPlatformFeatureFlags';
4
+ var STORYBOOK_DECORATOR_IDENTIFIER = 'withPlatformFeatureGates';
5
5
  var rule = {
6
6
  meta: {
7
7
  hasSuggestions: false,
@@ -1,7 +1,7 @@
1
1
  // We will be removing sparse checkout from pipelines in CI completely due to the load it causes on BBC.
2
2
  // We will be incrementally removing sparse-checkout from the files below as it is probably unnecessasry.
3
3
  // If you must add an exception below, please go through the chopper process before doing so
4
- var sparseCheckoutExceptions = ['bitbucket-pipelines/pipelines/custom/run-issue-automat.ts', 'bitbucket-pipelines/pipelines/custom/marketplace/utils.ts', 'bitbucket-pipelines/pipelines/custom/confluence/utils/index.ts', 'bitbucket-pipelines/pipelines/custom/afm-tools/upload-afm-dependency-graph-cache.ts', 'bitbucket-pipelines/pipelines/custom/afm-tools/default-afm-tools.ts', 'bitbucket-pipelines/pipelines/custom/marketplace/utils.ts', 'bitbucket-pipelines/pipelines/custom/afm-git-hooks.ts', 'bitbucket-pipelines/pipelines/custom/update-codeowners-and-teams-gen.ts', 'bitbucket-pipelines/pipelines/custom/run-issue-automat.ts'];
4
+ var sparseCheckoutExceptions = ['pipeline-definitions/pipelines/custom/run-issue-automat.ts', 'pipeline-definitions/pipelines/custom/marketplace/utils.ts', 'pipeline-definitions/pipelines/custom/confluence/utils/index.ts', 'pipeline-definitions/pipelines/custom/afm-tools/upload-afm-dependency-graph-cache.ts', 'pipeline-definitions/pipelines/custom/afm-tools/default-afm-tools.ts', 'pipeline-definitions/pipelines/custom/marketplace/utils.ts', 'pipeline-definitions/pipelines/custom/afm-git-hooks.ts', 'pipeline-definitions/pipelines/custom/update-codeowners-and-teams-gen.ts', 'pipeline-definitions/pipelines/custom/run-issue-automat.ts'];
5
5
  var rule = {
6
6
  meta: {
7
7
  docs: {
@@ -0,0 +1,81 @@
1
+ // eslint-disable-next-line import/no-extraneous-dependencies
2
+
3
+ var rule = {
4
+ meta: {
5
+ type: 'problem',
6
+ // Problem type = can be error
7
+ docs: {
8
+ description: 'Prefer crypto.randomUUID() over uuid library. The uuid package causes Jest mocking issues.',
9
+ recommended: true
10
+ },
11
+ fixable: 'code',
12
+ // Enables --fix
13
+ messages: {
14
+ preferCryptoRandomUUID: 'Use crypto.randomUUID() instead of the uuid library. Run `eslint --fix` to auto-migrate.'
15
+ }
16
+ },
17
+ create: function create(context) {
18
+ var uuidImports = new Map(); // Track imported names
19
+
20
+ return {
21
+ ImportDeclaration: function ImportDeclaration(node) {
22
+ if (node.type !== 'ImportDeclaration') {
23
+ return;
24
+ }
25
+ var source = node.source.value;
26
+ if (typeof source === 'string' && (source === 'uuid' || /^uuid\/v[14]$/.test(source))) {
27
+ // Track imported name (e.g., uuid, v4, etc.)
28
+ var specifier = node.specifiers[0];
29
+ if (specifier) {
30
+ uuidImports.set(specifier.local.name, node);
31
+ }
32
+ context.report({
33
+ node: node,
34
+ messageId: 'preferCryptoRandomUUID',
35
+ fix: function fix(fixer) {
36
+ // Remove the import - usages will be fixed separately
37
+ return fixer.remove(node);
38
+ }
39
+ });
40
+ }
41
+ },
42
+ CallExpression: function CallExpression(node) {
43
+ var _node$arguments$;
44
+ if (node.type !== 'CallExpression') {
45
+ return;
46
+ }
47
+
48
+ // Handle direct uuid() or v4() calls
49
+ if (node.callee.type === 'Identifier') {
50
+ var calleeName = node.callee.name;
51
+ if (uuidImports.has(calleeName)) {
52
+ context.report({
53
+ node: node,
54
+ messageId: 'preferCryptoRandomUUID',
55
+ fix: function fix(fixer) {
56
+ // Replace uuid() with crypto.randomUUID()
57
+ return fixer.replaceText(node.callee, 'crypto.randomUUID');
58
+ }
59
+ });
60
+ }
61
+ }
62
+
63
+ // Handle require('uuid')
64
+ if (node.callee.type === 'Identifier' && node.callee.name === 'require' && ((_node$arguments$ = node.arguments[0]) === null || _node$arguments$ === void 0 ? void 0 : _node$arguments$.type) === 'Literal') {
65
+ var arg = node.arguments[0].value;
66
+ if (typeof arg === 'string' && (arg === 'uuid' || /^uuid\/v[14]$/.test(arg))) {
67
+ context.report({
68
+ node: node,
69
+ messageId: 'preferCryptoRandomUUID'
70
+ // require() needs manual refactoring
71
+ });
72
+ }
73
+ }
74
+ },
75
+ 'Program:exit': function ProgramExit() {
76
+ uuidImports.clear();
77
+ }
78
+ };
79
+ }
80
+ };
81
+ export default rule;
@@ -1,7 +1,7 @@
1
1
  var rule = {
2
2
  meta: {
3
3
  docs: {
4
- url: 'https://stash.atlassian.com/projects/ATLASSIAN/repos/atlassian-frontend-monorepo/browse/platform/packages/platform/eslint-plugin/src/rules/use-entrypoints-in-examples/README.md',
4
+ url: 'https://bitbucket.org/atlassian/atlassian-frontend-monorepo/src/master/platform/packages/platform/eslint-plugin/src/rules/use-entrypoints-in-examples/README.md',
5
5
  description: 'Encourage usage of package entrypoints in examples.'
6
6
  },
7
7
  messages: {
@@ -24,7 +24,7 @@ export var getSourceCode = function getSourceCode(context) {
24
24
  */
25
25
  export var getScope = function getScope(context, node) {
26
26
  var _getSourceCode$getSco, _getSourceCode, _getSourceCode$getSco2;
27
- return (_getSourceCode$getSco = (_getSourceCode = getSourceCode(context)) === null || _getSourceCode === void 0 || (_getSourceCode$getSco2 = _getSourceCode.getScope) === null || _getSourceCode$getSco2 === void 0 ? void 0 : _getSourceCode$getSco2.call(_getSourceCode, node)) !== null && _getSourceCode$getSco !== void 0 ? _getSourceCode$getSco : context.getScope();
27
+ return (_getSourceCode$getSco = (_getSourceCode = getSourceCode(context)) === null || _getSourceCode === void 0 || (_getSourceCode$getSco2 = _getSourceCode.getScope) === null || _getSourceCode$getSco2 === void 0 ? void 0 : _getSourceCode$getSco2.call(_getSourceCode, node)) !== null && _getSourceCode$getSco !== void 0 ? _getSourceCode$getSco : context.getScope(node);
28
28
  };
29
29
 
30
30
  /**
@@ -37,5 +37,7 @@ export var getScope = function getScope(context, node) {
37
37
  */
38
38
  export var getAncestors = function getAncestors(context, node) {
39
39
  var _getSourceCode$getAnc, _getSourceCode2, _getSourceCode2$getAn;
40
- return (_getSourceCode$getAnc = (_getSourceCode2 = getSourceCode(context)) === null || _getSourceCode2 === void 0 || (_getSourceCode2$getAn = _getSourceCode2.getAncestors) === null || _getSourceCode2$getAn === void 0 ? void 0 : _getSourceCode2$getAn.call(_getSourceCode2, node)) !== null && _getSourceCode$getAnc !== void 0 ? _getSourceCode$getAnc : context.getAncestors();
40
+ return (_getSourceCode$getAnc = (_getSourceCode2 = getSourceCode(context)) === null || _getSourceCode2 === void 0 || (_getSourceCode2$getAn = _getSourceCode2.getAncestors) === null || _getSourceCode2$getAn === void 0 ? void 0 : _getSourceCode2$getAn.call(_getSourceCode2, node)) !== null && _getSourceCode$getAnc !== void 0 ? _getSourceCode$getAnc :
41
+ // this is needed for jira's eslint update, as otherwise there is type errors only in jira typechecking
42
+ context.getAncestors(node);
41
43
  };
@@ -1,12 +1,10 @@
1
1
  import type { ESLint, Linter } from 'eslint';
2
2
  declare const rules: {
3
3
  'ensure-feature-flag-registration': import("eslint").Rule.RuleModule;
4
- 'ensure-feature-flag-prefix': import("eslint").Rule.RuleModule;
5
4
  'ensure-test-runner-arguments': import("eslint").Rule.RuleModule;
6
5
  'ensure-test-runner-nested-count': import("eslint").Rule.RuleModule;
7
6
  'ensure-atlassian-team': import("eslint").Rule.RuleModule;
8
7
  'ensure-critical-dependency-resolutions': import("eslint").Rule.RuleModule;
9
- 'ensure-valid-platform-yarn-protocol-usage': import("eslint").Rule.RuleModule;
10
8
  'ensure-valid-bin-values': import("eslint").Rule.RuleModule;
11
9
  'ensure-no-private-dependencies': import("eslint").Rule.RuleModule;
12
10
  'expand-border-shorthand': import("eslint").Rule.RuleModule;
@@ -30,6 +28,7 @@ declare const rules: {
30
28
  'no-sparse-checkout': import("eslint").Rule.RuleModule;
31
29
  'no-direct-document-usage': import("eslint").Rule.RuleModule;
32
30
  'no-set-immediate': import("eslint").Rule.RuleModule;
31
+ 'prefer-crypto-random-uuid': import("eslint").Rule.RuleModule;
33
32
  };
34
33
  declare const plugin: {
35
34
  meta: {
@@ -38,12 +37,10 @@ declare const plugin: {
38
37
  };
39
38
  rules: {
40
39
  'ensure-feature-flag-registration': import("eslint").Rule.RuleModule;
41
- 'ensure-feature-flag-prefix': import("eslint").Rule.RuleModule;
42
40
  'ensure-test-runner-arguments': import("eslint").Rule.RuleModule;
43
41
  'ensure-test-runner-nested-count': import("eslint").Rule.RuleModule;
44
42
  'ensure-atlassian-team': import("eslint").Rule.RuleModule;
45
43
  'ensure-critical-dependency-resolutions': import("eslint").Rule.RuleModule;
46
- 'ensure-valid-platform-yarn-protocol-usage': import("eslint").Rule.RuleModule;
47
44
  'ensure-valid-bin-values': import("eslint").Rule.RuleModule;
48
45
  'ensure-no-private-dependencies': import("eslint").Rule.RuleModule;
49
46
  'expand-border-shorthand': import("eslint").Rule.RuleModule;
@@ -67,6 +64,7 @@ declare const plugin: {
67
64
  'no-sparse-checkout': import("eslint").Rule.RuleModule;
68
65
  'no-direct-document-usage': import("eslint").Rule.RuleModule;
69
66
  'no-set-immediate': import("eslint").Rule.RuleModule;
67
+ 'prefer-crypto-random-uuid': import("eslint").Rule.RuleModule;
70
68
  };
71
69
  configs: {
72
70
  recommended: {
@@ -79,9 +77,6 @@ declare const plugin: {
79
77
  '@atlaskit/platform/prefer-fg': "error";
80
78
  '@atlaskit/platform/no-alias': "error";
81
79
  '@atlaskit/platform/ensure-feature-flag-registration': "error";
82
- '@atlaskit/platform/ensure-feature-flag-prefix': ["warn", {
83
- allowedPrefixes: string[];
84
- }];
85
80
  '@atlaskit/platform/ensure-test-runner-arguments': "error";
86
81
  '@atlaskit/platform/ensure-test-runner-nested-count': "warn";
87
82
  '@atlaskit/platform/no-invalid-feature-flag-usage': "error";
@@ -113,9 +108,6 @@ declare const plugin: {
113
108
  '@atlaskit/platform/prefer-fg': "error";
114
109
  '@atlaskit/platform/no-alias': "error";
115
110
  '@atlaskit/platform/ensure-feature-flag-registration': "error";
116
- '@atlaskit/platform/ensure-feature-flag-prefix': ["warn", {
117
- allowedPrefixes: string[];
118
- }];
119
111
  '@atlaskit/platform/ensure-test-runner-arguments': "error";
120
112
  '@atlaskit/platform/ensure-test-runner-nested-count': "warn";
121
113
  '@atlaskit/platform/no-invalid-feature-flag-usage': "error";
@@ -181,8 +173,8 @@ declare const plugin: {
181
173
  };
182
174
  };
183
175
  processors: {
184
- 'package-json-processor': Linter.Processor<string | Linter.ProcessorFile>;
185
- 'package-json-processor-for-flat-config': Linter.Processor<string | Linter.ProcessorFile>;
176
+ 'package-json-processor': Linter.Processor;
177
+ 'package-json-processor-for-flat-config': Linter.Processor;
186
178
  };
187
179
  };
188
180
  declare const configs: {
@@ -196,9 +188,6 @@ declare const configs: {
196
188
  '@atlaskit/platform/prefer-fg': "error";
197
189
  '@atlaskit/platform/no-alias': "error";
198
190
  '@atlaskit/platform/ensure-feature-flag-registration': "error";
199
- '@atlaskit/platform/ensure-feature-flag-prefix': ["warn", {
200
- allowedPrefixes: string[];
201
- }];
202
191
  '@atlaskit/platform/ensure-test-runner-arguments': "error";
203
192
  '@atlaskit/platform/ensure-test-runner-nested-count': "warn";
204
193
  '@atlaskit/platform/no-invalid-feature-flag-usage': "error";
@@ -230,9 +219,6 @@ declare const configs: {
230
219
  '@atlaskit/platform/prefer-fg': "error";
231
220
  '@atlaskit/platform/no-alias': "error";
232
221
  '@atlaskit/platform/ensure-feature-flag-registration': "error";
233
- '@atlaskit/platform/ensure-feature-flag-prefix': ["warn", {
234
- allowedPrefixes: string[];
235
- }];
236
222
  '@atlaskit/platform/ensure-test-runner-arguments': "error";
237
223
  '@atlaskit/platform/ensure-test-runner-nested-count': "warn";
238
224
  '@atlaskit/platform/no-invalid-feature-flag-usage': "error";
@@ -298,8 +284,8 @@ declare const configs: {
298
284
  };
299
285
  };
300
286
  declare const processors: {
301
- 'package-json-processor': Linter.Processor<string | Linter.ProcessorFile>;
302
- 'package-json-processor-for-flat-config': Linter.Processor<string | Linter.ProcessorFile>;
287
+ 'package-json-processor': Linter.Processor;
288
+ 'package-json-processor-for-flat-config': Linter.Processor;
303
289
  };
304
290
  export { configs, plugin, processors, rules };
305
291
  export default plugin;
@@ -1,3 +1,3 @@
1
1
  import type { ObjectExpression, SimpleLiteral, RegExpLiteral, BigIntLiteral } from 'estree';
2
- export declare const getObjectPropertyAsLiteral: (node: ObjectExpression, property: string) => SimpleLiteral['value'] | RegExpLiteral['value'] | BigIntLiteral['value'];
2
+ export declare const getObjectPropertyAsLiteral: (node: ObjectExpression, property: string) => SimpleLiteral["value"] | RegExpLiteral["value"] | BigIntLiteral["value"];
3
3
  export declare const getObjectPropertyAsObject: (node: ObjectExpression, property: string) => ObjectExpression | null;
@@ -1,12 +1,10 @@
1
1
  import type { ESLint, Linter } from 'eslint';
2
2
  declare const rules: {
3
3
  'ensure-feature-flag-registration': import("eslint").Rule.RuleModule;
4
- 'ensure-feature-flag-prefix': import("eslint").Rule.RuleModule;
5
4
  'ensure-test-runner-arguments': import("eslint").Rule.RuleModule;
6
5
  'ensure-test-runner-nested-count': import("eslint").Rule.RuleModule;
7
6
  'ensure-atlassian-team': import("eslint").Rule.RuleModule;
8
7
  'ensure-critical-dependency-resolutions': import("eslint").Rule.RuleModule;
9
- 'ensure-valid-platform-yarn-protocol-usage': import("eslint").Rule.RuleModule;
10
8
  'ensure-valid-bin-values': import("eslint").Rule.RuleModule;
11
9
  'ensure-no-private-dependencies': import("eslint").Rule.RuleModule;
12
10
  'expand-border-shorthand': import("eslint").Rule.RuleModule;
@@ -30,6 +28,7 @@ declare const rules: {
30
28
  'no-sparse-checkout': import("eslint").Rule.RuleModule;
31
29
  'no-direct-document-usage': import("eslint").Rule.RuleModule;
32
30
  'no-set-immediate': import("eslint").Rule.RuleModule;
31
+ 'prefer-crypto-random-uuid': import("eslint").Rule.RuleModule;
33
32
  };
34
33
  declare const plugin: {
35
34
  meta: {
@@ -38,12 +37,10 @@ declare const plugin: {
38
37
  };
39
38
  rules: {
40
39
  'ensure-feature-flag-registration': import("eslint").Rule.RuleModule;
41
- 'ensure-feature-flag-prefix': import("eslint").Rule.RuleModule;
42
40
  'ensure-test-runner-arguments': import("eslint").Rule.RuleModule;
43
41
  'ensure-test-runner-nested-count': import("eslint").Rule.RuleModule;
44
42
  'ensure-atlassian-team': import("eslint").Rule.RuleModule;
45
43
  'ensure-critical-dependency-resolutions': import("eslint").Rule.RuleModule;
46
- 'ensure-valid-platform-yarn-protocol-usage': import("eslint").Rule.RuleModule;
47
44
  'ensure-valid-bin-values': import("eslint").Rule.RuleModule;
48
45
  'ensure-no-private-dependencies': import("eslint").Rule.RuleModule;
49
46
  'expand-border-shorthand': import("eslint").Rule.RuleModule;
@@ -67,6 +64,7 @@ declare const plugin: {
67
64
  'no-sparse-checkout': import("eslint").Rule.RuleModule;
68
65
  'no-direct-document-usage': import("eslint").Rule.RuleModule;
69
66
  'no-set-immediate': import("eslint").Rule.RuleModule;
67
+ 'prefer-crypto-random-uuid': import("eslint").Rule.RuleModule;
70
68
  };
71
69
  configs: {
72
70
  recommended: {
@@ -79,12 +77,6 @@ declare const plugin: {
79
77
  '@atlaskit/platform/prefer-fg': "error";
80
78
  '@atlaskit/platform/no-alias': "error";
81
79
  '@atlaskit/platform/ensure-feature-flag-registration': "error";
82
- '@atlaskit/platform/ensure-feature-flag-prefix': [
83
- "warn",
84
- {
85
- allowedPrefixes: string[];
86
- }
87
- ];
88
80
  '@atlaskit/platform/ensure-test-runner-arguments': "error";
89
81
  '@atlaskit/platform/ensure-test-runner-nested-count': "warn";
90
82
  '@atlaskit/platform/no-invalid-feature-flag-usage': "error";
@@ -119,12 +111,6 @@ declare const plugin: {
119
111
  '@atlaskit/platform/prefer-fg': "error";
120
112
  '@atlaskit/platform/no-alias': "error";
121
113
  '@atlaskit/platform/ensure-feature-flag-registration': "error";
122
- '@atlaskit/platform/ensure-feature-flag-prefix': [
123
- "warn",
124
- {
125
- allowedPrefixes: string[];
126
- }
127
- ];
128
114
  '@atlaskit/platform/ensure-test-runner-arguments': "error";
129
115
  '@atlaskit/platform/ensure-test-runner-nested-count': "warn";
130
116
  '@atlaskit/platform/no-invalid-feature-flag-usage': "error";
@@ -199,8 +185,8 @@ declare const plugin: {
199
185
  };
200
186
  };
201
187
  processors: {
202
- 'package-json-processor': Linter.Processor<string | Linter.ProcessorFile>;
203
- 'package-json-processor-for-flat-config': Linter.Processor<string | Linter.ProcessorFile>;
188
+ 'package-json-processor': Linter.Processor;
189
+ 'package-json-processor-for-flat-config': Linter.Processor;
204
190
  };
205
191
  };
206
192
  declare const configs: {
@@ -214,12 +200,6 @@ declare const configs: {
214
200
  '@atlaskit/platform/prefer-fg': "error";
215
201
  '@atlaskit/platform/no-alias': "error";
216
202
  '@atlaskit/platform/ensure-feature-flag-registration': "error";
217
- '@atlaskit/platform/ensure-feature-flag-prefix': [
218
- "warn",
219
- {
220
- allowedPrefixes: string[];
221
- }
222
- ];
223
203
  '@atlaskit/platform/ensure-test-runner-arguments': "error";
224
204
  '@atlaskit/platform/ensure-test-runner-nested-count': "warn";
225
205
  '@atlaskit/platform/no-invalid-feature-flag-usage': "error";
@@ -254,12 +234,6 @@ declare const configs: {
254
234
  '@atlaskit/platform/prefer-fg': "error";
255
235
  '@atlaskit/platform/no-alias': "error";
256
236
  '@atlaskit/platform/ensure-feature-flag-registration': "error";
257
- '@atlaskit/platform/ensure-feature-flag-prefix': [
258
- "warn",
259
- {
260
- allowedPrefixes: string[];
261
- }
262
- ];
263
237
  '@atlaskit/platform/ensure-test-runner-arguments': "error";
264
238
  '@atlaskit/platform/ensure-test-runner-nested-count': "warn";
265
239
  '@atlaskit/platform/no-invalid-feature-flag-usage': "error";
@@ -334,8 +308,8 @@ declare const configs: {
334
308
  };
335
309
  };
336
310
  declare const processors: {
337
- 'package-json-processor': Linter.Processor<string | Linter.ProcessorFile>;
338
- 'package-json-processor-for-flat-config': Linter.Processor<string | Linter.ProcessorFile>;
311
+ 'package-json-processor': Linter.Processor;
312
+ 'package-json-processor-for-flat-config': Linter.Processor;
339
313
  };
340
314
  export { configs, plugin, processors, rules };
341
315
  export default plugin;
@@ -1,3 +1,3 @@
1
1
  import type { ObjectExpression, SimpleLiteral, RegExpLiteral, BigIntLiteral } from 'estree';
2
- export declare const getObjectPropertyAsLiteral: (node: ObjectExpression, property: string) => SimpleLiteral['value'] | RegExpLiteral['value'] | BigIntLiteral['value'];
2
+ export declare const getObjectPropertyAsLiteral: (node: ObjectExpression, property: string) => SimpleLiteral["value"] | RegExpLiteral["value"] | BigIntLiteral["value"];
3
3
  export declare const getObjectPropertyAsObject: (node: ObjectExpression, property: string) => ObjectExpression | null;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@atlaskit/eslint-plugin-platform",
3
3
  "description": "The essential plugin for use with Atlassian frontend platform tools",
4
- "version": "2.7.0",
4
+ "version": "2.7.2",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "atlassian": {
7
7
  "team": "Build Infra",
@@ -29,9 +29,6 @@
29
29
  "*.compiled.css"
30
30
  ],
31
31
  "atlaskit:src": "src/index.tsx",
32
- "af:exports": {
33
- ".": "./src/index.tsx"
34
- },
35
32
  "dependencies": {
36
33
  "@atlaskit/eslint-utils": "^2.0.0",
37
34
  "@babel/runtime": "^7.0.0",
@@ -46,7 +43,7 @@
46
43
  "@types/eslint": "^8.56.6",
47
44
  "eslint": "^8.57.0",
48
45
  "find-up": "^4 || ^5",
49
- "outdent": "^0.5.0"
46
+ "outdent": "^0.7.1"
50
47
  },
51
48
  "peerDependencies": {
52
49
  "find-up": "^4 || ^5"
@@ -1,24 +0,0 @@
1
- {
2
- "extends": "../../../../tsconfig.entry-points.confluence.json",
3
- "compilerOptions": {
4
- "target": "es5",
5
- "composite": true,
6
- "outDir": "../../../../../confluence/tsDist/@atlaskit__eslint-plugin-platform",
7
- "rootDir": "../"
8
- },
9
- "include": [
10
- "../src/**/*.ts",
11
- "../src/**/*.tsx"
12
- ],
13
- "exclude": [
14
- "../src/**/__tests__/*",
15
- "../__tests__/*",
16
- "../src/**/*.test.*",
17
- "../src/**/test.*"
18
- ],
19
- "references": [
20
- {
21
- "path": "../../../design-system/eslint-utils/afm-cc/tsconfig.json"
22
- }
23
- ]
24
- }
@@ -1,24 +0,0 @@
1
- {
2
- "extends": "../../../../tsconfig.entry-points.jira.json",
3
- "compilerOptions": {
4
- "target": "es5",
5
- "outDir": "../../../../../tsDist/@atlaskit__eslint-plugin-platform/app",
6
- "rootDir": "../",
7
- "composite": true
8
- },
9
- "include": [
10
- "../src/**/*.ts",
11
- "../src/**/*.tsx"
12
- ],
13
- "exclude": [
14
- "../src/**/__tests__/*",
15
- "../__tests__/*",
16
- "../src/**/*.test.*",
17
- "../src/**/test.*"
18
- ],
19
- "references": [
20
- {
21
- "path": "../../../design-system/eslint-utils/afm-jira/tsconfig.json"
22
- }
23
- ]
24
- }
@@ -1,17 +0,0 @@
1
- {
2
- "extends": "../tsconfig",
3
- "compilerOptions": {
4
- "target": "es5",
5
- "paths": {}
6
- },
7
- "include": [
8
- "../src/**/*.ts",
9
- "../src/**/*.tsx"
10
- ],
11
- "exclude": [
12
- "../src/**/__tests__/*",
13
- "../__tests__/*",
14
- "../src/**/*.test.*",
15
- "../src/**/test.*"
16
- ]
17
- }