@atlaskit/eslint-plugin-platform 2.1.2 → 2.2.1
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 +105 -63
- package/dist/cjs/rules/compiled/expand-spacing-shorthand/index.js +85 -40
- package/dist/es2019/index.js +116 -74
- package/dist/es2019/rules/compiled/expand-spacing-shorthand/index.js +69 -33
- package/dist/esm/index.js +106 -64
- package/dist/esm/rules/compiled/expand-spacing-shorthand/index.js +85 -40
- package/dist/types/index.d.ts +233 -35
- package/dist/types-ts4.5/index.d.ts +276 -42
- package/package.json +1 -1
- package/src/index.tsx +120 -79
- package/src/rules/compiled/expand-spacing-shorthand/__tests__/rule.test.ts +31 -1
- package/src/rules/compiled/expand-spacing-shorthand/index.ts +56 -28
package/dist/types/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Linter } from 'eslint';
|
|
2
|
-
|
|
1
|
+
import type { ESLint, Linter } from 'eslint';
|
|
2
|
+
declare const rules: {
|
|
3
3
|
'ensure-feature-flag-registration': import("eslint").Rule.RuleModule;
|
|
4
4
|
'ensure-feature-flag-prefix': import("eslint").Rule.RuleModule;
|
|
5
5
|
'ensure-test-runner-arguments': import("eslint").Rule.RuleModule;
|
|
@@ -27,57 +27,255 @@ export declare const rules: {
|
|
|
27
27
|
'use-entrypoints-in-examples': import("eslint").Rule.RuleModule;
|
|
28
28
|
'use-recommended-utils': import("eslint").Rule.RuleModule;
|
|
29
29
|
};
|
|
30
|
-
|
|
30
|
+
declare const plugin: {
|
|
31
|
+
meta: {
|
|
32
|
+
name: string;
|
|
33
|
+
version: string;
|
|
34
|
+
};
|
|
35
|
+
rules: {
|
|
36
|
+
'ensure-feature-flag-registration': import("eslint").Rule.RuleModule;
|
|
37
|
+
'ensure-feature-flag-prefix': import("eslint").Rule.RuleModule;
|
|
38
|
+
'ensure-test-runner-arguments': import("eslint").Rule.RuleModule;
|
|
39
|
+
'ensure-test-runner-nested-count': import("eslint").Rule.RuleModule;
|
|
40
|
+
'ensure-atlassian-team': import("eslint").Rule.RuleModule;
|
|
41
|
+
'ensure-critical-dependency-resolutions': import("eslint").Rule.RuleModule;
|
|
42
|
+
'ensure-valid-platform-yarn-protocol-usage': import("eslint").Rule.RuleModule;
|
|
43
|
+
'ensure-valid-bin-values': import("eslint").Rule.RuleModule;
|
|
44
|
+
'expand-border-shorthand': import("eslint").Rule.RuleModule;
|
|
45
|
+
'expand-background-shorthand': import("eslint").Rule.RuleModule;
|
|
46
|
+
'expand-spacing-shorthand': import("eslint").Rule.RuleModule;
|
|
47
|
+
'no-duplicate-dependencies': import("eslint").Rule.RuleModule;
|
|
48
|
+
'no-invalid-feature-flag-usage': import("eslint").Rule.RuleModule;
|
|
49
|
+
'no-pre-post-install-scripts': import("eslint").Rule.RuleModule;
|
|
50
|
+
'no-invalid-storybook-decorator-usage': import("eslint").Rule.RuleModule;
|
|
51
|
+
'ensure-publish-valid': import("eslint").Rule.RuleModule;
|
|
52
|
+
'ensure-native-and-af-exports-synced': import("eslint").Rule.RuleModule;
|
|
53
|
+
'no-module-level-eval': import("eslint").Rule.RuleModule;
|
|
54
|
+
'no-module-level-eval-nav4': import("eslint").Rule.RuleModule;
|
|
55
|
+
'static-feature-flags': import("eslint").Rule.RuleModule;
|
|
56
|
+
'no-preconditioning': import("eslint").Rule.RuleModule;
|
|
57
|
+
'inline-usage': import("eslint").Rule.RuleModule;
|
|
58
|
+
'prefer-fg': import("eslint").Rule.RuleModule;
|
|
59
|
+
'no-alias': import("eslint").Rule.RuleModule;
|
|
60
|
+
'use-entrypoints-in-examples': import("eslint").Rule.RuleModule;
|
|
61
|
+
'use-recommended-utils': import("eslint").Rule.RuleModule;
|
|
62
|
+
};
|
|
63
|
+
configs: {
|
|
64
|
+
recommended: {
|
|
65
|
+
plugins: string[];
|
|
66
|
+
rules: {
|
|
67
|
+
'@atlaskit/platform/no-module-level-eval': "error";
|
|
68
|
+
'@atlaskit/platform/static-feature-flags': "error";
|
|
69
|
+
'@atlaskit/platform/no-preconditioning': "error";
|
|
70
|
+
'@atlaskit/platform/inline-usage': "error";
|
|
71
|
+
'@atlaskit/platform/prefer-fg': "error";
|
|
72
|
+
'@atlaskit/platform/no-alias': "error";
|
|
73
|
+
'@atlaskit/platform/ensure-feature-flag-registration': "error";
|
|
74
|
+
'@atlaskit/platform/ensure-feature-flag-prefix': ["warn", {
|
|
75
|
+
allowedPrefixes: string[];
|
|
76
|
+
}];
|
|
77
|
+
'@atlaskit/platform/ensure-test-runner-arguments': "error";
|
|
78
|
+
'@atlaskit/platform/ensure-test-runner-nested-count': "warn";
|
|
79
|
+
'@atlaskit/platform/no-invalid-feature-flag-usage': "error";
|
|
80
|
+
'@atlaskit/platform/no-invalid-storybook-decorator-usage': "error";
|
|
81
|
+
'@atlaskit/platform/ensure-atlassian-team': "error";
|
|
82
|
+
'@atlaskit/platform/no-module-level-eval-nav4': "error";
|
|
83
|
+
'@atlaskit/platform/expand-border-shorthand': "error";
|
|
84
|
+
'@atlaskit/platform/expand-background-shorthand': "error";
|
|
85
|
+
'@atlaskit/platform/expand-spacing-shorthand': "off";
|
|
86
|
+
'@compiled/jsx-pragma': ["error", {
|
|
87
|
+
importSources: string[];
|
|
88
|
+
onlyRunIfImportingCompiled: boolean;
|
|
89
|
+
runtime: string;
|
|
90
|
+
}];
|
|
91
|
+
};
|
|
92
|
+
};
|
|
93
|
+
'recommended/flat': {
|
|
94
|
+
plugins: {
|
|
95
|
+
readonly '@atlaskit/platform': ESLint.Plugin;
|
|
96
|
+
'@compiled': ESLint.Plugin;
|
|
97
|
+
};
|
|
98
|
+
rules: {
|
|
99
|
+
'@atlaskit/platform/no-module-level-eval': "error";
|
|
100
|
+
'@atlaskit/platform/static-feature-flags': "error";
|
|
101
|
+
'@atlaskit/platform/no-preconditioning': "error";
|
|
102
|
+
'@atlaskit/platform/inline-usage': "error";
|
|
103
|
+
'@atlaskit/platform/prefer-fg': "error";
|
|
104
|
+
'@atlaskit/platform/no-alias': "error";
|
|
105
|
+
'@atlaskit/platform/ensure-feature-flag-registration': "error";
|
|
106
|
+
'@atlaskit/platform/ensure-feature-flag-prefix': ["warn", {
|
|
107
|
+
allowedPrefixes: string[];
|
|
108
|
+
}];
|
|
109
|
+
'@atlaskit/platform/ensure-test-runner-arguments': "error";
|
|
110
|
+
'@atlaskit/platform/ensure-test-runner-nested-count': "warn";
|
|
111
|
+
'@atlaskit/platform/no-invalid-feature-flag-usage': "error";
|
|
112
|
+
'@atlaskit/platform/no-invalid-storybook-decorator-usage': "error";
|
|
113
|
+
'@atlaskit/platform/ensure-atlassian-team': "error";
|
|
114
|
+
'@atlaskit/platform/no-module-level-eval-nav4': "error";
|
|
115
|
+
'@atlaskit/platform/expand-border-shorthand': "error";
|
|
116
|
+
'@atlaskit/platform/expand-background-shorthand': "error";
|
|
117
|
+
'@atlaskit/platform/expand-spacing-shorthand': "off";
|
|
118
|
+
'@compiled/jsx-pragma': ["error", {
|
|
119
|
+
importSources: string[];
|
|
120
|
+
onlyRunIfImportingCompiled: boolean;
|
|
121
|
+
runtime: string;
|
|
122
|
+
}];
|
|
123
|
+
};
|
|
124
|
+
};
|
|
125
|
+
jira: {
|
|
126
|
+
plugins: string[];
|
|
127
|
+
rules: {
|
|
128
|
+
'@atlaskit/platform/ensure-test-runner-arguments': "error";
|
|
129
|
+
'@atlaskit/platform/ensure-test-runner-nested-count': "warn";
|
|
130
|
+
'@atlaskit/platform/no-invalid-feature-flag-usage': "error";
|
|
131
|
+
'@atlaskit/platform/no-invalid-storybook-decorator-usage': "error";
|
|
132
|
+
'@atlaskit/platform/ensure-atlassian-team': "error";
|
|
133
|
+
'@atlaskit/platform/no-module-level-eval-nav4': "error";
|
|
134
|
+
'@atlaskit/platform/expand-border-shorthand': "error";
|
|
135
|
+
'@atlaskit/platform/expand-background-shorthand': "error";
|
|
136
|
+
'@atlaskit/platform/expand-spacing-shorthand': "off";
|
|
137
|
+
'@compiled/jsx-pragma': ["error", {
|
|
138
|
+
importSources: string[];
|
|
139
|
+
onlyRunIfImportingCompiled: boolean;
|
|
140
|
+
runtime: string;
|
|
141
|
+
}];
|
|
142
|
+
};
|
|
143
|
+
};
|
|
144
|
+
'jira/flat': {
|
|
145
|
+
plugins: {
|
|
146
|
+
readonly '@atlaskit/platform': ESLint.Plugin;
|
|
147
|
+
'@compiled': ESLint.Plugin;
|
|
148
|
+
};
|
|
149
|
+
rules: {
|
|
150
|
+
'@atlaskit/platform/ensure-test-runner-arguments': "error";
|
|
151
|
+
'@atlaskit/platform/ensure-test-runner-nested-count': "warn";
|
|
152
|
+
'@atlaskit/platform/no-invalid-feature-flag-usage': "error";
|
|
153
|
+
'@atlaskit/platform/no-invalid-storybook-decorator-usage': "error";
|
|
154
|
+
'@atlaskit/platform/ensure-atlassian-team': "error";
|
|
155
|
+
'@atlaskit/platform/no-module-level-eval-nav4': "error";
|
|
156
|
+
'@atlaskit/platform/expand-border-shorthand': "error";
|
|
157
|
+
'@atlaskit/platform/expand-background-shorthand': "error";
|
|
158
|
+
'@atlaskit/platform/expand-spacing-shorthand': "off";
|
|
159
|
+
'@compiled/jsx-pragma': ["error", {
|
|
160
|
+
importSources: string[];
|
|
161
|
+
onlyRunIfImportingCompiled: boolean;
|
|
162
|
+
runtime: string;
|
|
163
|
+
}];
|
|
164
|
+
};
|
|
165
|
+
};
|
|
166
|
+
};
|
|
167
|
+
processors: {
|
|
168
|
+
'package-json-processor': Linter.Processor<string | Linter.ProcessorFile>;
|
|
169
|
+
'package-json-processor-for-flat-config': Linter.Processor<string | Linter.ProcessorFile>;
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
declare const configs: {
|
|
31
173
|
recommended: {
|
|
32
174
|
plugins: string[];
|
|
33
175
|
rules: {
|
|
34
|
-
'@atlaskit/platform/no-module-level-eval':
|
|
35
|
-
'@atlaskit/platform/static-feature-flags':
|
|
36
|
-
'@atlaskit/platform/no-preconditioning':
|
|
37
|
-
'@atlaskit/platform/inline-usage':
|
|
38
|
-
'@atlaskit/platform/prefer-fg':
|
|
39
|
-
'@atlaskit/platform/no-alias':
|
|
40
|
-
'@atlaskit/platform/ensure-feature-flag-registration':
|
|
41
|
-
'@atlaskit/platform/ensure-feature-flag-prefix':
|
|
176
|
+
'@atlaskit/platform/no-module-level-eval': "error";
|
|
177
|
+
'@atlaskit/platform/static-feature-flags': "error";
|
|
178
|
+
'@atlaskit/platform/no-preconditioning': "error";
|
|
179
|
+
'@atlaskit/platform/inline-usage': "error";
|
|
180
|
+
'@atlaskit/platform/prefer-fg': "error";
|
|
181
|
+
'@atlaskit/platform/no-alias': "error";
|
|
182
|
+
'@atlaskit/platform/ensure-feature-flag-registration': "error";
|
|
183
|
+
'@atlaskit/platform/ensure-feature-flag-prefix': ["warn", {
|
|
184
|
+
allowedPrefixes: string[];
|
|
185
|
+
}];
|
|
186
|
+
'@atlaskit/platform/ensure-test-runner-arguments': "error";
|
|
187
|
+
'@atlaskit/platform/ensure-test-runner-nested-count': "warn";
|
|
188
|
+
'@atlaskit/platform/no-invalid-feature-flag-usage': "error";
|
|
189
|
+
'@atlaskit/platform/no-invalid-storybook-decorator-usage': "error";
|
|
190
|
+
'@atlaskit/platform/ensure-atlassian-team': "error";
|
|
191
|
+
'@atlaskit/platform/no-module-level-eval-nav4': "error";
|
|
192
|
+
'@atlaskit/platform/expand-border-shorthand': "error";
|
|
193
|
+
'@atlaskit/platform/expand-background-shorthand': "error";
|
|
194
|
+
'@atlaskit/platform/expand-spacing-shorthand': "off";
|
|
195
|
+
'@compiled/jsx-pragma': ["error", {
|
|
196
|
+
importSources: string[];
|
|
197
|
+
onlyRunIfImportingCompiled: boolean;
|
|
198
|
+
runtime: string;
|
|
199
|
+
}];
|
|
200
|
+
};
|
|
201
|
+
};
|
|
202
|
+
'recommended/flat': {
|
|
203
|
+
plugins: {
|
|
204
|
+
readonly '@atlaskit/platform': ESLint.Plugin;
|
|
205
|
+
'@compiled': ESLint.Plugin;
|
|
206
|
+
};
|
|
207
|
+
rules: {
|
|
208
|
+
'@atlaskit/platform/no-module-level-eval': "error";
|
|
209
|
+
'@atlaskit/platform/static-feature-flags': "error";
|
|
210
|
+
'@atlaskit/platform/no-preconditioning': "error";
|
|
211
|
+
'@atlaskit/platform/inline-usage': "error";
|
|
212
|
+
'@atlaskit/platform/prefer-fg': "error";
|
|
213
|
+
'@atlaskit/platform/no-alias': "error";
|
|
214
|
+
'@atlaskit/platform/ensure-feature-flag-registration': "error";
|
|
215
|
+
'@atlaskit/platform/ensure-feature-flag-prefix': ["warn", {
|
|
42
216
|
allowedPrefixes: string[];
|
|
43
|
-
}
|
|
44
|
-
'@atlaskit/platform/ensure-test-runner-arguments':
|
|
45
|
-
'@atlaskit/platform/ensure-test-runner-nested-count':
|
|
46
|
-
'@atlaskit/platform/no-invalid-feature-flag-usage':
|
|
47
|
-
'@atlaskit/platform/no-invalid-storybook-decorator-usage':
|
|
48
|
-
'@atlaskit/platform/ensure-atlassian-team':
|
|
49
|
-
'@atlaskit/platform/no-module-level-eval-nav4':
|
|
50
|
-
'@atlaskit/platform/expand-border-shorthand':
|
|
51
|
-
'@atlaskit/platform/expand-background-shorthand':
|
|
52
|
-
'@atlaskit/platform/expand-spacing-shorthand':
|
|
53
|
-
'@compiled/jsx-pragma':
|
|
217
|
+
}];
|
|
218
|
+
'@atlaskit/platform/ensure-test-runner-arguments': "error";
|
|
219
|
+
'@atlaskit/platform/ensure-test-runner-nested-count': "warn";
|
|
220
|
+
'@atlaskit/platform/no-invalid-feature-flag-usage': "error";
|
|
221
|
+
'@atlaskit/platform/no-invalid-storybook-decorator-usage': "error";
|
|
222
|
+
'@atlaskit/platform/ensure-atlassian-team': "error";
|
|
223
|
+
'@atlaskit/platform/no-module-level-eval-nav4': "error";
|
|
224
|
+
'@atlaskit/platform/expand-border-shorthand': "error";
|
|
225
|
+
'@atlaskit/platform/expand-background-shorthand': "error";
|
|
226
|
+
'@atlaskit/platform/expand-spacing-shorthand': "off";
|
|
227
|
+
'@compiled/jsx-pragma': ["error", {
|
|
54
228
|
importSources: string[];
|
|
55
229
|
onlyRunIfImportingCompiled: boolean;
|
|
56
230
|
runtime: string;
|
|
57
|
-
}
|
|
231
|
+
}];
|
|
58
232
|
};
|
|
59
233
|
};
|
|
60
234
|
jira: {
|
|
61
235
|
plugins: string[];
|
|
62
236
|
rules: {
|
|
63
|
-
'@atlaskit/platform/ensure-test-runner-arguments':
|
|
64
|
-
'@atlaskit/platform/ensure-test-runner-nested-count':
|
|
65
|
-
'@atlaskit/platform/no-invalid-feature-flag-usage':
|
|
66
|
-
'@atlaskit/platform/no-invalid-storybook-decorator-usage':
|
|
67
|
-
'@atlaskit/platform/ensure-atlassian-team':
|
|
68
|
-
'@atlaskit/platform/no-module-level-eval-nav4':
|
|
69
|
-
'@atlaskit/platform/expand-border-shorthand':
|
|
70
|
-
'@atlaskit/platform/expand-background-shorthand':
|
|
71
|
-
'@atlaskit/platform/expand-spacing-shorthand':
|
|
72
|
-
'@compiled/jsx-pragma':
|
|
237
|
+
'@atlaskit/platform/ensure-test-runner-arguments': "error";
|
|
238
|
+
'@atlaskit/platform/ensure-test-runner-nested-count': "warn";
|
|
239
|
+
'@atlaskit/platform/no-invalid-feature-flag-usage': "error";
|
|
240
|
+
'@atlaskit/platform/no-invalid-storybook-decorator-usage': "error";
|
|
241
|
+
'@atlaskit/platform/ensure-atlassian-team': "error";
|
|
242
|
+
'@atlaskit/platform/no-module-level-eval-nav4': "error";
|
|
243
|
+
'@atlaskit/platform/expand-border-shorthand': "error";
|
|
244
|
+
'@atlaskit/platform/expand-background-shorthand': "error";
|
|
245
|
+
'@atlaskit/platform/expand-spacing-shorthand': "off";
|
|
246
|
+
'@compiled/jsx-pragma': ["error", {
|
|
247
|
+
importSources: string[];
|
|
248
|
+
onlyRunIfImportingCompiled: boolean;
|
|
249
|
+
runtime: string;
|
|
250
|
+
}];
|
|
251
|
+
};
|
|
252
|
+
};
|
|
253
|
+
'jira/flat': {
|
|
254
|
+
plugins: {
|
|
255
|
+
readonly '@atlaskit/platform': ESLint.Plugin;
|
|
256
|
+
'@compiled': ESLint.Plugin;
|
|
257
|
+
};
|
|
258
|
+
rules: {
|
|
259
|
+
'@atlaskit/platform/ensure-test-runner-arguments': "error";
|
|
260
|
+
'@atlaskit/platform/ensure-test-runner-nested-count': "warn";
|
|
261
|
+
'@atlaskit/platform/no-invalid-feature-flag-usage': "error";
|
|
262
|
+
'@atlaskit/platform/no-invalid-storybook-decorator-usage': "error";
|
|
263
|
+
'@atlaskit/platform/ensure-atlassian-team': "error";
|
|
264
|
+
'@atlaskit/platform/no-module-level-eval-nav4': "error";
|
|
265
|
+
'@atlaskit/platform/expand-border-shorthand': "error";
|
|
266
|
+
'@atlaskit/platform/expand-background-shorthand': "error";
|
|
267
|
+
'@atlaskit/platform/expand-spacing-shorthand': "off";
|
|
268
|
+
'@compiled/jsx-pragma': ["error", {
|
|
73
269
|
importSources: string[];
|
|
74
270
|
onlyRunIfImportingCompiled: boolean;
|
|
75
271
|
runtime: string;
|
|
76
|
-
}
|
|
272
|
+
}];
|
|
77
273
|
};
|
|
78
274
|
};
|
|
79
275
|
};
|
|
80
|
-
|
|
276
|
+
declare const processors: {
|
|
81
277
|
'package-json-processor': Linter.Processor<string | Linter.ProcessorFile>;
|
|
82
278
|
'package-json-processor-for-flat-config': Linter.Processor<string | Linter.ProcessorFile>;
|
|
83
279
|
};
|
|
280
|
+
export { configs, plugin, processors, rules };
|
|
281
|
+
export default plugin;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Linter } from 'eslint';
|
|
2
|
-
|
|
1
|
+
import type { ESLint, Linter } from 'eslint';
|
|
2
|
+
declare const rules: {
|
|
3
3
|
'ensure-feature-flag-registration': import("eslint").Rule.RuleModule;
|
|
4
4
|
'ensure-feature-flag-prefix': import("eslint").Rule.RuleModule;
|
|
5
5
|
'ensure-test-runner-arguments': import("eslint").Rule.RuleModule;
|
|
@@ -27,57 +27,291 @@ export declare const rules: {
|
|
|
27
27
|
'use-entrypoints-in-examples': import("eslint").Rule.RuleModule;
|
|
28
28
|
'use-recommended-utils': import("eslint").Rule.RuleModule;
|
|
29
29
|
};
|
|
30
|
-
|
|
30
|
+
declare const plugin: {
|
|
31
|
+
meta: {
|
|
32
|
+
name: string;
|
|
33
|
+
version: string;
|
|
34
|
+
};
|
|
35
|
+
rules: {
|
|
36
|
+
'ensure-feature-flag-registration': import("eslint").Rule.RuleModule;
|
|
37
|
+
'ensure-feature-flag-prefix': import("eslint").Rule.RuleModule;
|
|
38
|
+
'ensure-test-runner-arguments': import("eslint").Rule.RuleModule;
|
|
39
|
+
'ensure-test-runner-nested-count': import("eslint").Rule.RuleModule;
|
|
40
|
+
'ensure-atlassian-team': import("eslint").Rule.RuleModule;
|
|
41
|
+
'ensure-critical-dependency-resolutions': import("eslint").Rule.RuleModule;
|
|
42
|
+
'ensure-valid-platform-yarn-protocol-usage': import("eslint").Rule.RuleModule;
|
|
43
|
+
'ensure-valid-bin-values': import("eslint").Rule.RuleModule;
|
|
44
|
+
'expand-border-shorthand': import("eslint").Rule.RuleModule;
|
|
45
|
+
'expand-background-shorthand': import("eslint").Rule.RuleModule;
|
|
46
|
+
'expand-spacing-shorthand': import("eslint").Rule.RuleModule;
|
|
47
|
+
'no-duplicate-dependencies': import("eslint").Rule.RuleModule;
|
|
48
|
+
'no-invalid-feature-flag-usage': import("eslint").Rule.RuleModule;
|
|
49
|
+
'no-pre-post-install-scripts': import("eslint").Rule.RuleModule;
|
|
50
|
+
'no-invalid-storybook-decorator-usage': import("eslint").Rule.RuleModule;
|
|
51
|
+
'ensure-publish-valid': import("eslint").Rule.RuleModule;
|
|
52
|
+
'ensure-native-and-af-exports-synced': import("eslint").Rule.RuleModule;
|
|
53
|
+
'no-module-level-eval': import("eslint").Rule.RuleModule;
|
|
54
|
+
'no-module-level-eval-nav4': import("eslint").Rule.RuleModule;
|
|
55
|
+
'static-feature-flags': import("eslint").Rule.RuleModule;
|
|
56
|
+
'no-preconditioning': import("eslint").Rule.RuleModule;
|
|
57
|
+
'inline-usage': import("eslint").Rule.RuleModule;
|
|
58
|
+
'prefer-fg': import("eslint").Rule.RuleModule;
|
|
59
|
+
'no-alias': import("eslint").Rule.RuleModule;
|
|
60
|
+
'use-entrypoints-in-examples': import("eslint").Rule.RuleModule;
|
|
61
|
+
'use-recommended-utils': import("eslint").Rule.RuleModule;
|
|
62
|
+
};
|
|
63
|
+
configs: {
|
|
64
|
+
recommended: {
|
|
65
|
+
plugins: string[];
|
|
66
|
+
rules: {
|
|
67
|
+
'@atlaskit/platform/no-module-level-eval': "error";
|
|
68
|
+
'@atlaskit/platform/static-feature-flags': "error";
|
|
69
|
+
'@atlaskit/platform/no-preconditioning': "error";
|
|
70
|
+
'@atlaskit/platform/inline-usage': "error";
|
|
71
|
+
'@atlaskit/platform/prefer-fg': "error";
|
|
72
|
+
'@atlaskit/platform/no-alias': "error";
|
|
73
|
+
'@atlaskit/platform/ensure-feature-flag-registration': "error";
|
|
74
|
+
'@atlaskit/platform/ensure-feature-flag-prefix': [
|
|
75
|
+
"warn",
|
|
76
|
+
{
|
|
77
|
+
allowedPrefixes: string[];
|
|
78
|
+
}
|
|
79
|
+
];
|
|
80
|
+
'@atlaskit/platform/ensure-test-runner-arguments': "error";
|
|
81
|
+
'@atlaskit/platform/ensure-test-runner-nested-count': "warn";
|
|
82
|
+
'@atlaskit/platform/no-invalid-feature-flag-usage': "error";
|
|
83
|
+
'@atlaskit/platform/no-invalid-storybook-decorator-usage': "error";
|
|
84
|
+
'@atlaskit/platform/ensure-atlassian-team': "error";
|
|
85
|
+
'@atlaskit/platform/no-module-level-eval-nav4': "error";
|
|
86
|
+
'@atlaskit/platform/expand-border-shorthand': "error";
|
|
87
|
+
'@atlaskit/platform/expand-background-shorthand': "error";
|
|
88
|
+
'@atlaskit/platform/expand-spacing-shorthand': "off";
|
|
89
|
+
'@compiled/jsx-pragma': [
|
|
90
|
+
"error",
|
|
91
|
+
{
|
|
92
|
+
importSources: string[];
|
|
93
|
+
onlyRunIfImportingCompiled: boolean;
|
|
94
|
+
runtime: string;
|
|
95
|
+
}
|
|
96
|
+
];
|
|
97
|
+
};
|
|
98
|
+
};
|
|
99
|
+
'recommended/flat': {
|
|
100
|
+
plugins: {
|
|
101
|
+
readonly '@atlaskit/platform': ESLint.Plugin;
|
|
102
|
+
'@compiled': ESLint.Plugin;
|
|
103
|
+
};
|
|
104
|
+
rules: {
|
|
105
|
+
'@atlaskit/platform/no-module-level-eval': "error";
|
|
106
|
+
'@atlaskit/platform/static-feature-flags': "error";
|
|
107
|
+
'@atlaskit/platform/no-preconditioning': "error";
|
|
108
|
+
'@atlaskit/platform/inline-usage': "error";
|
|
109
|
+
'@atlaskit/platform/prefer-fg': "error";
|
|
110
|
+
'@atlaskit/platform/no-alias': "error";
|
|
111
|
+
'@atlaskit/platform/ensure-feature-flag-registration': "error";
|
|
112
|
+
'@atlaskit/platform/ensure-feature-flag-prefix': [
|
|
113
|
+
"warn",
|
|
114
|
+
{
|
|
115
|
+
allowedPrefixes: string[];
|
|
116
|
+
}
|
|
117
|
+
];
|
|
118
|
+
'@atlaskit/platform/ensure-test-runner-arguments': "error";
|
|
119
|
+
'@atlaskit/platform/ensure-test-runner-nested-count': "warn";
|
|
120
|
+
'@atlaskit/platform/no-invalid-feature-flag-usage': "error";
|
|
121
|
+
'@atlaskit/platform/no-invalid-storybook-decorator-usage': "error";
|
|
122
|
+
'@atlaskit/platform/ensure-atlassian-team': "error";
|
|
123
|
+
'@atlaskit/platform/no-module-level-eval-nav4': "error";
|
|
124
|
+
'@atlaskit/platform/expand-border-shorthand': "error";
|
|
125
|
+
'@atlaskit/platform/expand-background-shorthand': "error";
|
|
126
|
+
'@atlaskit/platform/expand-spacing-shorthand': "off";
|
|
127
|
+
'@compiled/jsx-pragma': [
|
|
128
|
+
"error",
|
|
129
|
+
{
|
|
130
|
+
importSources: string[];
|
|
131
|
+
onlyRunIfImportingCompiled: boolean;
|
|
132
|
+
runtime: string;
|
|
133
|
+
}
|
|
134
|
+
];
|
|
135
|
+
};
|
|
136
|
+
};
|
|
137
|
+
jira: {
|
|
138
|
+
plugins: string[];
|
|
139
|
+
rules: {
|
|
140
|
+
'@atlaskit/platform/ensure-test-runner-arguments': "error";
|
|
141
|
+
'@atlaskit/platform/ensure-test-runner-nested-count': "warn";
|
|
142
|
+
'@atlaskit/platform/no-invalid-feature-flag-usage': "error";
|
|
143
|
+
'@atlaskit/platform/no-invalid-storybook-decorator-usage': "error";
|
|
144
|
+
'@atlaskit/platform/ensure-atlassian-team': "error";
|
|
145
|
+
'@atlaskit/platform/no-module-level-eval-nav4': "error";
|
|
146
|
+
'@atlaskit/platform/expand-border-shorthand': "error";
|
|
147
|
+
'@atlaskit/platform/expand-background-shorthand': "error";
|
|
148
|
+
'@atlaskit/platform/expand-spacing-shorthand': "off";
|
|
149
|
+
'@compiled/jsx-pragma': [
|
|
150
|
+
"error",
|
|
151
|
+
{
|
|
152
|
+
importSources: string[];
|
|
153
|
+
onlyRunIfImportingCompiled: boolean;
|
|
154
|
+
runtime: string;
|
|
155
|
+
}
|
|
156
|
+
];
|
|
157
|
+
};
|
|
158
|
+
};
|
|
159
|
+
'jira/flat': {
|
|
160
|
+
plugins: {
|
|
161
|
+
readonly '@atlaskit/platform': ESLint.Plugin;
|
|
162
|
+
'@compiled': ESLint.Plugin;
|
|
163
|
+
};
|
|
164
|
+
rules: {
|
|
165
|
+
'@atlaskit/platform/ensure-test-runner-arguments': "error";
|
|
166
|
+
'@atlaskit/platform/ensure-test-runner-nested-count': "warn";
|
|
167
|
+
'@atlaskit/platform/no-invalid-feature-flag-usage': "error";
|
|
168
|
+
'@atlaskit/platform/no-invalid-storybook-decorator-usage': "error";
|
|
169
|
+
'@atlaskit/platform/ensure-atlassian-team': "error";
|
|
170
|
+
'@atlaskit/platform/no-module-level-eval-nav4': "error";
|
|
171
|
+
'@atlaskit/platform/expand-border-shorthand': "error";
|
|
172
|
+
'@atlaskit/platform/expand-background-shorthand': "error";
|
|
173
|
+
'@atlaskit/platform/expand-spacing-shorthand': "off";
|
|
174
|
+
'@compiled/jsx-pragma': [
|
|
175
|
+
"error",
|
|
176
|
+
{
|
|
177
|
+
importSources: string[];
|
|
178
|
+
onlyRunIfImportingCompiled: boolean;
|
|
179
|
+
runtime: string;
|
|
180
|
+
}
|
|
181
|
+
];
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
processors: {
|
|
186
|
+
'package-json-processor': Linter.Processor<string | Linter.ProcessorFile>;
|
|
187
|
+
'package-json-processor-for-flat-config': Linter.Processor<string | Linter.ProcessorFile>;
|
|
188
|
+
};
|
|
189
|
+
};
|
|
190
|
+
declare const configs: {
|
|
31
191
|
recommended: {
|
|
32
192
|
plugins: string[];
|
|
33
193
|
rules: {
|
|
34
|
-
'@atlaskit/platform/no-module-level-eval':
|
|
35
|
-
'@atlaskit/platform/static-feature-flags':
|
|
36
|
-
'@atlaskit/platform/no-preconditioning':
|
|
37
|
-
'@atlaskit/platform/inline-usage':
|
|
38
|
-
'@atlaskit/platform/prefer-fg':
|
|
39
|
-
'@atlaskit/platform/no-alias':
|
|
40
|
-
'@atlaskit/platform/ensure-feature-flag-registration':
|
|
41
|
-
'@atlaskit/platform/ensure-feature-flag-prefix':
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
'@atlaskit/platform/
|
|
48
|
-
'@atlaskit/platform/ensure-
|
|
49
|
-
'@atlaskit/platform/no-
|
|
50
|
-
'@atlaskit/platform/
|
|
51
|
-
'@atlaskit/platform/
|
|
52
|
-
'@atlaskit/platform/
|
|
53
|
-
'@
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
194
|
+
'@atlaskit/platform/no-module-level-eval': "error";
|
|
195
|
+
'@atlaskit/platform/static-feature-flags': "error";
|
|
196
|
+
'@atlaskit/platform/no-preconditioning': "error";
|
|
197
|
+
'@atlaskit/platform/inline-usage': "error";
|
|
198
|
+
'@atlaskit/platform/prefer-fg': "error";
|
|
199
|
+
'@atlaskit/platform/no-alias': "error";
|
|
200
|
+
'@atlaskit/platform/ensure-feature-flag-registration': "error";
|
|
201
|
+
'@atlaskit/platform/ensure-feature-flag-prefix': [
|
|
202
|
+
"warn",
|
|
203
|
+
{
|
|
204
|
+
allowedPrefixes: string[];
|
|
205
|
+
}
|
|
206
|
+
];
|
|
207
|
+
'@atlaskit/platform/ensure-test-runner-arguments': "error";
|
|
208
|
+
'@atlaskit/platform/ensure-test-runner-nested-count': "warn";
|
|
209
|
+
'@atlaskit/platform/no-invalid-feature-flag-usage': "error";
|
|
210
|
+
'@atlaskit/platform/no-invalid-storybook-decorator-usage': "error";
|
|
211
|
+
'@atlaskit/platform/ensure-atlassian-team': "error";
|
|
212
|
+
'@atlaskit/platform/no-module-level-eval-nav4': "error";
|
|
213
|
+
'@atlaskit/platform/expand-border-shorthand': "error";
|
|
214
|
+
'@atlaskit/platform/expand-background-shorthand': "error";
|
|
215
|
+
'@atlaskit/platform/expand-spacing-shorthand': "off";
|
|
216
|
+
'@compiled/jsx-pragma': [
|
|
217
|
+
"error",
|
|
218
|
+
{
|
|
219
|
+
importSources: string[];
|
|
220
|
+
onlyRunIfImportingCompiled: boolean;
|
|
221
|
+
runtime: string;
|
|
222
|
+
}
|
|
223
|
+
];
|
|
224
|
+
};
|
|
225
|
+
};
|
|
226
|
+
'recommended/flat': {
|
|
227
|
+
plugins: {
|
|
228
|
+
readonly '@atlaskit/platform': ESLint.Plugin;
|
|
229
|
+
'@compiled': ESLint.Plugin;
|
|
230
|
+
};
|
|
231
|
+
rules: {
|
|
232
|
+
'@atlaskit/platform/no-module-level-eval': "error";
|
|
233
|
+
'@atlaskit/platform/static-feature-flags': "error";
|
|
234
|
+
'@atlaskit/platform/no-preconditioning': "error";
|
|
235
|
+
'@atlaskit/platform/inline-usage': "error";
|
|
236
|
+
'@atlaskit/platform/prefer-fg': "error";
|
|
237
|
+
'@atlaskit/platform/no-alias': "error";
|
|
238
|
+
'@atlaskit/platform/ensure-feature-flag-registration': "error";
|
|
239
|
+
'@atlaskit/platform/ensure-feature-flag-prefix': [
|
|
240
|
+
"warn",
|
|
241
|
+
{
|
|
242
|
+
allowedPrefixes: string[];
|
|
243
|
+
}
|
|
244
|
+
];
|
|
245
|
+
'@atlaskit/platform/ensure-test-runner-arguments': "error";
|
|
246
|
+
'@atlaskit/platform/ensure-test-runner-nested-count': "warn";
|
|
247
|
+
'@atlaskit/platform/no-invalid-feature-flag-usage': "error";
|
|
248
|
+
'@atlaskit/platform/no-invalid-storybook-decorator-usage': "error";
|
|
249
|
+
'@atlaskit/platform/ensure-atlassian-team': "error";
|
|
250
|
+
'@atlaskit/platform/no-module-level-eval-nav4': "error";
|
|
251
|
+
'@atlaskit/platform/expand-border-shorthand': "error";
|
|
252
|
+
'@atlaskit/platform/expand-background-shorthand': "error";
|
|
253
|
+
'@atlaskit/platform/expand-spacing-shorthand': "off";
|
|
254
|
+
'@compiled/jsx-pragma': [
|
|
255
|
+
"error",
|
|
256
|
+
{
|
|
257
|
+
importSources: string[];
|
|
258
|
+
onlyRunIfImportingCompiled: boolean;
|
|
259
|
+
runtime: string;
|
|
260
|
+
}
|
|
261
|
+
];
|
|
58
262
|
};
|
|
59
263
|
};
|
|
60
264
|
jira: {
|
|
61
265
|
plugins: string[];
|
|
62
266
|
rules: {
|
|
63
|
-
'@atlaskit/platform/ensure-test-runner-arguments':
|
|
64
|
-
'@atlaskit/platform/ensure-test-runner-nested-count':
|
|
65
|
-
'@atlaskit/platform/no-invalid-feature-flag-usage':
|
|
66
|
-
'@atlaskit/platform/no-invalid-storybook-decorator-usage':
|
|
67
|
-
'@atlaskit/platform/ensure-atlassian-team':
|
|
68
|
-
'@atlaskit/platform/no-module-level-eval-nav4':
|
|
69
|
-
'@atlaskit/platform/expand-border-shorthand':
|
|
70
|
-
'@atlaskit/platform/expand-background-shorthand':
|
|
71
|
-
'@atlaskit/platform/expand-spacing-shorthand':
|
|
72
|
-
'@compiled/jsx-pragma':
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
267
|
+
'@atlaskit/platform/ensure-test-runner-arguments': "error";
|
|
268
|
+
'@atlaskit/platform/ensure-test-runner-nested-count': "warn";
|
|
269
|
+
'@atlaskit/platform/no-invalid-feature-flag-usage': "error";
|
|
270
|
+
'@atlaskit/platform/no-invalid-storybook-decorator-usage': "error";
|
|
271
|
+
'@atlaskit/platform/ensure-atlassian-team': "error";
|
|
272
|
+
'@atlaskit/platform/no-module-level-eval-nav4': "error";
|
|
273
|
+
'@atlaskit/platform/expand-border-shorthand': "error";
|
|
274
|
+
'@atlaskit/platform/expand-background-shorthand': "error";
|
|
275
|
+
'@atlaskit/platform/expand-spacing-shorthand': "off";
|
|
276
|
+
'@compiled/jsx-pragma': [
|
|
277
|
+
"error",
|
|
278
|
+
{
|
|
279
|
+
importSources: string[];
|
|
280
|
+
onlyRunIfImportingCompiled: boolean;
|
|
281
|
+
runtime: string;
|
|
282
|
+
}
|
|
283
|
+
];
|
|
284
|
+
};
|
|
285
|
+
};
|
|
286
|
+
'jira/flat': {
|
|
287
|
+
plugins: {
|
|
288
|
+
readonly '@atlaskit/platform': ESLint.Plugin;
|
|
289
|
+
'@compiled': ESLint.Plugin;
|
|
290
|
+
};
|
|
291
|
+
rules: {
|
|
292
|
+
'@atlaskit/platform/ensure-test-runner-arguments': "error";
|
|
293
|
+
'@atlaskit/platform/ensure-test-runner-nested-count': "warn";
|
|
294
|
+
'@atlaskit/platform/no-invalid-feature-flag-usage': "error";
|
|
295
|
+
'@atlaskit/platform/no-invalid-storybook-decorator-usage': "error";
|
|
296
|
+
'@atlaskit/platform/ensure-atlassian-team': "error";
|
|
297
|
+
'@atlaskit/platform/no-module-level-eval-nav4': "error";
|
|
298
|
+
'@atlaskit/platform/expand-border-shorthand': "error";
|
|
299
|
+
'@atlaskit/platform/expand-background-shorthand': "error";
|
|
300
|
+
'@atlaskit/platform/expand-spacing-shorthand': "off";
|
|
301
|
+
'@compiled/jsx-pragma': [
|
|
302
|
+
"error",
|
|
303
|
+
{
|
|
304
|
+
importSources: string[];
|
|
305
|
+
onlyRunIfImportingCompiled: boolean;
|
|
306
|
+
runtime: string;
|
|
307
|
+
}
|
|
308
|
+
];
|
|
77
309
|
};
|
|
78
310
|
};
|
|
79
311
|
};
|
|
80
|
-
|
|
312
|
+
declare const processors: {
|
|
81
313
|
'package-json-processor': Linter.Processor<string | Linter.ProcessorFile>;
|
|
82
314
|
'package-json-processor-for-flat-config': Linter.Processor<string | Linter.ProcessorFile>;
|
|
83
315
|
};
|
|
316
|
+
export { configs, plugin, processors, rules };
|
|
317
|
+
export default plugin;
|
package/package.json
CHANGED