@atlaskit/eslint-plugin-platform 2.9.0 → 2.9.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.
- package/CHANGELOG.md +17 -0
- package/dist/cjs/index.js +8 -2
- package/dist/cjs/rules/compiled/no-css-prop-in-object-spread/index.js +162 -0
- package/dist/cjs/rules/ensure-critical-dependency-resolutions/index.js +0 -1
- package/dist/cjs/rules/import/no-barrel-entry-imports/index.js +68 -16
- package/dist/cjs/rules/import/no-barrel-entry-jest-mock/index.js +42 -8
- package/dist/cjs/rules/import/shared/package-resolution.js +153 -8
- package/dist/cjs/rules/no-restricted-fedramp-imports/index.js +65 -0
- package/dist/cjs/rules/no-xcss-in-cx/index.js +221 -0
- package/dist/cjs/rules/visit-example-type-import-required/index.js +24 -14
- package/dist/es2019/index.js +8 -2
- package/dist/es2019/rules/compiled/no-css-prop-in-object-spread/index.js +136 -0
- package/dist/es2019/rules/ensure-critical-dependency-resolutions/index.js +0 -1
- package/dist/es2019/rules/import/no-barrel-entry-imports/index.js +66 -17
- package/dist/es2019/rules/import/no-barrel-entry-jest-mock/index.js +43 -9
- package/dist/es2019/rules/import/shared/package-resolution.js +119 -4
- package/dist/es2019/rules/no-restricted-fedramp-imports/index.js +47 -0
- package/dist/es2019/rules/no-xcss-in-cx/index.js +187 -0
- package/dist/es2019/rules/visit-example-type-import-required/index.js +24 -15
- package/dist/esm/index.js +8 -2
- package/dist/esm/rules/compiled/no-css-prop-in-object-spread/index.js +156 -0
- package/dist/esm/rules/ensure-critical-dependency-resolutions/index.js +0 -1
- package/dist/esm/rules/import/no-barrel-entry-imports/index.js +69 -17
- package/dist/esm/rules/import/no-barrel-entry-jest-mock/index.js +43 -9
- package/dist/esm/rules/import/shared/package-resolution.js +151 -8
- package/dist/esm/rules/no-restricted-fedramp-imports/index.js +59 -0
- package/dist/esm/rules/no-xcss-in-cx/index.js +216 -0
- package/dist/esm/rules/visit-example-type-import-required/index.js +24 -14
- package/dist/types/index.d.ts +278 -241
- package/dist/types/rules/compiled/no-css-prop-in-object-spread/index.d.ts +3 -0
- package/dist/types/rules/import/shared/package-resolution.d.ts +25 -0
- package/dist/types/rules/no-restricted-fedramp-imports/index.d.ts +3 -0
- package/dist/types/rules/no-xcss-in-cx/index.d.ts +31 -0
- package/dist/types-ts4.5/index.d.ts +222 -209
- package/dist/types-ts4.5/rules/compiled/no-css-prop-in-object-spread/index.d.ts +3 -0
- package/dist/types-ts4.5/rules/import/shared/package-resolution.d.ts +25 -0
- package/dist/types-ts4.5/rules/no-restricted-fedramp-imports/index.d.ts +3 -0
- package/dist/types-ts4.5/rules/no-xcss-in-cx/index.d.ts +31 -0
- package/package.json +1 -1
|
@@ -16,10 +16,21 @@ export interface ExportMatchResult {
|
|
|
16
16
|
*/
|
|
17
17
|
entryPointExportName?: string;
|
|
18
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* Check whether a subpath export key (e.g. `"./checkbox-select"`) is kebab-case.
|
|
21
|
+
*
|
|
22
|
+
* A key is considered kebab-case when the portion after the leading `"./"` prefix
|
|
23
|
+
* consists only of lowercase letters, digits, hyphens, dots, and forward-slash
|
|
24
|
+
* separators — i.e. no uppercase letters, underscores, or camelCase humps.
|
|
25
|
+
*/
|
|
26
|
+
export declare function isKebabCaseExportKey(key: string): boolean;
|
|
19
27
|
/**
|
|
20
28
|
* Find a matching export entry for a given source file path.
|
|
21
29
|
* Returns the export path (e.g., "./controllers/analytics") or null if not found.
|
|
22
30
|
*
|
|
31
|
+
* When multiple export paths resolve to the same source file **and** point to an
|
|
32
|
+
* entry-point file, kebab-case keys are preferred over other casing styles.
|
|
33
|
+
*
|
|
23
34
|
* When `fs` is provided, also checks entry-point wrapper files. If an export resolves
|
|
24
35
|
* to a file inside a recognized entry-points folder (entry-points, entrypoints, etc.),
|
|
25
36
|
* the wrapper is parsed to see if it re-exports from `sourceFilePath`.
|
|
@@ -34,6 +45,20 @@ export declare function findExportForSourceFile({ sourceFilePath, exportsMap, fs
|
|
|
34
45
|
fs?: FileSystem;
|
|
35
46
|
sourceExportName?: string;
|
|
36
47
|
}): ExportMatchResult | null;
|
|
48
|
+
/**
|
|
49
|
+
* When a symbol reaches the consumer through a barrel package that re-exports from
|
|
50
|
+
* `crossPackageName`, find a `package.json` export subpath of that barrel whose entry
|
|
51
|
+
* file directly re-exports the symbol from `crossPackageName` (named exports only).
|
|
52
|
+
*
|
|
53
|
+
* This enables rewriting imports to `@scope/barrel/subpath` instead of
|
|
54
|
+
* `@scope/cross-package/...` when the barrel exposes such a subpath (e.g. `@atlaskit/select/react-select`).
|
|
55
|
+
*/
|
|
56
|
+
export declare function findCrossPackageBridgeExportPath({ exportsMap, crossPackageName, exportedName, fs, }: {
|
|
57
|
+
exportsMap: Map<string, string>;
|
|
58
|
+
crossPackageName: string;
|
|
59
|
+
exportedName: string;
|
|
60
|
+
fs: FileSystem;
|
|
61
|
+
}): ExportMatchResult | null;
|
|
37
62
|
/**
|
|
38
63
|
* Extract the package name and subpath from an import specifier.
|
|
39
64
|
* Returns null if the import is not a scoped package import.
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Rule } from 'eslint';
|
|
2
|
+
/**
|
|
3
|
+
* Disallows passing xcss() results into cx() when used in an xcss prop.
|
|
4
|
+
*
|
|
5
|
+
* xcss() from @atlaskit/primitives and cx() from @atlaskit/css / @compiled/react
|
|
6
|
+
* are incompatible — xcss() produces an opaque StyleRule object, while cx()
|
|
7
|
+
* expects Compiled atomic class name strings. Mixing them causes runtime errors.
|
|
8
|
+
* xcss() results must never be passed to cx(), whether inline or pre-defined.
|
|
9
|
+
*
|
|
10
|
+
* ❌ Wrong — xcss() called inline inside cx():
|
|
11
|
+
* xcss={cx(xcss({ color: 'red' }), xcss({ fontWeight: 'bold' }))}
|
|
12
|
+
*
|
|
13
|
+
* ❌ Also wrong — xcss() results pre-defined but still passed into cx():
|
|
14
|
+
* const baseStyles = xcss({ color: 'red' });
|
|
15
|
+
* const boldStyles = xcss({ fontWeight: 'bold' });
|
|
16
|
+
* xcss={cx(baseStyles, boldStyles)}
|
|
17
|
+
*
|
|
18
|
+
* ✅ Correct — pass xcss() results directly to the xcss prop (no cx()):
|
|
19
|
+
* const baseStyles = xcss({ color: 'red' });
|
|
20
|
+
* xcss={baseStyles}
|
|
21
|
+
*
|
|
22
|
+
* ✅ Correct — use cssMap() + cx() (cssMap is compatible with cx()):
|
|
23
|
+
* const styles = cssMap({ base: { color: 'red' } });
|
|
24
|
+
* xcss={cx(styles.base, condition && styles.focused)}
|
|
25
|
+
*
|
|
26
|
+
* This rule is import-aware: it only flags xcss() calls (inline or via variable)
|
|
27
|
+
* imported from @atlaskit/primitives inside cx() calls imported from @atlaskit/css
|
|
28
|
+
* or @compiled/react that appear inside an xcss prop.
|
|
29
|
+
*/
|
|
30
|
+
declare const rule: Rule.RuleModule;
|
|
31
|
+
export default rule;
|
|
@@ -1,41 +1,44 @@
|
|
|
1
|
-
import type { ESLint, Linter } from 'eslint';
|
|
1
|
+
import type { ESLint, Linter, Rule } from 'eslint';
|
|
2
2
|
declare const rules: {
|
|
3
|
-
'ensure-feature-flag-registration':
|
|
4
|
-
'ensure-test-runner-arguments':
|
|
5
|
-
'ensure-test-runner-nested-count':
|
|
6
|
-
'ensure-atlassian-team':
|
|
7
|
-
'ensure-critical-dependency-resolutions':
|
|
8
|
-
'ensure-valid-bin-values':
|
|
9
|
-
'ensure-no-private-dependencies':
|
|
10
|
-
'expand-border-shorthand':
|
|
11
|
-
'expand-background-shorthand':
|
|
12
|
-
'expand-spacing-shorthand':
|
|
13
|
-
'no-
|
|
14
|
-
'no-
|
|
15
|
-
'no-
|
|
16
|
-
'no-
|
|
17
|
-
'
|
|
18
|
-
'
|
|
19
|
-
'no-module-level-eval
|
|
20
|
-
'
|
|
21
|
-
'
|
|
22
|
-
'
|
|
23
|
-
'
|
|
24
|
-
'
|
|
25
|
-
'
|
|
26
|
-
'use-
|
|
27
|
-
'
|
|
28
|
-
'
|
|
29
|
-
'no-
|
|
30
|
-
'no-
|
|
31
|
-
'
|
|
32
|
-
'
|
|
33
|
-
'no-
|
|
34
|
-
'no-
|
|
35
|
-
'no-
|
|
36
|
-
'no-
|
|
37
|
-
'
|
|
38
|
-
'
|
|
3
|
+
'ensure-feature-flag-registration': Rule.RuleModule;
|
|
4
|
+
'ensure-test-runner-arguments': Rule.RuleModule;
|
|
5
|
+
'ensure-test-runner-nested-count': Rule.RuleModule;
|
|
6
|
+
'ensure-atlassian-team': Rule.RuleModule;
|
|
7
|
+
'ensure-critical-dependency-resolutions': Rule.RuleModule;
|
|
8
|
+
'ensure-valid-bin-values': Rule.RuleModule;
|
|
9
|
+
'ensure-no-private-dependencies': Rule.RuleModule;
|
|
10
|
+
'expand-border-shorthand': Rule.RuleModule;
|
|
11
|
+
'expand-background-shorthand': Rule.RuleModule;
|
|
12
|
+
'expand-spacing-shorthand': Rule.RuleModule;
|
|
13
|
+
'no-css-prop-in-object-spread': Rule.RuleModule;
|
|
14
|
+
'no-duplicate-dependencies': Rule.RuleModule;
|
|
15
|
+
'no-invalid-feature-flag-usage': Rule.RuleModule;
|
|
16
|
+
'no-pre-post-install-scripts': Rule.RuleModule;
|
|
17
|
+
'no-invalid-storybook-decorator-usage': Rule.RuleModule;
|
|
18
|
+
'ensure-publish-valid': Rule.RuleModule;
|
|
19
|
+
'no-module-level-eval': Rule.RuleModule;
|
|
20
|
+
'no-module-level-eval-nav4': Rule.RuleModule;
|
|
21
|
+
'static-feature-flags': Rule.RuleModule;
|
|
22
|
+
'no-preconditioning': Rule.RuleModule;
|
|
23
|
+
'inline-usage': Rule.RuleModule;
|
|
24
|
+
'prefer-fg': Rule.RuleModule;
|
|
25
|
+
'no-alias': Rule.RuleModule;
|
|
26
|
+
'use-entrypoints-in-examples': Rule.RuleModule;
|
|
27
|
+
'use-recommended-utils': Rule.RuleModule;
|
|
28
|
+
'valid-gate-name': Rule.RuleModule;
|
|
29
|
+
'no-sparse-checkout': Rule.RuleModule;
|
|
30
|
+
'no-direct-document-usage': Rule.RuleModule;
|
|
31
|
+
'no-set-immediate': Rule.RuleModule;
|
|
32
|
+
'prefer-crypto-random-uuid': Rule.RuleModule;
|
|
33
|
+
'no-restricted-fedramp-imports': Rule.RuleModule;
|
|
34
|
+
'no-barrel-entry-imports': Rule.RuleModule;
|
|
35
|
+
'no-barrel-entry-jest-mock': Rule.RuleModule;
|
|
36
|
+
'no-jest-mock-barrel-files': Rule.RuleModule;
|
|
37
|
+
'no-relative-barrel-file-imports': Rule.RuleModule;
|
|
38
|
+
'no-conversation-assistant-barrel-imports': Rule.RuleModule;
|
|
39
|
+
'visit-example-type-import-required': Rule.RuleModule;
|
|
40
|
+
'no-xcss-in-cx': Rule.RuleModule;
|
|
41
|
+
'ensure-use-sync-external-store-server-snapshot': Rule.RuleModule;
|
|
39
42
|
};
|
|
40
43
|
declare const plugin: {
|
|
41
44
|
meta: {
|
|
@@ -43,69 +46,72 @@ declare const plugin: {
|
|
|
43
46
|
version: string;
|
|
44
47
|
};
|
|
45
48
|
rules: {
|
|
46
|
-
'ensure-feature-flag-registration':
|
|
47
|
-
'ensure-test-runner-arguments':
|
|
48
|
-
'ensure-test-runner-nested-count':
|
|
49
|
-
'ensure-atlassian-team':
|
|
50
|
-
'ensure-critical-dependency-resolutions':
|
|
51
|
-
'ensure-valid-bin-values':
|
|
52
|
-
'ensure-no-private-dependencies':
|
|
53
|
-
'expand-border-shorthand':
|
|
54
|
-
'expand-background-shorthand':
|
|
55
|
-
'expand-spacing-shorthand':
|
|
56
|
-
'no-
|
|
57
|
-
'no-
|
|
58
|
-
'no-
|
|
59
|
-
'no-
|
|
60
|
-
'
|
|
61
|
-
'
|
|
62
|
-
'no-module-level-eval
|
|
63
|
-
'
|
|
64
|
-
'
|
|
65
|
-
'
|
|
66
|
-
'
|
|
67
|
-
'
|
|
68
|
-
'
|
|
69
|
-
'use-
|
|
70
|
-
'
|
|
71
|
-
'
|
|
72
|
-
'no-
|
|
73
|
-
'no-
|
|
74
|
-
'
|
|
75
|
-
'
|
|
76
|
-
'no-
|
|
77
|
-
'no-
|
|
78
|
-
'no-
|
|
79
|
-
'no-
|
|
80
|
-
'
|
|
81
|
-
'
|
|
49
|
+
'ensure-feature-flag-registration': Rule.RuleModule;
|
|
50
|
+
'ensure-test-runner-arguments': Rule.RuleModule;
|
|
51
|
+
'ensure-test-runner-nested-count': Rule.RuleModule;
|
|
52
|
+
'ensure-atlassian-team': Rule.RuleModule;
|
|
53
|
+
'ensure-critical-dependency-resolutions': Rule.RuleModule;
|
|
54
|
+
'ensure-valid-bin-values': Rule.RuleModule;
|
|
55
|
+
'ensure-no-private-dependencies': Rule.RuleModule;
|
|
56
|
+
'expand-border-shorthand': Rule.RuleModule;
|
|
57
|
+
'expand-background-shorthand': Rule.RuleModule;
|
|
58
|
+
'expand-spacing-shorthand': Rule.RuleModule;
|
|
59
|
+
'no-css-prop-in-object-spread': Rule.RuleModule;
|
|
60
|
+
'no-duplicate-dependencies': Rule.RuleModule;
|
|
61
|
+
'no-invalid-feature-flag-usage': Rule.RuleModule;
|
|
62
|
+
'no-pre-post-install-scripts': Rule.RuleModule;
|
|
63
|
+
'no-invalid-storybook-decorator-usage': Rule.RuleModule;
|
|
64
|
+
'ensure-publish-valid': Rule.RuleModule;
|
|
65
|
+
'no-module-level-eval': Rule.RuleModule;
|
|
66
|
+
'no-module-level-eval-nav4': Rule.RuleModule;
|
|
67
|
+
'static-feature-flags': Rule.RuleModule;
|
|
68
|
+
'no-preconditioning': Rule.RuleModule;
|
|
69
|
+
'inline-usage': Rule.RuleModule;
|
|
70
|
+
'prefer-fg': Rule.RuleModule;
|
|
71
|
+
'no-alias': Rule.RuleModule;
|
|
72
|
+
'use-entrypoints-in-examples': Rule.RuleModule;
|
|
73
|
+
'use-recommended-utils': Rule.RuleModule;
|
|
74
|
+
'valid-gate-name': Rule.RuleModule;
|
|
75
|
+
'no-sparse-checkout': Rule.RuleModule;
|
|
76
|
+
'no-direct-document-usage': Rule.RuleModule;
|
|
77
|
+
'no-set-immediate': Rule.RuleModule;
|
|
78
|
+
'prefer-crypto-random-uuid': Rule.RuleModule;
|
|
79
|
+
'no-restricted-fedramp-imports': Rule.RuleModule;
|
|
80
|
+
'no-barrel-entry-imports': Rule.RuleModule;
|
|
81
|
+
'no-barrel-entry-jest-mock': Rule.RuleModule;
|
|
82
|
+
'no-jest-mock-barrel-files': Rule.RuleModule;
|
|
83
|
+
'no-relative-barrel-file-imports': Rule.RuleModule;
|
|
84
|
+
'no-conversation-assistant-barrel-imports': Rule.RuleModule;
|
|
85
|
+
'visit-example-type-import-required': Rule.RuleModule;
|
|
86
|
+
'ensure-use-sync-external-store-server-snapshot': Rule.RuleModule;
|
|
82
87
|
};
|
|
83
88
|
configs: {
|
|
84
89
|
recommended: {
|
|
85
90
|
plugins: string[];
|
|
86
91
|
rules: {
|
|
87
|
-
'@atlaskit/platform/no-module-level-eval':
|
|
88
|
-
'@atlaskit/platform/static-feature-flags':
|
|
89
|
-
'@atlaskit/platform/no-preconditioning':
|
|
90
|
-
'@atlaskit/platform/inline-usage':
|
|
91
|
-
'@atlaskit/platform/prefer-fg':
|
|
92
|
-
'@atlaskit/platform/no-alias':
|
|
93
|
-
'@atlaskit/platform/valid-gate-name':
|
|
94
|
-
'@atlaskit/platform/ensure-feature-flag-registration':
|
|
95
|
-
'@atlaskit/platform/ensure-test-runner-arguments':
|
|
96
|
-
'@atlaskit/platform/ensure-test-runner-nested-count':
|
|
97
|
-
'@atlaskit/platform/ensure-use-sync-external-store-server-snapshot':
|
|
98
|
-
'@atlaskit/platform/no-invalid-feature-flag-usage':
|
|
99
|
-
'@atlaskit/platform/no-invalid-storybook-decorator-usage':
|
|
100
|
-
'@atlaskit/platform/ensure-atlassian-team':
|
|
101
|
-
'@atlaskit/platform/no-module-level-eval-nav4':
|
|
102
|
-
'@atlaskit/platform/no-direct-document-usage':
|
|
103
|
-
'@atlaskit/platform/no-set-immediate':
|
|
104
|
-
'@atlaskit/platform/expand-border-shorthand':
|
|
105
|
-
'@atlaskit/platform/expand-background-shorthand':
|
|
106
|
-
'@atlaskit/platform/expand-spacing-shorthand':
|
|
92
|
+
'@atlaskit/platform/no-module-level-eval': 'error';
|
|
93
|
+
'@atlaskit/platform/static-feature-flags': 'error';
|
|
94
|
+
'@atlaskit/platform/no-preconditioning': 'error';
|
|
95
|
+
'@atlaskit/platform/inline-usage': 'error';
|
|
96
|
+
'@atlaskit/platform/prefer-fg': 'error';
|
|
97
|
+
'@atlaskit/platform/no-alias': 'error';
|
|
98
|
+
'@atlaskit/platform/valid-gate-name': 'error';
|
|
99
|
+
'@atlaskit/platform/ensure-feature-flag-registration': 'error';
|
|
100
|
+
'@atlaskit/platform/ensure-test-runner-arguments': 'error';
|
|
101
|
+
'@atlaskit/platform/ensure-test-runner-nested-count': 'warn';
|
|
102
|
+
'@atlaskit/platform/ensure-use-sync-external-store-server-snapshot': 'error';
|
|
103
|
+
'@atlaskit/platform/no-invalid-feature-flag-usage': 'error';
|
|
104
|
+
'@atlaskit/platform/no-invalid-storybook-decorator-usage': 'error';
|
|
105
|
+
'@atlaskit/platform/ensure-atlassian-team': 'error';
|
|
106
|
+
'@atlaskit/platform/no-module-level-eval-nav4': 'error';
|
|
107
|
+
'@atlaskit/platform/no-direct-document-usage': 'warn';
|
|
108
|
+
'@atlaskit/platform/no-set-immediate': 'error';
|
|
109
|
+
'@atlaskit/platform/expand-border-shorthand': 'error';
|
|
110
|
+
'@atlaskit/platform/expand-background-shorthand': 'error';
|
|
111
|
+
'@atlaskit/platform/expand-spacing-shorthand': 'error';
|
|
112
|
+
'@atlaskit/platform/no-css-prop-in-object-spread': 'error';
|
|
107
113
|
'@compiled/jsx-pragma': [
|
|
108
|
-
|
|
114
|
+
'error',
|
|
109
115
|
{
|
|
110
116
|
importSources: string[];
|
|
111
117
|
onlyRunIfImportingCompiled: boolean;
|
|
@@ -120,28 +126,29 @@ declare const plugin: {
|
|
|
120
126
|
'@compiled': ESLint.Plugin;
|
|
121
127
|
};
|
|
122
128
|
rules: {
|
|
123
|
-
'@atlaskit/platform/no-module-level-eval':
|
|
124
|
-
'@atlaskit/platform/static-feature-flags':
|
|
125
|
-
'@atlaskit/platform/no-preconditioning':
|
|
126
|
-
'@atlaskit/platform/inline-usage':
|
|
127
|
-
'@atlaskit/platform/prefer-fg':
|
|
128
|
-
'@atlaskit/platform/no-alias':
|
|
129
|
-
'@atlaskit/platform/valid-gate-name':
|
|
130
|
-
'@atlaskit/platform/ensure-feature-flag-registration':
|
|
131
|
-
'@atlaskit/platform/ensure-test-runner-arguments':
|
|
132
|
-
'@atlaskit/platform/ensure-test-runner-nested-count':
|
|
133
|
-
'@atlaskit/platform/ensure-use-sync-external-store-server-snapshot':
|
|
134
|
-
'@atlaskit/platform/no-invalid-feature-flag-usage':
|
|
135
|
-
'@atlaskit/platform/no-invalid-storybook-decorator-usage':
|
|
136
|
-
'@atlaskit/platform/ensure-atlassian-team':
|
|
137
|
-
'@atlaskit/platform/no-module-level-eval-nav4':
|
|
138
|
-
'@atlaskit/platform/no-direct-document-usage':
|
|
139
|
-
'@atlaskit/platform/no-set-immediate':
|
|
140
|
-
'@atlaskit/platform/expand-border-shorthand':
|
|
141
|
-
'@atlaskit/platform/expand-background-shorthand':
|
|
142
|
-
'@atlaskit/platform/expand-spacing-shorthand':
|
|
129
|
+
'@atlaskit/platform/no-module-level-eval': 'error';
|
|
130
|
+
'@atlaskit/platform/static-feature-flags': 'error';
|
|
131
|
+
'@atlaskit/platform/no-preconditioning': 'error';
|
|
132
|
+
'@atlaskit/platform/inline-usage': 'error';
|
|
133
|
+
'@atlaskit/platform/prefer-fg': 'error';
|
|
134
|
+
'@atlaskit/platform/no-alias': 'error';
|
|
135
|
+
'@atlaskit/platform/valid-gate-name': 'error';
|
|
136
|
+
'@atlaskit/platform/ensure-feature-flag-registration': 'error';
|
|
137
|
+
'@atlaskit/platform/ensure-test-runner-arguments': 'error';
|
|
138
|
+
'@atlaskit/platform/ensure-test-runner-nested-count': 'warn';
|
|
139
|
+
'@atlaskit/platform/ensure-use-sync-external-store-server-snapshot': 'error';
|
|
140
|
+
'@atlaskit/platform/no-invalid-feature-flag-usage': 'error';
|
|
141
|
+
'@atlaskit/platform/no-invalid-storybook-decorator-usage': 'error';
|
|
142
|
+
'@atlaskit/platform/ensure-atlassian-team': 'error';
|
|
143
|
+
'@atlaskit/platform/no-module-level-eval-nav4': 'error';
|
|
144
|
+
'@atlaskit/platform/no-direct-document-usage': 'warn';
|
|
145
|
+
'@atlaskit/platform/no-set-immediate': 'error';
|
|
146
|
+
'@atlaskit/platform/expand-border-shorthand': 'error';
|
|
147
|
+
'@atlaskit/platform/expand-background-shorthand': 'error';
|
|
148
|
+
'@atlaskit/platform/expand-spacing-shorthand': 'error';
|
|
149
|
+
'@atlaskit/platform/no-css-prop-in-object-spread': 'error';
|
|
143
150
|
'@compiled/jsx-pragma': [
|
|
144
|
-
|
|
151
|
+
'error',
|
|
145
152
|
{
|
|
146
153
|
importSources: string[];
|
|
147
154
|
onlyRunIfImportingCompiled: boolean;
|
|
@@ -153,20 +160,21 @@ declare const plugin: {
|
|
|
153
160
|
jira: {
|
|
154
161
|
plugins: string[];
|
|
155
162
|
rules: {
|
|
156
|
-
'@atlaskit/platform/ensure-test-runner-arguments':
|
|
157
|
-
'@atlaskit/platform/ensure-test-runner-nested-count':
|
|
158
|
-
'@atlaskit/platform/ensure-use-sync-external-store-server-snapshot':
|
|
159
|
-
'@atlaskit/platform/no-invalid-feature-flag-usage':
|
|
160
|
-
'@atlaskit/platform/no-invalid-storybook-decorator-usage':
|
|
161
|
-
'@atlaskit/platform/ensure-atlassian-team':
|
|
162
|
-
'@atlaskit/platform/no-module-level-eval-nav4':
|
|
163
|
-
'@atlaskit/platform/no-direct-document-usage':
|
|
164
|
-
'@atlaskit/platform/no-set-immediate':
|
|
165
|
-
'@atlaskit/platform/expand-border-shorthand':
|
|
166
|
-
'@atlaskit/platform/expand-background-shorthand':
|
|
167
|
-
'@atlaskit/platform/expand-spacing-shorthand':
|
|
163
|
+
'@atlaskit/platform/ensure-test-runner-arguments': 'error';
|
|
164
|
+
'@atlaskit/platform/ensure-test-runner-nested-count': 'warn';
|
|
165
|
+
'@atlaskit/platform/ensure-use-sync-external-store-server-snapshot': 'error';
|
|
166
|
+
'@atlaskit/platform/no-invalid-feature-flag-usage': 'error';
|
|
167
|
+
'@atlaskit/platform/no-invalid-storybook-decorator-usage': 'error';
|
|
168
|
+
'@atlaskit/platform/ensure-atlassian-team': 'error';
|
|
169
|
+
'@atlaskit/platform/no-module-level-eval-nav4': 'error';
|
|
170
|
+
'@atlaskit/platform/no-direct-document-usage': 'warn';
|
|
171
|
+
'@atlaskit/platform/no-set-immediate': 'error';
|
|
172
|
+
'@atlaskit/platform/expand-border-shorthand': 'error';
|
|
173
|
+
'@atlaskit/platform/expand-background-shorthand': 'error';
|
|
174
|
+
'@atlaskit/platform/expand-spacing-shorthand': 'error';
|
|
175
|
+
'@atlaskit/platform/no-css-prop-in-object-spread': 'error';
|
|
168
176
|
'@compiled/jsx-pragma': [
|
|
169
|
-
|
|
177
|
+
'error',
|
|
170
178
|
{
|
|
171
179
|
importSources: string[];
|
|
172
180
|
onlyRunIfImportingCompiled: boolean;
|
|
@@ -181,20 +189,21 @@ declare const plugin: {
|
|
|
181
189
|
'@compiled': ESLint.Plugin;
|
|
182
190
|
};
|
|
183
191
|
rules: {
|
|
184
|
-
'@atlaskit/platform/ensure-test-runner-arguments':
|
|
185
|
-
'@atlaskit/platform/ensure-test-runner-nested-count':
|
|
186
|
-
'@atlaskit/platform/ensure-use-sync-external-store-server-snapshot':
|
|
187
|
-
'@atlaskit/platform/no-invalid-feature-flag-usage':
|
|
188
|
-
'@atlaskit/platform/no-invalid-storybook-decorator-usage':
|
|
189
|
-
'@atlaskit/platform/ensure-atlassian-team':
|
|
190
|
-
'@atlaskit/platform/no-module-level-eval-nav4':
|
|
191
|
-
'@atlaskit/platform/no-direct-document-usage':
|
|
192
|
-
'@atlaskit/platform/no-set-immediate':
|
|
193
|
-
'@atlaskit/platform/expand-border-shorthand':
|
|
194
|
-
'@atlaskit/platform/expand-background-shorthand':
|
|
195
|
-
'@atlaskit/platform/expand-spacing-shorthand':
|
|
192
|
+
'@atlaskit/platform/ensure-test-runner-arguments': 'error';
|
|
193
|
+
'@atlaskit/platform/ensure-test-runner-nested-count': 'warn';
|
|
194
|
+
'@atlaskit/platform/ensure-use-sync-external-store-server-snapshot': 'error';
|
|
195
|
+
'@atlaskit/platform/no-invalid-feature-flag-usage': 'error';
|
|
196
|
+
'@atlaskit/platform/no-invalid-storybook-decorator-usage': 'error';
|
|
197
|
+
'@atlaskit/platform/ensure-atlassian-team': 'error';
|
|
198
|
+
'@atlaskit/platform/no-module-level-eval-nav4': 'error';
|
|
199
|
+
'@atlaskit/platform/no-direct-document-usage': 'warn';
|
|
200
|
+
'@atlaskit/platform/no-set-immediate': 'error';
|
|
201
|
+
'@atlaskit/platform/expand-border-shorthand': 'error';
|
|
202
|
+
'@atlaskit/platform/expand-background-shorthand': 'error';
|
|
203
|
+
'@atlaskit/platform/expand-spacing-shorthand': 'error';
|
|
204
|
+
'@atlaskit/platform/no-css-prop-in-object-spread': 'error';
|
|
196
205
|
'@compiled/jsx-pragma': [
|
|
197
|
-
|
|
206
|
+
'error',
|
|
198
207
|
{
|
|
199
208
|
importSources: string[];
|
|
200
209
|
onlyRunIfImportingCompiled: boolean;
|
|
@@ -213,28 +222,29 @@ declare const configs: {
|
|
|
213
222
|
recommended: {
|
|
214
223
|
plugins: string[];
|
|
215
224
|
rules: {
|
|
216
|
-
'@atlaskit/platform/no-module-level-eval':
|
|
217
|
-
'@atlaskit/platform/static-feature-flags':
|
|
218
|
-
'@atlaskit/platform/no-preconditioning':
|
|
219
|
-
'@atlaskit/platform/inline-usage':
|
|
220
|
-
'@atlaskit/platform/prefer-fg':
|
|
221
|
-
'@atlaskit/platform/no-alias':
|
|
222
|
-
'@atlaskit/platform/valid-gate-name':
|
|
223
|
-
'@atlaskit/platform/ensure-feature-flag-registration':
|
|
224
|
-
'@atlaskit/platform/ensure-test-runner-arguments':
|
|
225
|
-
'@atlaskit/platform/ensure-test-runner-nested-count':
|
|
226
|
-
'@atlaskit/platform/ensure-use-sync-external-store-server-snapshot':
|
|
227
|
-
'@atlaskit/platform/no-invalid-feature-flag-usage':
|
|
228
|
-
'@atlaskit/platform/no-invalid-storybook-decorator-usage':
|
|
229
|
-
'@atlaskit/platform/ensure-atlassian-team':
|
|
230
|
-
'@atlaskit/platform/no-module-level-eval-nav4':
|
|
231
|
-
'@atlaskit/platform/no-direct-document-usage':
|
|
232
|
-
'@atlaskit/platform/no-set-immediate':
|
|
233
|
-
'@atlaskit/platform/expand-border-shorthand':
|
|
234
|
-
'@atlaskit/platform/expand-background-shorthand':
|
|
235
|
-
'@atlaskit/platform/expand-spacing-shorthand':
|
|
225
|
+
'@atlaskit/platform/no-module-level-eval': 'error';
|
|
226
|
+
'@atlaskit/platform/static-feature-flags': 'error';
|
|
227
|
+
'@atlaskit/platform/no-preconditioning': 'error';
|
|
228
|
+
'@atlaskit/platform/inline-usage': 'error';
|
|
229
|
+
'@atlaskit/platform/prefer-fg': 'error';
|
|
230
|
+
'@atlaskit/platform/no-alias': 'error';
|
|
231
|
+
'@atlaskit/platform/valid-gate-name': 'error';
|
|
232
|
+
'@atlaskit/platform/ensure-feature-flag-registration': 'error';
|
|
233
|
+
'@atlaskit/platform/ensure-test-runner-arguments': 'error';
|
|
234
|
+
'@atlaskit/platform/ensure-test-runner-nested-count': 'warn';
|
|
235
|
+
'@atlaskit/platform/ensure-use-sync-external-store-server-snapshot': 'error';
|
|
236
|
+
'@atlaskit/platform/no-invalid-feature-flag-usage': 'error';
|
|
237
|
+
'@atlaskit/platform/no-invalid-storybook-decorator-usage': 'error';
|
|
238
|
+
'@atlaskit/platform/ensure-atlassian-team': 'error';
|
|
239
|
+
'@atlaskit/platform/no-module-level-eval-nav4': 'error';
|
|
240
|
+
'@atlaskit/platform/no-direct-document-usage': 'warn';
|
|
241
|
+
'@atlaskit/platform/no-set-immediate': 'error';
|
|
242
|
+
'@atlaskit/platform/expand-border-shorthand': 'error';
|
|
243
|
+
'@atlaskit/platform/expand-background-shorthand': 'error';
|
|
244
|
+
'@atlaskit/platform/expand-spacing-shorthand': 'error';
|
|
245
|
+
'@atlaskit/platform/no-css-prop-in-object-spread': 'error';
|
|
236
246
|
'@compiled/jsx-pragma': [
|
|
237
|
-
|
|
247
|
+
'error',
|
|
238
248
|
{
|
|
239
249
|
importSources: string[];
|
|
240
250
|
onlyRunIfImportingCompiled: boolean;
|
|
@@ -249,28 +259,29 @@ declare const configs: {
|
|
|
249
259
|
'@compiled': ESLint.Plugin;
|
|
250
260
|
};
|
|
251
261
|
rules: {
|
|
252
|
-
'@atlaskit/platform/no-module-level-eval':
|
|
253
|
-
'@atlaskit/platform/static-feature-flags':
|
|
254
|
-
'@atlaskit/platform/no-preconditioning':
|
|
255
|
-
'@atlaskit/platform/inline-usage':
|
|
256
|
-
'@atlaskit/platform/prefer-fg':
|
|
257
|
-
'@atlaskit/platform/no-alias':
|
|
258
|
-
'@atlaskit/platform/valid-gate-name':
|
|
259
|
-
'@atlaskit/platform/ensure-feature-flag-registration':
|
|
260
|
-
'@atlaskit/platform/ensure-test-runner-arguments':
|
|
261
|
-
'@atlaskit/platform/ensure-test-runner-nested-count':
|
|
262
|
-
'@atlaskit/platform/ensure-use-sync-external-store-server-snapshot':
|
|
263
|
-
'@atlaskit/platform/no-invalid-feature-flag-usage':
|
|
264
|
-
'@atlaskit/platform/no-invalid-storybook-decorator-usage':
|
|
265
|
-
'@atlaskit/platform/ensure-atlassian-team':
|
|
266
|
-
'@atlaskit/platform/no-module-level-eval-nav4':
|
|
267
|
-
'@atlaskit/platform/no-direct-document-usage':
|
|
268
|
-
'@atlaskit/platform/no-set-immediate':
|
|
269
|
-
'@atlaskit/platform/expand-border-shorthand':
|
|
270
|
-
'@atlaskit/platform/expand-background-shorthand':
|
|
271
|
-
'@atlaskit/platform/expand-spacing-shorthand':
|
|
262
|
+
'@atlaskit/platform/no-module-level-eval': 'error';
|
|
263
|
+
'@atlaskit/platform/static-feature-flags': 'error';
|
|
264
|
+
'@atlaskit/platform/no-preconditioning': 'error';
|
|
265
|
+
'@atlaskit/platform/inline-usage': 'error';
|
|
266
|
+
'@atlaskit/platform/prefer-fg': 'error';
|
|
267
|
+
'@atlaskit/platform/no-alias': 'error';
|
|
268
|
+
'@atlaskit/platform/valid-gate-name': 'error';
|
|
269
|
+
'@atlaskit/platform/ensure-feature-flag-registration': 'error';
|
|
270
|
+
'@atlaskit/platform/ensure-test-runner-arguments': 'error';
|
|
271
|
+
'@atlaskit/platform/ensure-test-runner-nested-count': 'warn';
|
|
272
|
+
'@atlaskit/platform/ensure-use-sync-external-store-server-snapshot': 'error';
|
|
273
|
+
'@atlaskit/platform/no-invalid-feature-flag-usage': 'error';
|
|
274
|
+
'@atlaskit/platform/no-invalid-storybook-decorator-usage': 'error';
|
|
275
|
+
'@atlaskit/platform/ensure-atlassian-team': 'error';
|
|
276
|
+
'@atlaskit/platform/no-module-level-eval-nav4': 'error';
|
|
277
|
+
'@atlaskit/platform/no-direct-document-usage': 'warn';
|
|
278
|
+
'@atlaskit/platform/no-set-immediate': 'error';
|
|
279
|
+
'@atlaskit/platform/expand-border-shorthand': 'error';
|
|
280
|
+
'@atlaskit/platform/expand-background-shorthand': 'error';
|
|
281
|
+
'@atlaskit/platform/expand-spacing-shorthand': 'error';
|
|
282
|
+
'@atlaskit/platform/no-css-prop-in-object-spread': 'error';
|
|
272
283
|
'@compiled/jsx-pragma': [
|
|
273
|
-
|
|
284
|
+
'error',
|
|
274
285
|
{
|
|
275
286
|
importSources: string[];
|
|
276
287
|
onlyRunIfImportingCompiled: boolean;
|
|
@@ -282,20 +293,21 @@ declare const configs: {
|
|
|
282
293
|
jira: {
|
|
283
294
|
plugins: string[];
|
|
284
295
|
rules: {
|
|
285
|
-
'@atlaskit/platform/ensure-test-runner-arguments':
|
|
286
|
-
'@atlaskit/platform/ensure-test-runner-nested-count':
|
|
287
|
-
'@atlaskit/platform/ensure-use-sync-external-store-server-snapshot':
|
|
288
|
-
'@atlaskit/platform/no-invalid-feature-flag-usage':
|
|
289
|
-
'@atlaskit/platform/no-invalid-storybook-decorator-usage':
|
|
290
|
-
'@atlaskit/platform/ensure-atlassian-team':
|
|
291
|
-
'@atlaskit/platform/no-module-level-eval-nav4':
|
|
292
|
-
'@atlaskit/platform/no-direct-document-usage':
|
|
293
|
-
'@atlaskit/platform/no-set-immediate':
|
|
294
|
-
'@atlaskit/platform/expand-border-shorthand':
|
|
295
|
-
'@atlaskit/platform/expand-background-shorthand':
|
|
296
|
-
'@atlaskit/platform/expand-spacing-shorthand':
|
|
296
|
+
'@atlaskit/platform/ensure-test-runner-arguments': 'error';
|
|
297
|
+
'@atlaskit/platform/ensure-test-runner-nested-count': 'warn';
|
|
298
|
+
'@atlaskit/platform/ensure-use-sync-external-store-server-snapshot': 'error';
|
|
299
|
+
'@atlaskit/platform/no-invalid-feature-flag-usage': 'error';
|
|
300
|
+
'@atlaskit/platform/no-invalid-storybook-decorator-usage': 'error';
|
|
301
|
+
'@atlaskit/platform/ensure-atlassian-team': 'error';
|
|
302
|
+
'@atlaskit/platform/no-module-level-eval-nav4': 'error';
|
|
303
|
+
'@atlaskit/platform/no-direct-document-usage': 'warn';
|
|
304
|
+
'@atlaskit/platform/no-set-immediate': 'error';
|
|
305
|
+
'@atlaskit/platform/expand-border-shorthand': 'error';
|
|
306
|
+
'@atlaskit/platform/expand-background-shorthand': 'error';
|
|
307
|
+
'@atlaskit/platform/expand-spacing-shorthand': 'error';
|
|
308
|
+
'@atlaskit/platform/no-css-prop-in-object-spread': 'error';
|
|
297
309
|
'@compiled/jsx-pragma': [
|
|
298
|
-
|
|
310
|
+
'error',
|
|
299
311
|
{
|
|
300
312
|
importSources: string[];
|
|
301
313
|
onlyRunIfImportingCompiled: boolean;
|
|
@@ -310,20 +322,21 @@ declare const configs: {
|
|
|
310
322
|
'@compiled': ESLint.Plugin;
|
|
311
323
|
};
|
|
312
324
|
rules: {
|
|
313
|
-
'@atlaskit/platform/ensure-test-runner-arguments':
|
|
314
|
-
'@atlaskit/platform/ensure-test-runner-nested-count':
|
|
315
|
-
'@atlaskit/platform/ensure-use-sync-external-store-server-snapshot':
|
|
316
|
-
'@atlaskit/platform/no-invalid-feature-flag-usage':
|
|
317
|
-
'@atlaskit/platform/no-invalid-storybook-decorator-usage':
|
|
318
|
-
'@atlaskit/platform/ensure-atlassian-team':
|
|
319
|
-
'@atlaskit/platform/no-module-level-eval-nav4':
|
|
320
|
-
'@atlaskit/platform/no-direct-document-usage':
|
|
321
|
-
'@atlaskit/platform/no-set-immediate':
|
|
322
|
-
'@atlaskit/platform/expand-border-shorthand':
|
|
323
|
-
'@atlaskit/platform/expand-background-shorthand':
|
|
324
|
-
'@atlaskit/platform/expand-spacing-shorthand':
|
|
325
|
+
'@atlaskit/platform/ensure-test-runner-arguments': 'error';
|
|
326
|
+
'@atlaskit/platform/ensure-test-runner-nested-count': 'warn';
|
|
327
|
+
'@atlaskit/platform/ensure-use-sync-external-store-server-snapshot': 'error';
|
|
328
|
+
'@atlaskit/platform/no-invalid-feature-flag-usage': 'error';
|
|
329
|
+
'@atlaskit/platform/no-invalid-storybook-decorator-usage': 'error';
|
|
330
|
+
'@atlaskit/platform/ensure-atlassian-team': 'error';
|
|
331
|
+
'@atlaskit/platform/no-module-level-eval-nav4': 'error';
|
|
332
|
+
'@atlaskit/platform/no-direct-document-usage': 'warn';
|
|
333
|
+
'@atlaskit/platform/no-set-immediate': 'error';
|
|
334
|
+
'@atlaskit/platform/expand-border-shorthand': 'error';
|
|
335
|
+
'@atlaskit/platform/expand-background-shorthand': 'error';
|
|
336
|
+
'@atlaskit/platform/expand-spacing-shorthand': 'error';
|
|
337
|
+
'@atlaskit/platform/no-css-prop-in-object-spread': 'error';
|
|
325
338
|
'@compiled/jsx-pragma': [
|
|
326
|
-
|
|
339
|
+
'error',
|
|
327
340
|
{
|
|
328
341
|
importSources: string[];
|
|
329
342
|
onlyRunIfImportingCompiled: boolean;
|