@atlaskit/eslint-plugin-platform 2.9.1 → 2.9.3
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 +18 -0
- package/dist/cjs/index.js +15 -3
- package/dist/cjs/rules/compiled/expand-motion-shorthand/index.js +281 -0
- package/dist/cjs/rules/compiled/no-css-prop-in-object-spread/index.js +162 -0
- package/dist/cjs/rules/compiled/use-motion-token-values/index.js +506 -0
- package/dist/cjs/rules/editor-example-type-import-required/index.js +321 -0
- package/dist/cjs/rules/no-xcss-in-cx/index.js +221 -0
- package/dist/cjs/rules/visit-example-type-import-required/index.js +23 -13
- package/dist/es2019/index.js +15 -3
- package/dist/es2019/rules/compiled/expand-motion-shorthand/index.js +239 -0
- package/dist/es2019/rules/compiled/no-css-prop-in-object-spread/index.js +136 -0
- package/dist/es2019/rules/compiled/use-motion-token-values/index.js +444 -0
- package/dist/es2019/rules/editor-example-type-import-required/index.js +286 -0
- package/dist/es2019/rules/no-xcss-in-cx/index.js +187 -0
- package/dist/es2019/rules/visit-example-type-import-required/index.js +23 -14
- package/dist/esm/index.js +15 -3
- package/dist/esm/rules/compiled/expand-motion-shorthand/index.js +275 -0
- package/dist/esm/rules/compiled/no-css-prop-in-object-spread/index.js +156 -0
- package/dist/esm/rules/compiled/use-motion-token-values/index.js +499 -0
- package/dist/esm/rules/editor-example-type-import-required/index.js +314 -0
- package/dist/esm/rules/no-xcss-in-cx/index.js +216 -0
- package/dist/esm/rules/visit-example-type-import-required/index.js +23 -13
- package/dist/types/index.d.ts +282 -243
- package/dist/types/rules/compiled/expand-motion-shorthand/index.d.ts +3 -0
- package/dist/types/rules/compiled/no-css-prop-in-object-spread/index.d.ts +3 -0
- package/dist/types/rules/compiled/use-motion-token-values/index.d.ts +3 -0
- package/dist/types/rules/editor-example-type-import-required/index.d.ts +4 -0
- package/dist/types/rules/no-xcss-in-cx/index.d.ts +31 -0
- package/dist/types-ts4.5/index.d.ts +226 -211
- package/dist/types-ts4.5/rules/compiled/expand-motion-shorthand/index.d.ts +3 -0
- package/dist/types-ts4.5/rules/compiled/no-css-prop-in-object-spread/index.d.ts +3 -0
- package/dist/types-ts4.5/rules/compiled/use-motion-token-values/index.d.ts +3 -0
- package/dist/types-ts4.5/rules/editor-example-type-import-required/index.d.ts +4 -0
- package/dist/types-ts4.5/rules/no-xcss-in-cx/index.d.ts +31 -0
- package/package.json +2 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -1,42 +1,47 @@
|
|
|
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-barrel-entry-
|
|
35
|
-
'no-jest-mock
|
|
36
|
-
'no-
|
|
37
|
-
'no-
|
|
38
|
-
'
|
|
39
|
-
'
|
|
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
|
+
'editor-example-type-import-required': Rule.RuleModule;
|
|
42
|
+
'ensure-use-sync-external-store-server-snapshot': Rule.RuleModule;
|
|
43
|
+
'use-motion-token-values': Rule.RuleModule;
|
|
44
|
+
'expand-motion-shorthand': Rule.RuleModule;
|
|
40
45
|
};
|
|
41
46
|
declare const plugin: {
|
|
42
47
|
meta: {
|
|
@@ -44,73 +49,79 @@ declare const plugin: {
|
|
|
44
49
|
version: string;
|
|
45
50
|
};
|
|
46
51
|
rules: {
|
|
47
|
-
'ensure-feature-flag-registration':
|
|
48
|
-
'ensure-test-runner-arguments':
|
|
49
|
-
'ensure-test-runner-nested-count':
|
|
50
|
-
'ensure-atlassian-team':
|
|
51
|
-
'ensure-critical-dependency-resolutions':
|
|
52
|
-
'ensure-valid-bin-values':
|
|
53
|
-
'ensure-no-private-dependencies':
|
|
54
|
-
'expand-border-shorthand':
|
|
55
|
-
'expand-background-shorthand':
|
|
56
|
-
'expand-spacing-shorthand':
|
|
57
|
-
'no-
|
|
58
|
-
'no-
|
|
59
|
-
'no-
|
|
60
|
-
'no-
|
|
61
|
-
'
|
|
62
|
-
'
|
|
63
|
-
'no-module-level-eval
|
|
64
|
-
'
|
|
65
|
-
'
|
|
66
|
-
'
|
|
67
|
-
'
|
|
68
|
-
'
|
|
69
|
-
'
|
|
70
|
-
'use-
|
|
71
|
-
'
|
|
72
|
-
'
|
|
73
|
-
'no-
|
|
74
|
-
'no-
|
|
75
|
-
'
|
|
76
|
-
'
|
|
77
|
-
'no-
|
|
78
|
-
'no-barrel-entry-
|
|
79
|
-
'no-jest-mock
|
|
80
|
-
'no-
|
|
81
|
-
'no-
|
|
82
|
-
'
|
|
83
|
-
'
|
|
52
|
+
'ensure-feature-flag-registration': Rule.RuleModule;
|
|
53
|
+
'ensure-test-runner-arguments': Rule.RuleModule;
|
|
54
|
+
'ensure-test-runner-nested-count': Rule.RuleModule;
|
|
55
|
+
'ensure-atlassian-team': Rule.RuleModule;
|
|
56
|
+
'ensure-critical-dependency-resolutions': Rule.RuleModule;
|
|
57
|
+
'ensure-valid-bin-values': Rule.RuleModule;
|
|
58
|
+
'ensure-no-private-dependencies': Rule.RuleModule;
|
|
59
|
+
'expand-border-shorthand': Rule.RuleModule;
|
|
60
|
+
'expand-background-shorthand': Rule.RuleModule;
|
|
61
|
+
'expand-spacing-shorthand': Rule.RuleModule;
|
|
62
|
+
'no-css-prop-in-object-spread': Rule.RuleModule;
|
|
63
|
+
'no-duplicate-dependencies': Rule.RuleModule;
|
|
64
|
+
'no-invalid-feature-flag-usage': Rule.RuleModule;
|
|
65
|
+
'no-pre-post-install-scripts': Rule.RuleModule;
|
|
66
|
+
'no-invalid-storybook-decorator-usage': Rule.RuleModule;
|
|
67
|
+
'ensure-publish-valid': Rule.RuleModule;
|
|
68
|
+
'no-module-level-eval': Rule.RuleModule;
|
|
69
|
+
'no-module-level-eval-nav4': Rule.RuleModule;
|
|
70
|
+
'static-feature-flags': Rule.RuleModule;
|
|
71
|
+
'no-preconditioning': Rule.RuleModule;
|
|
72
|
+
'inline-usage': Rule.RuleModule;
|
|
73
|
+
'prefer-fg': Rule.RuleModule;
|
|
74
|
+
'no-alias': Rule.RuleModule;
|
|
75
|
+
'use-entrypoints-in-examples': Rule.RuleModule;
|
|
76
|
+
'use-recommended-utils': Rule.RuleModule;
|
|
77
|
+
'valid-gate-name': Rule.RuleModule;
|
|
78
|
+
'no-sparse-checkout': Rule.RuleModule;
|
|
79
|
+
'no-direct-document-usage': Rule.RuleModule;
|
|
80
|
+
'no-set-immediate': Rule.RuleModule;
|
|
81
|
+
'prefer-crypto-random-uuid': Rule.RuleModule;
|
|
82
|
+
'no-restricted-fedramp-imports': Rule.RuleModule;
|
|
83
|
+
'no-barrel-entry-imports': Rule.RuleModule;
|
|
84
|
+
'no-barrel-entry-jest-mock': Rule.RuleModule;
|
|
85
|
+
'no-jest-mock-barrel-files': Rule.RuleModule;
|
|
86
|
+
'no-relative-barrel-file-imports': Rule.RuleModule;
|
|
87
|
+
'no-conversation-assistant-barrel-imports': Rule.RuleModule;
|
|
88
|
+
'visit-example-type-import-required': Rule.RuleModule;
|
|
89
|
+
'editor-example-type-import-required': Rule.RuleModule;
|
|
90
|
+
'ensure-use-sync-external-store-server-snapshot': Rule.RuleModule;
|
|
84
91
|
};
|
|
85
92
|
configs: {
|
|
86
93
|
recommended: {
|
|
87
94
|
plugins: string[];
|
|
88
95
|
rules: {
|
|
89
|
-
'@atlaskit/platform/no-module-level-eval':
|
|
90
|
-
'@atlaskit/platform/static-feature-flags':
|
|
91
|
-
'@atlaskit/platform/no-preconditioning':
|
|
92
|
-
'@atlaskit/platform/inline-usage':
|
|
93
|
-
'@atlaskit/platform/prefer-fg':
|
|
94
|
-
'@atlaskit/platform/no-alias':
|
|
95
|
-
'@atlaskit/platform/valid-gate-name':
|
|
96
|
-
'@atlaskit/platform/ensure-feature-flag-registration':
|
|
97
|
-
'@atlaskit/platform/ensure-test-runner-arguments':
|
|
98
|
-
'@atlaskit/platform/ensure-test-runner-nested-count':
|
|
99
|
-
'@atlaskit/platform/ensure-use-sync-external-store-server-snapshot':
|
|
100
|
-
'@atlaskit/platform/no-invalid-feature-flag-usage':
|
|
101
|
-
'@atlaskit/platform/no-invalid-storybook-decorator-usage':
|
|
102
|
-
'@atlaskit/platform/ensure-atlassian-team':
|
|
103
|
-
'@atlaskit/platform/no-module-level-eval-nav4':
|
|
104
|
-
'@atlaskit/platform/no-direct-document-usage':
|
|
105
|
-
'@atlaskit/platform/no-set-immediate':
|
|
106
|
-
'@atlaskit/platform/expand-border-shorthand':
|
|
107
|
-
'@atlaskit/platform/expand-background-shorthand':
|
|
108
|
-
'@atlaskit/platform/expand-spacing-shorthand':
|
|
109
|
-
'@
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
96
|
+
'@atlaskit/platform/no-module-level-eval': 'error';
|
|
97
|
+
'@atlaskit/platform/static-feature-flags': 'error';
|
|
98
|
+
'@atlaskit/platform/no-preconditioning': 'error';
|
|
99
|
+
'@atlaskit/platform/inline-usage': 'error';
|
|
100
|
+
'@atlaskit/platform/prefer-fg': 'error';
|
|
101
|
+
'@atlaskit/platform/no-alias': 'error';
|
|
102
|
+
'@atlaskit/platform/valid-gate-name': 'error';
|
|
103
|
+
'@atlaskit/platform/ensure-feature-flag-registration': 'error';
|
|
104
|
+
'@atlaskit/platform/ensure-test-runner-arguments': 'error';
|
|
105
|
+
'@atlaskit/platform/ensure-test-runner-nested-count': 'warn';
|
|
106
|
+
'@atlaskit/platform/ensure-use-sync-external-store-server-snapshot': 'error';
|
|
107
|
+
'@atlaskit/platform/no-invalid-feature-flag-usage': 'error';
|
|
108
|
+
'@atlaskit/platform/no-invalid-storybook-decorator-usage': 'error';
|
|
109
|
+
'@atlaskit/platform/ensure-atlassian-team': 'error';
|
|
110
|
+
'@atlaskit/platform/no-module-level-eval-nav4': 'error';
|
|
111
|
+
'@atlaskit/platform/no-direct-document-usage': 'warn';
|
|
112
|
+
'@atlaskit/platform/no-set-immediate': 'error';
|
|
113
|
+
'@atlaskit/platform/expand-border-shorthand': 'error';
|
|
114
|
+
'@atlaskit/platform/expand-background-shorthand': 'error';
|
|
115
|
+
'@atlaskit/platform/expand-spacing-shorthand': 'error';
|
|
116
|
+
'@atlaskit/platform/no-css-prop-in-object-spread': 'error';
|
|
117
|
+
'@compiled/jsx-pragma': [
|
|
118
|
+
'error',
|
|
119
|
+
{
|
|
120
|
+
importSources: string[];
|
|
121
|
+
onlyRunIfImportingCompiled: boolean;
|
|
122
|
+
runtime: string;
|
|
123
|
+
}
|
|
124
|
+
];
|
|
114
125
|
};
|
|
115
126
|
};
|
|
116
127
|
'recommended/flat': {
|
|
@@ -119,53 +130,61 @@ declare const plugin: {
|
|
|
119
130
|
'@compiled': ESLint.Plugin;
|
|
120
131
|
};
|
|
121
132
|
rules: {
|
|
122
|
-
'@atlaskit/platform/no-module-level-eval':
|
|
123
|
-
'@atlaskit/platform/static-feature-flags':
|
|
124
|
-
'@atlaskit/platform/no-preconditioning':
|
|
125
|
-
'@atlaskit/platform/inline-usage':
|
|
126
|
-
'@atlaskit/platform/prefer-fg':
|
|
127
|
-
'@atlaskit/platform/no-alias':
|
|
128
|
-
'@atlaskit/platform/valid-gate-name':
|
|
129
|
-
'@atlaskit/platform/ensure-feature-flag-registration':
|
|
130
|
-
'@atlaskit/platform/ensure-test-runner-arguments':
|
|
131
|
-
'@atlaskit/platform/ensure-test-runner-nested-count':
|
|
132
|
-
'@atlaskit/platform/ensure-use-sync-external-store-server-snapshot':
|
|
133
|
-
'@atlaskit/platform/no-invalid-feature-flag-usage':
|
|
134
|
-
'@atlaskit/platform/no-invalid-storybook-decorator-usage':
|
|
135
|
-
'@atlaskit/platform/ensure-atlassian-team':
|
|
136
|
-
'@atlaskit/platform/no-module-level-eval-nav4':
|
|
137
|
-
'@atlaskit/platform/no-direct-document-usage':
|
|
138
|
-
'@atlaskit/platform/no-set-immediate':
|
|
139
|
-
'@atlaskit/platform/expand-border-shorthand':
|
|
140
|
-
'@atlaskit/platform/expand-background-shorthand':
|
|
141
|
-
'@atlaskit/platform/expand-spacing-shorthand':
|
|
142
|
-
'@
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
133
|
+
'@atlaskit/platform/no-module-level-eval': 'error';
|
|
134
|
+
'@atlaskit/platform/static-feature-flags': 'error';
|
|
135
|
+
'@atlaskit/platform/no-preconditioning': 'error';
|
|
136
|
+
'@atlaskit/platform/inline-usage': 'error';
|
|
137
|
+
'@atlaskit/platform/prefer-fg': 'error';
|
|
138
|
+
'@atlaskit/platform/no-alias': 'error';
|
|
139
|
+
'@atlaskit/platform/valid-gate-name': 'error';
|
|
140
|
+
'@atlaskit/platform/ensure-feature-flag-registration': 'error';
|
|
141
|
+
'@atlaskit/platform/ensure-test-runner-arguments': 'error';
|
|
142
|
+
'@atlaskit/platform/ensure-test-runner-nested-count': 'warn';
|
|
143
|
+
'@atlaskit/platform/ensure-use-sync-external-store-server-snapshot': 'error';
|
|
144
|
+
'@atlaskit/platform/no-invalid-feature-flag-usage': 'error';
|
|
145
|
+
'@atlaskit/platform/no-invalid-storybook-decorator-usage': 'error';
|
|
146
|
+
'@atlaskit/platform/ensure-atlassian-team': 'error';
|
|
147
|
+
'@atlaskit/platform/no-module-level-eval-nav4': 'error';
|
|
148
|
+
'@atlaskit/platform/no-direct-document-usage': 'warn';
|
|
149
|
+
'@atlaskit/platform/no-set-immediate': 'error';
|
|
150
|
+
'@atlaskit/platform/expand-border-shorthand': 'error';
|
|
151
|
+
'@atlaskit/platform/expand-background-shorthand': 'error';
|
|
152
|
+
'@atlaskit/platform/expand-spacing-shorthand': 'error';
|
|
153
|
+
'@atlaskit/platform/no-css-prop-in-object-spread': 'error';
|
|
154
|
+
'@compiled/jsx-pragma': [
|
|
155
|
+
'error',
|
|
156
|
+
{
|
|
157
|
+
importSources: string[];
|
|
158
|
+
onlyRunIfImportingCompiled: boolean;
|
|
159
|
+
runtime: string;
|
|
160
|
+
}
|
|
161
|
+
];
|
|
147
162
|
};
|
|
148
163
|
};
|
|
149
164
|
jira: {
|
|
150
165
|
plugins: string[];
|
|
151
166
|
rules: {
|
|
152
|
-
'@atlaskit/platform/ensure-test-runner-arguments':
|
|
153
|
-
'@atlaskit/platform/ensure-test-runner-nested-count':
|
|
154
|
-
'@atlaskit/platform/ensure-use-sync-external-store-server-snapshot':
|
|
155
|
-
'@atlaskit/platform/no-invalid-feature-flag-usage':
|
|
156
|
-
'@atlaskit/platform/no-invalid-storybook-decorator-usage':
|
|
157
|
-
'@atlaskit/platform/ensure-atlassian-team':
|
|
158
|
-
'@atlaskit/platform/no-module-level-eval-nav4':
|
|
159
|
-
'@atlaskit/platform/no-direct-document-usage':
|
|
160
|
-
'@atlaskit/platform/no-set-immediate':
|
|
161
|
-
'@atlaskit/platform/expand-border-shorthand':
|
|
162
|
-
'@atlaskit/platform/expand-background-shorthand':
|
|
163
|
-
'@atlaskit/platform/expand-spacing-shorthand':
|
|
164
|
-
'@
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
167
|
+
'@atlaskit/platform/ensure-test-runner-arguments': 'error';
|
|
168
|
+
'@atlaskit/platform/ensure-test-runner-nested-count': 'warn';
|
|
169
|
+
'@atlaskit/platform/ensure-use-sync-external-store-server-snapshot': 'error';
|
|
170
|
+
'@atlaskit/platform/no-invalid-feature-flag-usage': 'error';
|
|
171
|
+
'@atlaskit/platform/no-invalid-storybook-decorator-usage': 'error';
|
|
172
|
+
'@atlaskit/platform/ensure-atlassian-team': 'error';
|
|
173
|
+
'@atlaskit/platform/no-module-level-eval-nav4': 'error';
|
|
174
|
+
'@atlaskit/platform/no-direct-document-usage': 'warn';
|
|
175
|
+
'@atlaskit/platform/no-set-immediate': 'error';
|
|
176
|
+
'@atlaskit/platform/expand-border-shorthand': 'error';
|
|
177
|
+
'@atlaskit/platform/expand-background-shorthand': 'error';
|
|
178
|
+
'@atlaskit/platform/expand-spacing-shorthand': 'error';
|
|
179
|
+
'@atlaskit/platform/no-css-prop-in-object-spread': 'error';
|
|
180
|
+
'@compiled/jsx-pragma': [
|
|
181
|
+
'error',
|
|
182
|
+
{
|
|
183
|
+
importSources: string[];
|
|
184
|
+
onlyRunIfImportingCompiled: boolean;
|
|
185
|
+
runtime: string;
|
|
186
|
+
}
|
|
187
|
+
];
|
|
169
188
|
};
|
|
170
189
|
};
|
|
171
190
|
'jira/flat': {
|
|
@@ -174,23 +193,27 @@ declare const plugin: {
|
|
|
174
193
|
'@compiled': ESLint.Plugin;
|
|
175
194
|
};
|
|
176
195
|
rules: {
|
|
177
|
-
'@atlaskit/platform/ensure-test-runner-arguments':
|
|
178
|
-
'@atlaskit/platform/ensure-test-runner-nested-count':
|
|
179
|
-
'@atlaskit/platform/ensure-use-sync-external-store-server-snapshot':
|
|
180
|
-
'@atlaskit/platform/no-invalid-feature-flag-usage':
|
|
181
|
-
'@atlaskit/platform/no-invalid-storybook-decorator-usage':
|
|
182
|
-
'@atlaskit/platform/ensure-atlassian-team':
|
|
183
|
-
'@atlaskit/platform/no-module-level-eval-nav4':
|
|
184
|
-
'@atlaskit/platform/no-direct-document-usage':
|
|
185
|
-
'@atlaskit/platform/no-set-immediate':
|
|
186
|
-
'@atlaskit/platform/expand-border-shorthand':
|
|
187
|
-
'@atlaskit/platform/expand-background-shorthand':
|
|
188
|
-
'@atlaskit/platform/expand-spacing-shorthand':
|
|
189
|
-
'@
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
196
|
+
'@atlaskit/platform/ensure-test-runner-arguments': 'error';
|
|
197
|
+
'@atlaskit/platform/ensure-test-runner-nested-count': 'warn';
|
|
198
|
+
'@atlaskit/platform/ensure-use-sync-external-store-server-snapshot': 'error';
|
|
199
|
+
'@atlaskit/platform/no-invalid-feature-flag-usage': 'error';
|
|
200
|
+
'@atlaskit/platform/no-invalid-storybook-decorator-usage': 'error';
|
|
201
|
+
'@atlaskit/platform/ensure-atlassian-team': 'error';
|
|
202
|
+
'@atlaskit/platform/no-module-level-eval-nav4': 'error';
|
|
203
|
+
'@atlaskit/platform/no-direct-document-usage': 'warn';
|
|
204
|
+
'@atlaskit/platform/no-set-immediate': 'error';
|
|
205
|
+
'@atlaskit/platform/expand-border-shorthand': 'error';
|
|
206
|
+
'@atlaskit/platform/expand-background-shorthand': 'error';
|
|
207
|
+
'@atlaskit/platform/expand-spacing-shorthand': 'error';
|
|
208
|
+
'@atlaskit/platform/no-css-prop-in-object-spread': 'error';
|
|
209
|
+
'@compiled/jsx-pragma': [
|
|
210
|
+
'error',
|
|
211
|
+
{
|
|
212
|
+
importSources: string[];
|
|
213
|
+
onlyRunIfImportingCompiled: boolean;
|
|
214
|
+
runtime: string;
|
|
215
|
+
}
|
|
216
|
+
];
|
|
194
217
|
};
|
|
195
218
|
};
|
|
196
219
|
};
|
|
@@ -203,31 +226,35 @@ declare const configs: {
|
|
|
203
226
|
recommended: {
|
|
204
227
|
plugins: string[];
|
|
205
228
|
rules: {
|
|
206
|
-
'@atlaskit/platform/no-module-level-eval':
|
|
207
|
-
'@atlaskit/platform/static-feature-flags':
|
|
208
|
-
'@atlaskit/platform/no-preconditioning':
|
|
209
|
-
'@atlaskit/platform/inline-usage':
|
|
210
|
-
'@atlaskit/platform/prefer-fg':
|
|
211
|
-
'@atlaskit/platform/no-alias':
|
|
212
|
-
'@atlaskit/platform/valid-gate-name':
|
|
213
|
-
'@atlaskit/platform/ensure-feature-flag-registration':
|
|
214
|
-
'@atlaskit/platform/ensure-test-runner-arguments':
|
|
215
|
-
'@atlaskit/platform/ensure-test-runner-nested-count':
|
|
216
|
-
'@atlaskit/platform/ensure-use-sync-external-store-server-snapshot':
|
|
217
|
-
'@atlaskit/platform/no-invalid-feature-flag-usage':
|
|
218
|
-
'@atlaskit/platform/no-invalid-storybook-decorator-usage':
|
|
219
|
-
'@atlaskit/platform/ensure-atlassian-team':
|
|
220
|
-
'@atlaskit/platform/no-module-level-eval-nav4':
|
|
221
|
-
'@atlaskit/platform/no-direct-document-usage':
|
|
222
|
-
'@atlaskit/platform/no-set-immediate':
|
|
223
|
-
'@atlaskit/platform/expand-border-shorthand':
|
|
224
|
-
'@atlaskit/platform/expand-background-shorthand':
|
|
225
|
-
'@atlaskit/platform/expand-spacing-shorthand':
|
|
226
|
-
'@
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
229
|
+
'@atlaskit/platform/no-module-level-eval': 'error';
|
|
230
|
+
'@atlaskit/platform/static-feature-flags': 'error';
|
|
231
|
+
'@atlaskit/platform/no-preconditioning': 'error';
|
|
232
|
+
'@atlaskit/platform/inline-usage': 'error';
|
|
233
|
+
'@atlaskit/platform/prefer-fg': 'error';
|
|
234
|
+
'@atlaskit/platform/no-alias': 'error';
|
|
235
|
+
'@atlaskit/platform/valid-gate-name': 'error';
|
|
236
|
+
'@atlaskit/platform/ensure-feature-flag-registration': 'error';
|
|
237
|
+
'@atlaskit/platform/ensure-test-runner-arguments': 'error';
|
|
238
|
+
'@atlaskit/platform/ensure-test-runner-nested-count': 'warn';
|
|
239
|
+
'@atlaskit/platform/ensure-use-sync-external-store-server-snapshot': 'error';
|
|
240
|
+
'@atlaskit/platform/no-invalid-feature-flag-usage': 'error';
|
|
241
|
+
'@atlaskit/platform/no-invalid-storybook-decorator-usage': 'error';
|
|
242
|
+
'@atlaskit/platform/ensure-atlassian-team': 'error';
|
|
243
|
+
'@atlaskit/platform/no-module-level-eval-nav4': 'error';
|
|
244
|
+
'@atlaskit/platform/no-direct-document-usage': 'warn';
|
|
245
|
+
'@atlaskit/platform/no-set-immediate': 'error';
|
|
246
|
+
'@atlaskit/platform/expand-border-shorthand': 'error';
|
|
247
|
+
'@atlaskit/platform/expand-background-shorthand': 'error';
|
|
248
|
+
'@atlaskit/platform/expand-spacing-shorthand': 'error';
|
|
249
|
+
'@atlaskit/platform/no-css-prop-in-object-spread': 'error';
|
|
250
|
+
'@compiled/jsx-pragma': [
|
|
251
|
+
'error',
|
|
252
|
+
{
|
|
253
|
+
importSources: string[];
|
|
254
|
+
onlyRunIfImportingCompiled: boolean;
|
|
255
|
+
runtime: string;
|
|
256
|
+
}
|
|
257
|
+
];
|
|
231
258
|
};
|
|
232
259
|
};
|
|
233
260
|
'recommended/flat': {
|
|
@@ -236,53 +263,61 @@ declare const configs: {
|
|
|
236
263
|
'@compiled': ESLint.Plugin;
|
|
237
264
|
};
|
|
238
265
|
rules: {
|
|
239
|
-
'@atlaskit/platform/no-module-level-eval':
|
|
240
|
-
'@atlaskit/platform/static-feature-flags':
|
|
241
|
-
'@atlaskit/platform/no-preconditioning':
|
|
242
|
-
'@atlaskit/platform/inline-usage':
|
|
243
|
-
'@atlaskit/platform/prefer-fg':
|
|
244
|
-
'@atlaskit/platform/no-alias':
|
|
245
|
-
'@atlaskit/platform/valid-gate-name':
|
|
246
|
-
'@atlaskit/platform/ensure-feature-flag-registration':
|
|
247
|
-
'@atlaskit/platform/ensure-test-runner-arguments':
|
|
248
|
-
'@atlaskit/platform/ensure-test-runner-nested-count':
|
|
249
|
-
'@atlaskit/platform/ensure-use-sync-external-store-server-snapshot':
|
|
250
|
-
'@atlaskit/platform/no-invalid-feature-flag-usage':
|
|
251
|
-
'@atlaskit/platform/no-invalid-storybook-decorator-usage':
|
|
252
|
-
'@atlaskit/platform/ensure-atlassian-team':
|
|
253
|
-
'@atlaskit/platform/no-module-level-eval-nav4':
|
|
254
|
-
'@atlaskit/platform/no-direct-document-usage':
|
|
255
|
-
'@atlaskit/platform/no-set-immediate':
|
|
256
|
-
'@atlaskit/platform/expand-border-shorthand':
|
|
257
|
-
'@atlaskit/platform/expand-background-shorthand':
|
|
258
|
-
'@atlaskit/platform/expand-spacing-shorthand':
|
|
259
|
-
'@
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
266
|
+
'@atlaskit/platform/no-module-level-eval': 'error';
|
|
267
|
+
'@atlaskit/platform/static-feature-flags': 'error';
|
|
268
|
+
'@atlaskit/platform/no-preconditioning': 'error';
|
|
269
|
+
'@atlaskit/platform/inline-usage': 'error';
|
|
270
|
+
'@atlaskit/platform/prefer-fg': 'error';
|
|
271
|
+
'@atlaskit/platform/no-alias': 'error';
|
|
272
|
+
'@atlaskit/platform/valid-gate-name': 'error';
|
|
273
|
+
'@atlaskit/platform/ensure-feature-flag-registration': 'error';
|
|
274
|
+
'@atlaskit/platform/ensure-test-runner-arguments': 'error';
|
|
275
|
+
'@atlaskit/platform/ensure-test-runner-nested-count': 'warn';
|
|
276
|
+
'@atlaskit/platform/ensure-use-sync-external-store-server-snapshot': 'error';
|
|
277
|
+
'@atlaskit/platform/no-invalid-feature-flag-usage': 'error';
|
|
278
|
+
'@atlaskit/platform/no-invalid-storybook-decorator-usage': 'error';
|
|
279
|
+
'@atlaskit/platform/ensure-atlassian-team': 'error';
|
|
280
|
+
'@atlaskit/platform/no-module-level-eval-nav4': 'error';
|
|
281
|
+
'@atlaskit/platform/no-direct-document-usage': 'warn';
|
|
282
|
+
'@atlaskit/platform/no-set-immediate': 'error';
|
|
283
|
+
'@atlaskit/platform/expand-border-shorthand': 'error';
|
|
284
|
+
'@atlaskit/platform/expand-background-shorthand': 'error';
|
|
285
|
+
'@atlaskit/platform/expand-spacing-shorthand': 'error';
|
|
286
|
+
'@atlaskit/platform/no-css-prop-in-object-spread': 'error';
|
|
287
|
+
'@compiled/jsx-pragma': [
|
|
288
|
+
'error',
|
|
289
|
+
{
|
|
290
|
+
importSources: string[];
|
|
291
|
+
onlyRunIfImportingCompiled: boolean;
|
|
292
|
+
runtime: string;
|
|
293
|
+
}
|
|
294
|
+
];
|
|
264
295
|
};
|
|
265
296
|
};
|
|
266
297
|
jira: {
|
|
267
298
|
plugins: string[];
|
|
268
299
|
rules: {
|
|
269
|
-
'@atlaskit/platform/ensure-test-runner-arguments':
|
|
270
|
-
'@atlaskit/platform/ensure-test-runner-nested-count':
|
|
271
|
-
'@atlaskit/platform/ensure-use-sync-external-store-server-snapshot':
|
|
272
|
-
'@atlaskit/platform/no-invalid-feature-flag-usage':
|
|
273
|
-
'@atlaskit/platform/no-invalid-storybook-decorator-usage':
|
|
274
|
-
'@atlaskit/platform/ensure-atlassian-team':
|
|
275
|
-
'@atlaskit/platform/no-module-level-eval-nav4':
|
|
276
|
-
'@atlaskit/platform/no-direct-document-usage':
|
|
277
|
-
'@atlaskit/platform/no-set-immediate':
|
|
278
|
-
'@atlaskit/platform/expand-border-shorthand':
|
|
279
|
-
'@atlaskit/platform/expand-background-shorthand':
|
|
280
|
-
'@atlaskit/platform/expand-spacing-shorthand':
|
|
281
|
-
'@
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
300
|
+
'@atlaskit/platform/ensure-test-runner-arguments': 'error';
|
|
301
|
+
'@atlaskit/platform/ensure-test-runner-nested-count': 'warn';
|
|
302
|
+
'@atlaskit/platform/ensure-use-sync-external-store-server-snapshot': 'error';
|
|
303
|
+
'@atlaskit/platform/no-invalid-feature-flag-usage': 'error';
|
|
304
|
+
'@atlaskit/platform/no-invalid-storybook-decorator-usage': 'error';
|
|
305
|
+
'@atlaskit/platform/ensure-atlassian-team': 'error';
|
|
306
|
+
'@atlaskit/platform/no-module-level-eval-nav4': 'error';
|
|
307
|
+
'@atlaskit/platform/no-direct-document-usage': 'warn';
|
|
308
|
+
'@atlaskit/platform/no-set-immediate': 'error';
|
|
309
|
+
'@atlaskit/platform/expand-border-shorthand': 'error';
|
|
310
|
+
'@atlaskit/platform/expand-background-shorthand': 'error';
|
|
311
|
+
'@atlaskit/platform/expand-spacing-shorthand': 'error';
|
|
312
|
+
'@atlaskit/platform/no-css-prop-in-object-spread': 'error';
|
|
313
|
+
'@compiled/jsx-pragma': [
|
|
314
|
+
'error',
|
|
315
|
+
{
|
|
316
|
+
importSources: string[];
|
|
317
|
+
onlyRunIfImportingCompiled: boolean;
|
|
318
|
+
runtime: string;
|
|
319
|
+
}
|
|
320
|
+
];
|
|
286
321
|
};
|
|
287
322
|
};
|
|
288
323
|
'jira/flat': {
|
|
@@ -291,23 +326,27 @@ declare const configs: {
|
|
|
291
326
|
'@compiled': ESLint.Plugin;
|
|
292
327
|
};
|
|
293
328
|
rules: {
|
|
294
|
-
'@atlaskit/platform/ensure-test-runner-arguments':
|
|
295
|
-
'@atlaskit/platform/ensure-test-runner-nested-count':
|
|
296
|
-
'@atlaskit/platform/ensure-use-sync-external-store-server-snapshot':
|
|
297
|
-
'@atlaskit/platform/no-invalid-feature-flag-usage':
|
|
298
|
-
'@atlaskit/platform/no-invalid-storybook-decorator-usage':
|
|
299
|
-
'@atlaskit/platform/ensure-atlassian-team':
|
|
300
|
-
'@atlaskit/platform/no-module-level-eval-nav4':
|
|
301
|
-
'@atlaskit/platform/no-direct-document-usage':
|
|
302
|
-
'@atlaskit/platform/no-set-immediate':
|
|
303
|
-
'@atlaskit/platform/expand-border-shorthand':
|
|
304
|
-
'@atlaskit/platform/expand-background-shorthand':
|
|
305
|
-
'@atlaskit/platform/expand-spacing-shorthand':
|
|
306
|
-
'@
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
329
|
+
'@atlaskit/platform/ensure-test-runner-arguments': 'error';
|
|
330
|
+
'@atlaskit/platform/ensure-test-runner-nested-count': 'warn';
|
|
331
|
+
'@atlaskit/platform/ensure-use-sync-external-store-server-snapshot': 'error';
|
|
332
|
+
'@atlaskit/platform/no-invalid-feature-flag-usage': 'error';
|
|
333
|
+
'@atlaskit/platform/no-invalid-storybook-decorator-usage': 'error';
|
|
334
|
+
'@atlaskit/platform/ensure-atlassian-team': 'error';
|
|
335
|
+
'@atlaskit/platform/no-module-level-eval-nav4': 'error';
|
|
336
|
+
'@atlaskit/platform/no-direct-document-usage': 'warn';
|
|
337
|
+
'@atlaskit/platform/no-set-immediate': 'error';
|
|
338
|
+
'@atlaskit/platform/expand-border-shorthand': 'error';
|
|
339
|
+
'@atlaskit/platform/expand-background-shorthand': 'error';
|
|
340
|
+
'@atlaskit/platform/expand-spacing-shorthand': 'error';
|
|
341
|
+
'@atlaskit/platform/no-css-prop-in-object-spread': 'error';
|
|
342
|
+
'@compiled/jsx-pragma': [
|
|
343
|
+
'error',
|
|
344
|
+
{
|
|
345
|
+
importSources: string[];
|
|
346
|
+
onlyRunIfImportingCompiled: boolean;
|
|
347
|
+
runtime: string;
|
|
348
|
+
}
|
|
349
|
+
];
|
|
311
350
|
};
|
|
312
351
|
};
|
|
313
352
|
};
|