@atlaskit/eslint-plugin-ui-styling-standard 0.20.0 → 0.21.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.
Files changed (37) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/dist/cjs/index.codegen.js +45 -10
  3. package/dist/cjs/index.js +22 -1
  4. package/dist/cjs/presets/all-flat.codegen.js +62 -0
  5. package/dist/cjs/presets/all.codegen.js +1 -1
  6. package/dist/cjs/presets/recommended-flat.codegen.js +62 -0
  7. package/dist/cjs/presets/recommended.codegen.js +1 -1
  8. package/dist/cjs/rules/index.codegen.js +4 -3
  9. package/dist/es2019/index.codegen.js +50 -6
  10. package/dist/es2019/index.js +1 -1
  11. package/dist/es2019/presets/all-flat.codegen.js +53 -0
  12. package/dist/es2019/presets/all.codegen.js +1 -1
  13. package/dist/es2019/presets/recommended-flat.codegen.js +53 -0
  14. package/dist/es2019/presets/recommended.codegen.js +1 -1
  15. package/dist/es2019/rules/index.codegen.js +2 -2
  16. package/dist/esm/index.codegen.js +46 -6
  17. package/dist/esm/index.js +1 -1
  18. package/dist/esm/presets/all-flat.codegen.js +53 -0
  19. package/dist/esm/presets/all.codegen.js +1 -1
  20. package/dist/esm/presets/recommended-flat.codegen.js +53 -0
  21. package/dist/esm/presets/recommended.codegen.js +1 -1
  22. package/dist/esm/rules/index.codegen.js +2 -2
  23. package/dist/types/index.codegen.d.ts +430 -81
  24. package/dist/types/index.d.ts +1 -1
  25. package/dist/types/presets/all-flat.codegen.d.ts +53 -0
  26. package/dist/types/presets/all.codegen.d.ts +40 -40
  27. package/dist/types/presets/recommended-flat.codegen.d.ts +53 -0
  28. package/dist/types/presets/recommended.codegen.d.ts +40 -40
  29. package/dist/types/rules/index.codegen.d.ts +1 -2
  30. package/dist/types-ts4.5/index.codegen.d.ts +654 -81
  31. package/dist/types-ts4.5/index.d.ts +1 -1
  32. package/dist/types-ts4.5/presets/all-flat.codegen.d.ts +79 -0
  33. package/dist/types-ts4.5/presets/all.codegen.d.ts +70 -40
  34. package/dist/types-ts4.5/presets/recommended-flat.codegen.d.ts +79 -0
  35. package/dist/types-ts4.5/presets/recommended.codegen.d.ts +70 -40
  36. package/dist/types-ts4.5/rules/index.codegen.d.ts +1 -2
  37. package/package.json +10 -4
