@atlaskit/eslint-plugin-platform 2.1.1 → 2.2.0

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/dist/esm/index.js CHANGED
@@ -2,7 +2,7 @@ import _defineProperty from "@babel/runtime/helpers/defineProperty";
2
2
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
3
3
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
4
4
  // eslint-disable-next-line import/no-extraneous-dependencies
5
-
5
+ import compiledPlugin from '@compiled/eslint-plugin';
6
6
  import ensureFeatureFlagRegistration from './rules/ensure-feature-flag-registration';
7
7
  import noPreAndPostInstallScripts from './rules/no-pre-post-installs';
8
8
  import ensureTestRunnerArguments from './rules/ensure-test-runner-arguments';
@@ -29,7 +29,8 @@ import useEntrypointsInExamples from './rules/use-entrypoints-in-examples';
29
29
  import useRecommendedUtils from './rules/feature-gating/use-recommended-utils';
30
30
  import expandBackgroundShorthand from './rules/compiled/expand-background-shorthand';
31
31
  import expandSpacingShorthand from './rules/compiled/expand-spacing-shorthand';
32
- export var rules = {
32
+ var packageJson = require('@atlaskit/eslint-plugin-platform/package.json');
33
+ var rules = {
33
34
  'ensure-feature-flag-registration': ensureFeatureFlagRegistration,
34
35
  'ensure-feature-flag-prefix': ensureFeatureFlagPrefix,
35
36
  'ensure-test-runner-arguments': ensureTestRunnerArguments,
@@ -74,75 +75,116 @@ var commonConfig = {
74
75
  runtime: 'classic'
75
76
  }]
76
77
  };
77
- export var configs = {
78
- recommended: {
79
- plugins: ['@atlaskit/platform', '@compiled'],
80
- rules: _objectSpread(_objectSpread({}, commonConfig), {}, {
81
- // See platform/packages/platform/eslint-plugin/src/rules/feature-gating/README.md
82
- // These rules are specific to `platform` and seem a WIP; jira and confluence currently have their own rules
83
- '@atlaskit/platform/no-module-level-eval': 'error',
84
- '@atlaskit/platform/static-feature-flags': 'error',
85
- '@atlaskit/platform/no-preconditioning': 'error',
86
- '@atlaskit/platform/inline-usage': 'error',
87
- '@atlaskit/platform/prefer-fg': 'error',
88
- '@atlaskit/platform/no-alias': 'error',
89
- // end: feature-gating rules
90
- '@atlaskit/platform/ensure-feature-flag-registration': 'error',
91
- '@atlaskit/platform/ensure-feature-flag-prefix': ['warn', {
92
- allowedPrefixes: ['platform.', 'platform_']
93
- }]
94
- })
95
- },
96
- jira: {
97
- plugins: ['@atlaskit/platform', '@compiled'],
98
- rules: _objectSpread({}, commonConfig)
99
- }
100
- };
78
+ var recommendedRules = _objectSpread(_objectSpread({}, commonConfig), {}, {
79
+ // See platform/packages/platform/eslint-plugin/src/rules/feature-gating/README.md
80
+ // These rules are specific to `platform` and seem a WIP; jira and confluence currently have their own rules
81
+ '@atlaskit/platform/no-module-level-eval': 'error',
82
+ '@atlaskit/platform/static-feature-flags': 'error',
83
+ '@atlaskit/platform/no-preconditioning': 'error',
84
+ '@atlaskit/platform/inline-usage': 'error',
85
+ '@atlaskit/platform/prefer-fg': 'error',
86
+ '@atlaskit/platform/no-alias': 'error',
87
+ // end: feature-gating rules
88
+ '@atlaskit/platform/ensure-feature-flag-registration': 'error',
89
+ '@atlaskit/platform/ensure-feature-flag-prefix': ['warn', {
90
+ allowedPrefixes: ['platform.', 'platform_']
91
+ }]
92
+ });
93
+ var jiraRules = commonConfig;
101
94
  var jsonPrefix = '/* eslint-disable quote-props, comma-dangle, quotes, semi, eol-last, @typescript-eslint/semi, no-template-curly-in-string */ module.exports = ';
