@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
|
@@ -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,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,70 +49,73 @@ 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':
|
|
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';
|
|
109
117
|
'@compiled/jsx-pragma': [
|
|
110
|
-
|
|
118
|
+
'error',
|
|
111
119
|
{
|
|
112
120
|
importSources: string[];
|
|
113
121
|
onlyRunIfImportingCompiled: boolean;
|
|
@@ -122,28 +130,29 @@ declare const plugin: {
|
|
|
122
130
|
'@compiled': ESLint.Plugin;
|
|
123
131
|
};
|
|
124
132
|
rules: {
|
|
125
|
-
'@atlaskit/platform/no-module-level-eval':
|
|
126
|
-
'@atlaskit/platform/static-feature-flags':
|
|
127
|
-
'@atlaskit/platform/no-preconditioning':
|
|
128
|
-
'@atlaskit/platform/inline-usage':
|
|
129
|
-
'@atlaskit/platform/prefer-fg':
|
|
130
|
-
'@atlaskit/platform/no-alias':
|
|
131
|
-
'@atlaskit/platform/valid-gate-name':
|
|
132
|
-
'@atlaskit/platform/ensure-feature-flag-registration':
|
|
133
|
-
'@atlaskit/platform/ensure-test-runner-arguments':
|
|
134
|
-
'@atlaskit/platform/ensure-test-runner-nested-count':
|
|
135
|
-
'@atlaskit/platform/ensure-use-sync-external-store-server-snapshot':
|
|
136
|
-
'@atlaskit/platform/no-invalid-feature-flag-usage':
|
|
137
|
-
'@atlaskit/platform/no-invalid-storybook-decorator-usage':
|
|
138
|
-
'@atlaskit/platform/ensure-atlassian-team':
|
|
139
|
-
'@atlaskit/platform/no-module-level-eval-nav4':
|
|
140
|
-
'@atlaskit/platform/no-direct-document-usage':
|
|
141
|
-
'@atlaskit/platform/no-set-immediate':
|
|
142
|
-
'@atlaskit/platform/expand-border-shorthand':
|
|
143
|
-
'@atlaskit/platform/expand-background-shorthand':
|
|
144
|
-
'@atlaskit/platform/expand-spacing-shorthand':
|
|
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';
|
|
145
154
|
'@compiled/jsx-pragma': [
|
|
146
|
-
|
|
155
|
+
'error',
|
|
147
156
|
{
|
|
148
157
|
importSources: string[];
|
|
149
158
|
onlyRunIfImportingCompiled: boolean;
|
|
@@ -155,20 +164,21 @@ declare const plugin: {
|
|
|
155
164
|
jira: {
|
|
156
165
|
plugins: string[];
|
|
157
166
|
rules: {
|
|
158
|
-
'@atlaskit/platform/ensure-test-runner-arguments':
|
|
159
|
-
'@atlaskit/platform/ensure-test-runner-nested-count':
|
|
160
|
-
'@atlaskit/platform/ensure-use-sync-external-store-server-snapshot':
|
|
161
|
-
'@atlaskit/platform/no-invalid-feature-flag-usage':
|
|
162
|
-
'@atlaskit/platform/no-invalid-storybook-decorator-usage':
|
|
163
|
-
'@atlaskit/platform/ensure-atlassian-team':
|
|
164
|
-
'@atlaskit/platform/no-module-level-eval-nav4':
|
|
165
|
-
'@atlaskit/platform/no-direct-document-usage':
|
|
166
|
-
'@atlaskit/platform/no-set-immediate':
|
|
167
|
-
'@atlaskit/platform/expand-border-shorthand':
|
|
168
|
-
'@atlaskit/platform/expand-background-shorthand':
|
|
169
|
-
'@atlaskit/platform/expand-spacing-shorthand':
|
|
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';
|
|
170
180
|
'@compiled/jsx-pragma': [
|
|
171
|
-
|
|
181
|
+
'error',
|
|
172
182
|
{
|
|
173
183
|
importSources: string[];
|
|
174
184
|
onlyRunIfImportingCompiled: boolean;
|
|
@@ -183,20 +193,21 @@ declare const plugin: {
|
|
|
183
193
|
'@compiled': ESLint.Plugin;
|
|
184
194
|
};
|
|
185
195
|
rules: {
|
|
186
|
-
'@atlaskit/platform/ensure-test-runner-arguments':
|
|
187
|
-
'@atlaskit/platform/ensure-test-runner-nested-count':
|
|
188
|
-
'@atlaskit/platform/ensure-use-sync-external-store-server-snapshot':
|
|
189
|
-
'@atlaskit/platform/no-invalid-feature-flag-usage':
|
|
190
|
-
'@atlaskit/platform/no-invalid-storybook-decorator-usage':
|
|
191
|
-
'@atlaskit/platform/ensure-atlassian-team':
|
|
192
|
-
'@atlaskit/platform/no-module-level-eval-nav4':
|
|
193
|
-
'@atlaskit/platform/no-direct-document-usage':
|
|
194
|
-
'@atlaskit/platform/no-set-immediate':
|
|
195
|
-
'@atlaskit/platform/expand-border-shorthand':
|
|
196
|
-
'@atlaskit/platform/expand-background-shorthand':
|
|
197
|
-
'@atlaskit/platform/expand-spacing-shorthand':
|
|
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';
|
|
198
209
|
'@compiled/jsx-pragma': [
|
|
199
|
-
|
|
210
|
+
'error',
|
|
200
211
|
{
|
|
201
212
|
importSources: string[];
|
|
202
213
|
onlyRunIfImportingCompiled: boolean;
|
|
@@ -215,28 +226,29 @@ declare const configs: {
|
|
|
215
226
|
recommended: {
|
|
216
227
|
plugins: string[];
|
|
217
228
|
rules: {
|
|
218
|
-
'@atlaskit/platform/no-module-level-eval':
|
|
219
|
-
'@atlaskit/platform/static-feature-flags':
|
|
220
|
-
'@atlaskit/platform/no-preconditioning':
|
|
221
|
-
'@atlaskit/platform/inline-usage':
|
|
222
|
-
'@atlaskit/platform/prefer-fg':
|
|
223
|
-
'@atlaskit/platform/no-alias':
|
|
224
|
-
'@atlaskit/platform/valid-gate-name':
|
|
225
|
-
'@atlaskit/platform/ensure-feature-flag-registration':
|
|
226
|
-
'@atlaskit/platform/ensure-test-runner-arguments':
|
|
227
|
-
'@atlaskit/platform/ensure-test-runner-nested-count':
|
|
228
|
-
'@atlaskit/platform/ensure-use-sync-external-store-server-snapshot':
|
|
229
|
-
'@atlaskit/platform/no-invalid-feature-flag-usage':
|
|
230
|
-
'@atlaskit/platform/no-invalid-storybook-decorator-usage':
|
|
231
|
-
'@atlaskit/platform/ensure-atlassian-team':
|
|
232
|
-
'@atlaskit/platform/no-module-level-eval-nav4':
|
|
233
|
-
'@atlaskit/platform/no-direct-document-usage':
|
|
234
|
-
'@atlaskit/platform/no-set-immediate':
|
|
235
|
-
'@atlaskit/platform/expand-border-shorthand':
|
|
236
|
-
'@atlaskit/platform/expand-background-shorthand':
|
|
237
|
-
'@atlaskit/platform/expand-spacing-shorthand':
|
|
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';
|
|
238
250
|
'@compiled/jsx-pragma': [
|
|
239
|
-
|
|
251
|
+
'error',
|
|
240
252
|
{
|
|
241
253
|
importSources: string[];
|
|
242
254
|
onlyRunIfImportingCompiled: boolean;
|
|
@@ -251,28 +263,29 @@ declare const configs: {
|
|
|
251
263
|
'@compiled': ESLint.Plugin;
|
|
252
264
|
};
|
|
253
265
|
rules: {
|
|
254
|
-
'@atlaskit/platform/no-module-level-eval':
|
|
255
|
-
'@atlaskit/platform/static-feature-flags':
|
|
256
|
-
'@atlaskit/platform/no-preconditioning':
|
|
257
|
-
'@atlaskit/platform/inline-usage':
|
|
258
|
-
'@atlaskit/platform/prefer-fg':
|
|
259
|
-
'@atlaskit/platform/no-alias':
|
|
260
|
-
'@atlaskit/platform/valid-gate-name':
|
|
261
|
-
'@atlaskit/platform/ensure-feature-flag-registration':
|
|
262
|
-
'@atlaskit/platform/ensure-test-runner-arguments':
|
|
263
|
-
'@atlaskit/platform/ensure-test-runner-nested-count':
|
|
264
|
-
'@atlaskit/platform/ensure-use-sync-external-store-server-snapshot':
|
|
265
|
-
'@atlaskit/platform/no-invalid-feature-flag-usage':
|
|
266
|
-
'@atlaskit/platform/no-invalid-storybook-decorator-usage':
|
|
267
|
-
'@atlaskit/platform/ensure-atlassian-team':
|
|
268
|
-
'@atlaskit/platform/no-module-level-eval-nav4':
|
|
269
|
-
'@atlaskit/platform/no-direct-document-usage':
|
|
270
|
-
'@atlaskit/platform/no-set-immediate':
|
|
271
|
-
'@atlaskit/platform/expand-border-shorthand':
|
|
272
|
-
'@atlaskit/platform/expand-background-shorthand':
|
|
273
|
-
'@atlaskit/platform/expand-spacing-shorthand':
|
|
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';
|
|
274
287
|
'@compiled/jsx-pragma': [
|
|
275
|
-
|
|
288
|
+
'error',
|
|
276
289
|
{
|
|
277
290
|
importSources: string[];
|
|
278
291
|
onlyRunIfImportingCompiled: boolean;
|
|
@@ -284,20 +297,21 @@ declare const configs: {
|
|
|
284
297
|
jira: {
|
|
285
298
|
plugins: string[];
|
|
286
299
|
rules: {
|
|
287
|
-
'@atlaskit/platform/ensure-test-runner-arguments':
|
|
288
|
-
'@atlaskit/platform/ensure-test-runner-nested-count':
|
|
289
|
-
'@atlaskit/platform/ensure-use-sync-external-store-server-snapshot':
|
|
290
|
-
'@atlaskit/platform/no-invalid-feature-flag-usage':
|
|
291
|
-
'@atlaskit/platform/no-invalid-storybook-decorator-usage':
|
|
292
|
-
'@atlaskit/platform/ensure-atlassian-team':
|
|
293
|
-
'@atlaskit/platform/no-module-level-eval-nav4':
|
|
294
|
-
'@atlaskit/platform/no-direct-document-usage':
|
|
295
|
-
'@atlaskit/platform/no-set-immediate':
|
|
296
|
-
'@atlaskit/platform/expand-border-shorthand':
|
|
297
|
-
'@atlaskit/platform/expand-background-shorthand':
|
|
298
|
-
'@atlaskit/platform/expand-spacing-shorthand':
|
|
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';
|
|
299
313
|
'@compiled/jsx-pragma': [
|
|
300
|
-
|
|
314
|
+
'error',
|
|
301
315
|
{
|
|
302
316
|
importSources: string[];
|
|
303
317
|
onlyRunIfImportingCompiled: boolean;
|
|
@@ -312,20 +326,21 @@ declare const configs: {
|
|
|
312
326
|
'@compiled': ESLint.Plugin;
|
|
313
327
|
};
|
|
314
328
|
rules: {
|
|
315
|
-
'@atlaskit/platform/ensure-test-runner-arguments':
|
|
316
|
-
'@atlaskit/platform/ensure-test-runner-nested-count':
|
|
317
|
-
'@atlaskit/platform/ensure-use-sync-external-store-server-snapshot':
|
|
318
|
-
'@atlaskit/platform/no-invalid-feature-flag-usage':
|
|
319
|
-
'@atlaskit/platform/no-invalid-storybook-decorator-usage':
|
|
320
|
-
'@atlaskit/platform/ensure-atlassian-team':
|
|
321
|
-
'@atlaskit/platform/no-module-level-eval-nav4':
|
|
322
|
-
'@atlaskit/platform/no-direct-document-usage':
|
|
323
|
-
'@atlaskit/platform/no-set-immediate':
|
|
324
|
-
'@atlaskit/platform/expand-border-shorthand':
|
|
325
|
-
'@atlaskit/platform/expand-background-shorthand':
|
|
326
|
-
'@atlaskit/platform/expand-spacing-shorthand':
|
|
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';
|
|
327
342
|
'@compiled/jsx-pragma': [
|
|
328
|
-
|
|
343
|
+
'error',
|
|
329
344
|
{
|
|
330
345
|
importSources: string[];
|
|
331
346
|
onlyRunIfImportingCompiled: boolean;
|