@@ -0,0 +1,53 @@
1
+ /**
2
+ * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
+ * @codegen <<SignedSource::1cccef68eb9733d840f31dd863aad5ab>>
4
+ * @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
5
+ */
6
+ import * as atlaskitDesignSystemPlugin from '@atlaskit/eslint-plugin-design-system';
7
+ import * as compiledPlugin from '@compiled/eslint-plugin';
8
+ declare const _default: {
9
+ readonly plugins: {
10
+ readonly '@atlaskit/design-system': typeof atlaskitDesignSystemPlugin;
11
+ readonly '@compiled': typeof compiledPlugin;
12
+ };
13
+ readonly rules: {
14
+ readonly '@atlaskit/ui-styling-standard/atlaskit-theme': "error";
15
+ readonly '@atlaskit/ui-styling-standard/convert-props-syntax': "error";
16
+ readonly '@atlaskit/ui-styling-standard/enforce-style-prop': "error";
17
+ readonly '@atlaskit/ui-styling-standard/local-cx-xcss': "error";
18
+ readonly '@atlaskit/ui-styling-standard/no-array-arguments': "error";
19
+ readonly '@atlaskit/ui-styling-standard/no-classname-prop': "error";
20
+ readonly '@atlaskit/ui-styling-standard/no-container-queries': "error";
21
+ readonly '@atlaskit/ui-styling-standard/no-dynamic-styles': "error";
22
+ readonly '@atlaskit/ui-styling-standard/no-exported-styles': "error";
23
+ readonly '@atlaskit/ui-styling-standard/no-global-styles': "error";
24
+ readonly '@atlaskit/ui-styling-standard/no-important-styles': "error";
25
+ readonly '@atlaskit/ui-styling-standard/no-imported-style-values': "error";
26
+ readonly '@atlaskit/ui-styling-standard/no-nested-selectors': "error";
27
+ readonly '@atlaskit/ui-styling-standard/no-styled': "error";
28
+ readonly '@atlaskit/ui-styling-standard/no-unsafe-selectors': "error";
29
+ readonly '@atlaskit/ui-styling-standard/no-unsafe-values': "error";
30
+ readonly '@atlaskit/ui-styling-standard/use-compiled': "error";
31
+ readonly '@atlaskit/design-system/consistent-css-prop-usage': readonly ["error", {
32
+ readonly excludeReactComponents: true;
33
+ readonly shouldAlwaysCheckXcss: true;
34
+ }];
35
+ readonly '@atlaskit/design-system/no-css-tagged-template-expression': "error";
36
+ readonly '@atlaskit/design-system/no-keyframes-tagged-template-expression': "error";
37
+ readonly '@atlaskit/design-system/no-styled-tagged-template-expression': "error";
38
+ readonly '@compiled/no-suppress-xcss': "error";
39
+ readonly '@compiled/no-js-xcss': "error";
40
+ readonly '@atlaskit/design-system/no-empty-styled-expression': readonly ["error", {
41
+ readonly importSources: readonly ["@compiled/react", "@atlaskit/css", "@emotion/core", "@emotion/react", "@emotion/styled", "styled-components"];
42
+ }];
43
+ readonly '@atlaskit/design-system/no-invalid-css-map': readonly ["error", {
44
+ readonly allowedFunctionCalls: readonly [readonly ["@atlaskit/tokens", "token"]];
45
+ }];
46
+ readonly '@compiled/jsx-pragma': readonly ["error", {
47
+ readonly runtime: "classic";
48
+ readonly onlyRunIfImportingCompiled: true;
49
+ readonly importSources: readonly ["@atlaskit/css"];
50
+ }];
51
+ };
52
+ };
53
+ export default _default;
@@ -1,48 +1,48 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::11d1ce4c1740cea37e5de3ccba44a8f5>>
3
+ * @codegen <<SignedSource::3488c902f0db00c9b39ff91abeff0c91>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
5
5
  */