102
95
  var jsonPrefixForFlatConfig = '/* eslint-disable quote-props, comma-dangle, quotes, semi, eol-last, no-template-curly-in-string */ module.exports = ';
103
- export var processors = {
104
- 'package-json-processor': {
105
- preprocess: function preprocess(source) {
106
- // augment the json into a js file
107
- return [jsonPrefix + source.trim()];
96
+ var name = packageJson.name,
97
+ version = packageJson.version;
98
+ var plugin = {
99
+ meta: {
100
+ name: name,
101
+ version: version
102
+ },
103
+ rules: rules,
104
+ configs: {
105
+ recommended: {
106
+ plugins: ['@atlaskit/platform', '@compiled'],
107
+ rules: recommendedRules
108
108
  },
109
- postprocess: function postprocess(messages) {
110
- return messages[0].map(function (message) {
111
- var fix = message.fix;
112
- if (!fix) {
113
- return message;
109
+ 'recommended/flat': {
110
+ plugins: {
111
+ get '@atlaskit/platform'() {
112
+ return plugin;
113
+ },
114
+ // @ts-expect-error there's an issue with the types for @compiled/eslint-plugin ('no-css-prop-without-css-function' specifically)
115
+ '@compiled': {
116
+ meta: compiledPlugin.meta,
117
+ rules: compiledPlugin.rules
114
118
  }
115
- var offset = jsonPrefix.length;
116
- return _objectSpread(_objectSpread({}, message), {}, {
117
- fix: _objectSpread(_objectSpread({}, fix), {}, {
118
- range: [fix.range[0] - offset, fix.range[1] - offset]
119
- })
120
- });
121
- });
119
+ },
120
+ rules: recommendedRules
122
121
  },
123
- supportsAutofix: true
124
- },
125
- // This processor is used for ESLint FlatConfig,
126
- // once we roll out FlatConfig, we can remove the above processor
127
- 'package-json-processor-for-flat-config': {
128
- preprocess: function preprocess(source) {
129
- // augment the json into a js file
130
- return [jsonPrefixForFlatConfig + source.trim()];
122
+ jira: {
123
+ plugins: ['@atlaskit/platform', '@compiled'],
124
+ rules: jiraRules
131
125
  },
132
- postprocess: function postprocess(messages) {
133
- return messages[0].map(function (message) {
134
- var fix = message.fix;
135
- if (!fix) {
136
- return message;
126
+ 'jira/flat': {
127
+ plugins: {
128
+ get '@atlaskit/platform'() {
129
+ return plugin;
130
+ },
131
+ // @ts-expect-error there's an issue with the types for @compiled/eslint-plugin ('no-css-prop-without-css-function' specifically)
132
+ '@compiled': {
133
+ meta: compiledPlugin.meta,
134
+ rules: compiledPlugin.rules
137
135
  }
138
- var offset = jsonPrefixForFlatConfig.length;
139
- return _objectSpread(_objectSpread({}, message), {}, {
140
- fix: _objectSpread(_objectSpread({}, fix), {}, {
141
- range: [fix.range[0] - offset, fix.range[1] - offset]
142
- })
136
+ },
137
+ rules: jiraRules
138
+ }
139
+ },
140
+ processors: {
141
+ 'package-json-processor': {
142
+ preprocess: function preprocess(source) {
143
+ // augment the json into a js file
144
+ return [jsonPrefix + source.trim()];
145
+ },
146
+ postprocess: function postprocess(messages) {
147
+ return messages[0].map(function (message) {
148
+ var fix = message.fix;
149
+ if (!fix) {
150
+ return message;
151
+ }
152
+ var offset = jsonPrefix.length;
153
+ return _objectSpread(_objectSpread({}, message), {}, {
154
+ fix: _objectSpread(_objectSpread({}, fix), {}, {
155
+ range: [fix.range[0] - offset, fix.range[1] - offset]
156
+ })
157
+ });
143
158
  });
144
- });
159
+ },
160
+ supportsAutofix: true
145
161
  },
146
- supportsAutofix: true
162
+ // This processor is used for ESLint FlatConfig,
163
+ // once we roll out FlatConfig, we can remove the above processor
164
+ 'package-json-processor-for-flat-config': {
165
+ preprocess: function preprocess(source) {
166
+ // augment the json into a js file
167
+ return [jsonPrefixForFlatConfig + source.trim()];
168
+ },
169
+ postprocess: function postprocess(messages) {
170
+ return messages[0].map(function (message) {
171
+ var fix = message.fix;
172
+ if (!fix) {
173
+ return message;
174
+ }
175
+ var offset = jsonPrefixForFlatConfig.length;
176
+ return _objectSpread(_objectSpread({}, message), {}, {
177
+ fix: _objectSpread(_objectSpread({}, fix), {}, {
178
+ range: [fix.range[0] - offset, fix.range[1] - offset]
179
+ })
180
+ });
181
+ });
182
+ },
183
+ supportsAutofix: true
184
+ }
147
185
  }
148
- };
186
+ };
187
+ var configs = plugin.configs;
188
+ var processors = plugin.processors;
189
+ export { configs, plugin, processors, rules };
190
+ export default plugin;
@@ -23,11 +23,12 @@ var parseTemplateLiteral = function parseTemplateLiteral(templateLiteral, contex
23
23
  if (i < quasis.length) {
24
24
  var cookedQuasi = quasis[i].value.cooked;
25
25
  if (cookedQuasi) {
26
- var splitQuasi = cookedQuasi.split(' ').filter(function (str) {
27
- return str.trim().length > 0;
28
- });
29
- splitQuasi.forEach(function (str) {
30
- propertyValues.push(isNaN(Number(str)) ? "'".concat(str, "'") : str);
26
+ var splitQuasis = cookedQuasi.split(' ');
27
+ splitQuasis.forEach(function (str) {
28
+ str = str.trim().replace("'", '');
29
+ if (str.length > 0) {
30
+ propertyValues.push(isNaN(Number(str)) ? "'".concat(str, "'") : str);
31
+ }
31
32
  });
32
33
  }
33
34
  }
@@ -1,5 +1,5 @@
1
- import type { Linter } from 'eslint';
2
- export declare const rules: {
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
- export declare const configs: {
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': string;
35
- '@atlaskit/platform/static-feature-flags': string;
36
- '@atlaskit/platform/no-preconditioning': string;
37
- '@atlaskit/platform/inline-usage': string;
38
- '@atlaskit/platform/prefer-fg': string;
39
- '@atlaskit/platform/no-alias': string;
40
- '@atlaskit/platform/ensure-feature-flag-registration': string;
41
- '@atlaskit/platform/ensure-feature-flag-prefix': (string | {
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': string;
45
- '@atlaskit/platform/ensure-test-runner-nested-count': string;
46
- '@atlaskit/platform/no-invalid-feature-flag-usage': string;
47
- '@atlaskit/platform/no-invalid-storybook-decorator-usage': string;
48
- '@atlaskit/platform/ensure-atlassian-team': string;
49
- '@atlaskit/platform/no-module-level-eval-nav4': string;
50
- '@atlaskit/platform/expand-border-shorthand': string;
51
- '@atlaskit/platform/expand-background-shorthand': string;
52
- '@atlaskit/platform/expand-spacing-shorthand': string;
53
- '@compiled/jsx-pragma': (string | {
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': string;
64
- '@atlaskit/platform/ensure-test-runner-nested-count': string;
65
- '@atlaskit/platform/no-invalid-feature-flag-usage': string;
66
- '@atlaskit/platform/no-invalid-storybook-decorator-usage': string;
67
- '@atlaskit/platform/ensure-atlassian-team': string;
68
- '@atlaskit/platform/no-module-level-eval-nav4': string;
69
- '@atlaskit/platform/expand-border-shorthand': string;
70
- '@atlaskit/platform/expand-background-shorthand': string;
71
- '@atlaskit/platform/expand-spacing-shorthand': string;
72
- '@compiled/jsx-pragma': (string | {
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
- export declare const processors: {
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;