6
6
  declare const _default: {
7
- plugins: string[];
8
- rules: {
9
- '@atlaskit/ui-styling-standard/atlaskit-theme': string;
10
- '@atlaskit/ui-styling-standard/convert-props-syntax': string;
11
- '@atlaskit/ui-styling-standard/enforce-style-prop': string;
12
- '@atlaskit/ui-styling-standard/local-cx-xcss': string;
13
- '@atlaskit/ui-styling-standard/no-array-arguments': string;
14
- '@atlaskit/ui-styling-standard/no-classname-prop': string;
15
- '@atlaskit/ui-styling-standard/no-container-queries': string;
16
- '@atlaskit/ui-styling-standard/no-dynamic-styles': string;
17
- '@atlaskit/ui-styling-standard/no-exported-styles': string;
18
- '@atlaskit/ui-styling-standard/no-global-styles': string;
19
- '@atlaskit/ui-styling-standard/no-important-styles': string;
20
- '@atlaskit/ui-styling-standard/no-imported-style-values': string;
21
- '@atlaskit/ui-styling-standard/no-nested-selectors': string;
22
- '@atlaskit/ui-styling-standard/no-styled': string;
23
- '@atlaskit/ui-styling-standard/no-unsafe-selectors': string;
24
- '@atlaskit/ui-styling-standard/no-unsafe-values': string;
25
- '@atlaskit/ui-styling-standard/use-compiled': string;
26
- '@atlaskit/design-system/consistent-css-prop-usage': (string | {
27
- excludeReactComponents: boolean;
28
- shouldAlwaysCheckXcss: boolean;
29
- })[];
30
- '@atlaskit/design-system/no-css-tagged-template-expression': string;
31
- '@atlaskit/design-system/no-keyframes-tagged-template-expression': string;
32
- '@atlaskit/design-system/no-styled-tagged-template-expression': string;
33
- '@compiled/no-suppress-xcss': string;
34
- '@compiled/no-js-xcss': string;
35
- '@atlaskit/design-system/no-empty-styled-expression': (string | {
36
- importSources: string[];
37
- })[];
38
- '@atlaskit/design-system/no-invalid-css-map': (string | {
39
- allowedFunctionCalls: string[][];
40
- })[];
41
- '@compiled/jsx-pragma': (string | {
42
- runtime: string;
43
- onlyRunIfImportingCompiled: boolean;
44
- importSources: string[];
45
- })[];
7
+ readonly plugins: readonly ["@atlaskit/ui-styling-standard", "@atlaskit/design-system", "@compiled"];
8
+ readonly rules: {
9
+ readonly '@atlaskit/ui-styling-standard/atlaskit-theme': "error";
10
+ readonly '@atlaskit/ui-styling-standard/convert-props-syntax': "error";
11
+ readonly '@atlaskit/ui-styling-standard/enforce-style-prop': "error";
12
+ readonly '@atlaskit/ui-styling-standard/local-cx-xcss': "error";
13
+ readonly '@atlaskit/ui-styling-standard/no-array-arguments': "error";
14
+ readonly '@atlaskit/ui-styling-standard/no-classname-prop': "error";
15
+ readonly '@atlaskit/ui-styling-standard/no-container-queries': "error";
16
+ readonly '@atlaskit/ui-styling-standard/no-dynamic-styles': "error";
17
+ readonly '@atlaskit/ui-styling-standard/no-exported-styles': "error";
18
+ readonly '@atlaskit/ui-styling-standard/no-global-styles': "error";
19
+ readonly '@atlaskit/ui-styling-standard/no-important-styles': "error";
20
+ readonly '@atlaskit/ui-styling-standard/no-imported-style-values': "error";
21
+ readonly '@atlaskit/ui-styling-standard/no-nested-selectors': "error";
22
+ readonly '@atlaskit/ui-styling-standard/no-styled': "error";
23
+ readonly '@atlaskit/ui-styling-standard/no-unsafe-selectors': "error";
24
+ readonly '@atlaskit/ui-styling-standard/no-unsafe-values': "error";
25
+ readonly '@atlaskit/ui-styling-standard/use-compiled': "error";
26
+ readonly '@atlaskit/design-system/consistent-css-prop-usage': readonly ["error", {
27
+ readonly excludeReactComponents: true;
28
+ readonly shouldAlwaysCheckXcss: true;
29
+ }];
30
+ readonly '@atlaskit/design-system/no-css-tagged-template-expression': "error";
31
+ readonly '@atlaskit/design-system/no-keyframes-tagged-template-expression': "error";
32
+ readonly '@atlaskit/design-system/no-styled-tagged-template-expression': "error";
33
+ readonly '@compiled/no-suppress-xcss': "error";
34
+ readonly '@compiled/no-js-xcss': "error";
35
+ readonly '@atlaskit/design-system/no-empty-styled-expression': readonly ["error", {
36
+ readonly importSources: readonly ["@compiled/react", "@atlaskit/css", "@emotion/core", "@emotion/react", "@emotion/styled", "styled-components"];
37
+ }];
38
+ readonly '@atlaskit/design-system/no-invalid-css-map': readonly ["error", {
39
+ readonly allowedFunctionCalls: readonly [readonly ["@atlaskit/tokens", "token"]];
40
+ }];
41
+ readonly '@compiled/jsx-pragma': readonly ["error", {
42
+ readonly runtime: "classic";
43
+ readonly onlyRunIfImportingCompiled: true;
44
+ readonly importSources: readonly ["@atlaskit/css"];
45
+ }];
46
46
  };
47
47
  };
48
48
  export default _default;
@@ -0,0 +1,53 @@
1
+ /**
2
+ * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
+ * @codegen <<SignedSource::1cccef68eb9733d840f31dd863aad5ab>>
4
+ * @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
5
+ */
6
+ import * as atlaskitDesignSystemPlugin from '@atlaskit/eslint-plugin-design-system';
7
+ import * as compiledPlugin from '@compiled/eslint-plugin';
8
+ declare const _default: {
9
+ readonly plugins: {
10
+ readonly '@atlaskit/design-system': typeof atlaskitDesignSystemPlugin;
11
+ readonly '@compiled': typeof compiledPlugin;
12
+ };
13
+ readonly rules: {
14
+ readonly '@atlaskit/ui-styling-standard/atlaskit-theme': "error";
15
+ readonly '@atlaskit/ui-styling-standard/convert-props-syntax': "error";
16
+ readonly '@atlaskit/ui-styling-standard/enforce-style-prop': "error";
17
+ readonly '@atlaskit/ui-styling-standard/local-cx-xcss': "error";
18
+ readonly '@atlaskit/ui-styling-standard/no-array-arguments': "error";
19
+ readonly '@atlaskit/ui-styling-standard/no-classname-prop': "error";
20
+ readonly '@atlaskit/ui-styling-standard/no-container-queries': "error";
21
+ readonly '@atlaskit/ui-styling-standard/no-dynamic-styles': "error";
22
+ readonly '@atlaskit/ui-styling-standard/no-exported-styles': "error";
23
+ readonly '@atlaskit/ui-styling-standard/no-global-styles': "error";
24
+ readonly '@atlaskit/ui-styling-standard/no-important-styles': "error";
25
+ readonly '@atlaskit/ui-styling-standard/no-imported-style-values': "error";
26
+ readonly '@atlaskit/ui-styling-standard/no-nested-selectors': "error";
27
+ readonly '@atlaskit/ui-styling-standard/no-styled': "error";
28
+ readonly '@atlaskit/ui-styling-standard/no-unsafe-selectors': "error";
29
+ readonly '@atlaskit/ui-styling-standard/no-unsafe-values': "error";
30
+ readonly '@atlaskit/ui-styling-standard/use-compiled': "error";
31
+ readonly '@atlaskit/design-system/consistent-css-prop-usage': readonly ["error", {
32
+ readonly excludeReactComponents: true;
33
+ readonly shouldAlwaysCheckXcss: true;
34
+ }];
35
+ readonly '@atlaskit/design-system/no-css-tagged-template-expression': "error";
36
+ readonly '@atlaskit/design-system/no-keyframes-tagged-template-expression': "error";
37
+ readonly '@atlaskit/design-system/no-styled-tagged-template-expression': "error";
38
+ readonly '@compiled/no-suppress-xcss': "error";
39
+ readonly '@compiled/no-js-xcss': "error";
40
+ readonly '@atlaskit/design-system/no-empty-styled-expression': readonly ["error", {
41
+ readonly importSources: readonly ["@compiled/react", "@atlaskit/css", "@emotion/core", "@emotion/react", "@emotion/styled", "styled-components"];
42
+ }];
43
+ readonly '@atlaskit/design-system/no-invalid-css-map': readonly ["error", {
44
+ readonly allowedFunctionCalls: readonly [readonly ["@atlaskit/tokens", "token"]];
45
+ }];
46
+ readonly '@compiled/jsx-pragma': readonly ["error", {
47
+ readonly runtime: "classic";
48
+ readonly onlyRunIfImportingCompiled: true;
49
+ readonly importSources: readonly ["@atlaskit/css"];
50
+ }];
51
+ };
52
+ };
53
+ export default _default;
@@ -1,48 +1,48 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::11d1ce4c1740cea37e5de3ccba44a8f5>>
3
+ * @codegen <<SignedSource::3488c902f0db00c9b39ff91abeff0c91>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
5
5
  */
6
6
  declare const _default: {
7
- plugins: string[];
8
- rules: {
9
- '@atlaskit/ui-styling-standard/atlaskit-theme': string;
10
- '@atlaskit/ui-styling-standard/convert-props-syntax': string;
11
- '@atlaskit/ui-styling-standard/enforce-style-prop': string;
12
- '@atlaskit/ui-styling-standard/local-cx-xcss': string;
13
- '@atlaskit/ui-styling-standard/no-array-arguments': string;
14
- '@atlaskit/ui-styling-standard/no-classname-prop': string;
15
- '@atlaskit/ui-styling-standard/no-container-queries': string;
16
- '@atlaskit/ui-styling-standard/no-dynamic-styles': string;
17
- '@atlaskit/ui-styling-standard/no-exported-styles': string;
18
- '@atlaskit/ui-styling-standard/no-global-styles': string;
19
- '@atlaskit/ui-styling-standard/no-important-styles': string;
20
- '@atlaskit/ui-styling-standard/no-imported-style-values': string;
21
- '@atlaskit/ui-styling-standard/no-nested-selectors': string;
22
- '@atlaskit/ui-styling-standard/no-styled': string;
23
- '@atlaskit/ui-styling-standard/no-unsafe-selectors': string;
24
- '@atlaskit/ui-styling-standard/no-unsafe-values': string;
25
- '@atlaskit/ui-styling-standard/use-compiled': string;
26
- '@atlaskit/design-system/consistent-css-prop-usage': (string | {
27
- excludeReactComponents: boolean;
28
- shouldAlwaysCheckXcss: boolean;
29
- })[];
30
- '@atlaskit/design-system/no-css-tagged-template-expression': string;
31
- '@atlaskit/design-system/no-keyframes-tagged-template-expression': string;
32
- '@atlaskit/design-system/no-styled-tagged-template-expression': string;
33
- '@compiled/no-suppress-xcss': string;
34
- '@compiled/no-js-xcss': string;
35
- '@atlaskit/design-system/no-empty-styled-expression': (string | {
36
- importSources: string[];
37
- })[];
38
- '@atlaskit/design-system/no-invalid-css-map': (string | {
39
- allowedFunctionCalls: string[][];
40
- })[];
41
- '@compiled/jsx-pragma': (string | {
42
- runtime: string;
43
- onlyRunIfImportingCompiled: boolean;
44
- importSources: string[];
45
- })[];
7
+ readonly plugins: readonly ["@atlaskit/ui-styling-standard", "@atlaskit/design-system", "@compiled"];
8
+ readonly rules: {
9
+ readonly '@atlaskit/ui-styling-standard/atlaskit-theme': "error";
10
+ readonly '@atlaskit/ui-styling-standard/convert-props-syntax': "error";
11
+ readonly '@atlaskit/ui-styling-standard/enforce-style-prop': "error";
12
+ readonly '@atlaskit/ui-styling-standard/local-cx-xcss': "error";
13
+ readonly '@atlaskit/ui-styling-standard/no-array-arguments': "error";
14
+ readonly '@atlaskit/ui-styling-standard/no-classname-prop': "error";
15
+ readonly '@atlaskit/ui-styling-standard/no-container-queries': "error";
16
+ readonly '@atlaskit/ui-styling-standard/no-dynamic-styles': "error";
17
+ readonly '@atlaskit/ui-styling-standard/no-exported-styles': "error";
18
+ readonly '@atlaskit/ui-styling-standard/no-global-styles': "error";
19
+ readonly '@atlaskit/ui-styling-standard/no-important-styles': "error";
20
+ readonly '@atlaskit/ui-styling-standard/no-imported-style-values': "error";
21
+ readonly '@atlaskit/ui-styling-standard/no-nested-selectors': "error";
22
+ readonly '@atlaskit/ui-styling-standard/no-styled': "error";
23
+ readonly '@atlaskit/ui-styling-standard/no-unsafe-selectors': "error";
24
+ readonly '@atlaskit/ui-styling-standard/no-unsafe-values': "error";
25
+ readonly '@atlaskit/ui-styling-standard/use-compiled': "error";
26
+ readonly '@atlaskit/design-system/consistent-css-prop-usage': readonly ["error", {
27
+ readonly excludeReactComponents: true;
28
+ readonly shouldAlwaysCheckXcss: true;
29
+ }];
30
+ readonly '@atlaskit/design-system/no-css-tagged-template-expression': "error";
31
+ readonly '@atlaskit/design-system/no-keyframes-tagged-template-expression': "error";
32
+ readonly '@atlaskit/design-system/no-styled-tagged-template-expression': "error";
33
+ readonly '@compiled/no-suppress-xcss': "error";
34
+ readonly '@compiled/no-js-xcss': "error";
35
+ readonly '@atlaskit/design-system/no-empty-styled-expression': readonly ["error", {
36
+ readonly importSources: readonly ["@compiled/react", "@atlaskit/css", "@emotion/core", "@emotion/react", "@emotion/styled", "styled-components"];
37
+ }];
38
+ readonly '@atlaskit/design-system/no-invalid-css-map': readonly ["error", {
39
+ readonly allowedFunctionCalls: readonly [readonly ["@atlaskit/tokens", "token"]];
40
+ }];
41
+ readonly '@compiled/jsx-pragma': readonly ["error", {
42
+ readonly runtime: "classic";
43
+ readonly onlyRunIfImportingCompiled: true;
44
+ readonly importSources: readonly ["@atlaskit/css"];
45
+ }];
46
46
  };
47
47
  };
48
48
  export default _default;
@@ -1,4 +1,4 @@
1
- declare const _default: {
1
+ export declare const rules: {
2
2
  'atlaskit-theme': import("eslint").Rule.RuleModule;
3
3
  'convert-props-syntax': import("eslint").Rule.RuleModule;
4
4
  'enforce-style-prop': import("eslint").Rule.RuleModule;
@@ -17,4 +17,3 @@ declare const _default: {
17
17
  'no-unsafe-values': import("eslint").Rule.RuleModule;
18
18
  'use-compiled': import("eslint").Rule.RuleModule;
19
19
  };
20
- export default _default;