@atlaskit/eslint-plugin-ui-styling-standard 1.4.5 → 1.4.6

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 (40) hide show
  1. package/CHANGELOG.md +7 -5
  2. package/dist/cjs/index.codegen.js +3 -3
  3. package/dist/cjs/presets/all-flat.codegen.js +5 -3
  4. package/dist/cjs/presets/all.codegen.js +5 -3
  5. package/dist/cjs/presets/recommended-flat.codegen.js +5 -3
  6. package/dist/cjs/presets/recommended.codegen.js +5 -3
  7. package/dist/cjs/rules/index.codegen.js +1 -1
  8. package/dist/cjs/rules/no-unsafe-selectors/index.js +1 -1
  9. package/dist/cjs/rules/no-unsafe-selectors/lint-selector.js +1 -1
  10. package/dist/es2019/index.codegen.js +4 -5
  11. package/dist/es2019/presets/all-flat.codegen.js +5 -3
  12. package/dist/es2019/presets/all.codegen.js +5 -3
  13. package/dist/es2019/presets/recommended-flat.codegen.js +5 -3
  14. package/dist/es2019/presets/recommended.codegen.js +5 -3
  15. package/dist/es2019/rules/index.codegen.js +2 -1
  16. package/dist/es2019/rules/no-unsafe-selectors/index.js +1 -1
  17. package/dist/es2019/rules/no-unsafe-selectors/lint-selector.js +1 -1
  18. package/dist/esm/index.codegen.js +4 -4
  19. package/dist/esm/presets/all-flat.codegen.js +5 -3
  20. package/dist/esm/presets/all.codegen.js +5 -3
  21. package/dist/esm/presets/recommended-flat.codegen.js +5 -3
  22. package/dist/esm/presets/recommended.codegen.js +5 -3
  23. package/dist/esm/rules/index.codegen.js +2 -1
  24. package/dist/esm/rules/no-unsafe-selectors/index.js +1 -1
  25. package/dist/esm/rules/no-unsafe-selectors/lint-selector.js +1 -1
  26. package/dist/types/index.codegen.d.ts +9 -718
  27. package/dist/types/presets/all-flat.codegen.d.ts +4 -40
  28. package/dist/types/presets/all.codegen.d.ts +4 -37
  29. package/dist/types/presets/recommended-flat.codegen.d.ts +4 -40
  30. package/dist/types/presets/recommended.codegen.d.ts +4 -37
  31. package/dist/types/rules/index.codegen.d.ts +7 -19
  32. package/dist/types/rules/utils/create-rule.d.ts +3 -1
  33. package/dist/types-ts4.5/index.codegen.d.ts +9 -1078
  34. package/dist/types-ts4.5/presets/all-flat.codegen.d.ts +4 -61
  35. package/dist/types-ts4.5/presets/all.codegen.d.ts +4 -61
  36. package/dist/types-ts4.5/presets/recommended-flat.codegen.d.ts +4 -61
  37. package/dist/types-ts4.5/presets/recommended.codegen.d.ts +4 -61
  38. package/dist/types-ts4.5/rules/index.codegen.d.ts +7 -19
  39. package/dist/types-ts4.5/rules/utils/create-rule.d.ts +3 -1
  40. package/package.json +3 -7
@@ -1,65 +1,8 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::4595bc1a07f9da4186e2df84cea56831>>
3
+ * @codegen <<SignedSource::a031ffa483e224bf49a4e9eec39acb69>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
5
5
  */
6
- import * as atlaskitDesignSystemPlugin from '@atlaskit/eslint-plugin-design-system';
7
- declare const _default: {
8
- readonly plugins: {
9
- readonly '@atlaskit/design-system': typeof atlaskitDesignSystemPlugin;
10
- };
11
- readonly rules: {
12
- readonly '@atlaskit/ui-styling-standard/atlaskit-theme': "error";
13
- readonly '@atlaskit/ui-styling-standard/convert-props-syntax': "error";
14
- readonly '@atlaskit/ui-styling-standard/enforce-style-prop': "error";
15
- readonly '@atlaskit/ui-styling-standard/local-cx-xcss': "error";
16
- readonly '@atlaskit/ui-styling-standard/no-array-arguments': "error";
17
- readonly '@atlaskit/ui-styling-standard/no-classname-prop': "error";
18
- readonly '@atlaskit/ui-styling-standard/no-container-queries': "error";
19
- readonly '@atlaskit/ui-styling-standard/no-dynamic-styles': "error";
20
- readonly '@atlaskit/ui-styling-standard/no-exported-styles': "error";
21
- readonly '@atlaskit/ui-styling-standard/no-global-styles': "error";
22
- readonly '@atlaskit/ui-styling-standard/no-important-styles': "error";
23
- readonly '@atlaskit/ui-styling-standard/no-imported-style-values': "error";
24
- readonly '@atlaskit/ui-styling-standard/no-nested-selectors': "error";
25
- readonly '@atlaskit/ui-styling-standard/no-styled': "error";
26
- readonly '@atlaskit/ui-styling-standard/no-unsafe-selectors': "error";
27
- readonly '@atlaskit/ui-styling-standard/no-unsafe-values': "error";
28
- readonly '@atlaskit/ui-styling-standard/use-compiled': "error";
29
- readonly '@atlaskit/design-system/consistent-css-prop-usage': readonly [
30
- "error",
31
- {
32
- readonly excludeReactComponents: true;
33
- readonly shouldAlwaysCheckXcss: true;
34
- }
35
- ];
36
- readonly '@atlaskit/design-system/no-css-tagged-template-expression': "error";
37
- readonly '@atlaskit/design-system/no-keyframes-tagged-template-expression': "error";
38
- readonly '@atlaskit/design-system/no-styled-tagged-template-expression': "error";
39
- readonly '@atlaskit/design-system/no-empty-styled-expression': readonly [
40
- "error",
41
- {
42
- readonly importSources: readonly [
43
- "@compiled/react",
44
- "@atlaskit/css",
45
- "@emotion/core",
46
- "@emotion/react",
47
- "@emotion/styled",
48
- "styled-components"
49
- ];
50
- }
51
- ];
52
- readonly '@atlaskit/design-system/no-invalid-css-map': readonly [
53
- "error",
54
- {
55
- readonly allowedFunctionCalls: readonly [
56
- readonly [
57
- "@atlaskit/tokens",
58
- "token"
59
- ]
60
- ];
61
- }
62
- ];
63
- };
64
- };
65
- export default _default;
6
+ import type { Linter } from 'eslint';
7
+ declare const config: Linter.FlatConfig;
8
+ export default config;
@@ -1,65 +1,8 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::884e28457d7860b1abca070fca8ab853>>
3
+ * @codegen <<SignedSource::778759f32da9fc9b6d182dba1b796640>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
5
5
  */
6
- declare const _default: {
7
- readonly plugins: readonly [
8
- "@atlaskit/ui-styling-standard",
9
- "@atlaskit/design-system"
10
- ];
11
- readonly rules: {
12
- readonly '@atlaskit/ui-styling-standard/atlaskit-theme': "error";
13
- readonly '@atlaskit/ui-styling-standard/convert-props-syntax': "error";
14
- readonly '@atlaskit/ui-styling-standard/enforce-style-prop': "error";
15
- readonly '@atlaskit/ui-styling-standard/local-cx-xcss': "error";
16
- readonly '@atlaskit/ui-styling-standard/no-array-arguments': "error";
17
- readonly '@atlaskit/ui-styling-standard/no-classname-prop': "error";
18
- readonly '@atlaskit/ui-styling-standard/no-container-queries': "error";
19
- readonly '@atlaskit/ui-styling-standard/no-dynamic-styles': "error";
20
- readonly '@atlaskit/ui-styling-standard/no-exported-styles': "error";
21
- readonly '@atlaskit/ui-styling-standard/no-global-styles': "error";
22
- readonly '@atlaskit/ui-styling-standard/no-important-styles': "error";
23
- readonly '@atlaskit/ui-styling-standard/no-imported-style-values': "error";
24
- readonly '@atlaskit/ui-styling-standard/no-nested-selectors': "error";
25
- readonly '@atlaskit/ui-styling-standard/no-styled': "error";
26
- readonly '@atlaskit/ui-styling-standard/no-unsafe-selectors': "error";
27
- readonly '@atlaskit/ui-styling-standard/no-unsafe-values': "error";
28
- readonly '@atlaskit/ui-styling-standard/use-compiled': "error";
29
- readonly '@atlaskit/design-system/consistent-css-prop-usage': readonly [
30
- "error",
31
- {
32
- readonly excludeReactComponents: true;
33
- readonly shouldAlwaysCheckXcss: true;
34
- }
35
- ];
36
- readonly '@atlaskit/design-system/no-css-tagged-template-expression': "error";
37
- readonly '@atlaskit/design-system/no-keyframes-tagged-template-expression': "error";
38
- readonly '@atlaskit/design-system/no-styled-tagged-template-expression': "error";
39
- readonly '@atlaskit/design-system/no-empty-styled-expression': readonly [
40
- "error",
41
- {
42
- readonly importSources: readonly [
43
- "@compiled/react",
44
- "@atlaskit/css",
45
- "@emotion/core",
46
- "@emotion/react",
47
- "@emotion/styled",
48
- "styled-components"
49
- ];
50
- }
51
- ];
52
- readonly '@atlaskit/design-system/no-invalid-css-map': readonly [
53
- "error",
54
- {
55
- readonly allowedFunctionCalls: readonly [
56
- readonly [
57
- "@atlaskit/tokens",
58
- "token"
59
- ]
60
- ];
61
- }
62
- ];
63
- };
64
- };
65
- export default _default;
6
+ import type { ESLint } from 'eslint';
7
+ declare const config: ESLint.ConfigData;
8
+ export default config;
@@ -1,65 +1,8 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::4595bc1a07f9da4186e2df84cea56831>>
3
+ * @codegen <<SignedSource::a031ffa483e224bf49a4e9eec39acb69>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
5
5
  */
6
- import * as atlaskitDesignSystemPlugin from '@atlaskit/eslint-plugin-design-system';
7
- declare const _default: {
8
- readonly plugins: {
9
- readonly '@atlaskit/design-system': typeof atlaskitDesignSystemPlugin;
10
- };
11
- readonly rules: {
12
- readonly '@atlaskit/ui-styling-standard/atlaskit-theme': "error";
13
- readonly '@atlaskit/ui-styling-standard/convert-props-syntax': "error";
14
- readonly '@atlaskit/ui-styling-standard/enforce-style-prop': "error";
15
- readonly '@atlaskit/ui-styling-standard/local-cx-xcss': "error";
16
- readonly '@atlaskit/ui-styling-standard/no-array-arguments': "error";
17
- readonly '@atlaskit/ui-styling-standard/no-classname-prop': "error";
18
- readonly '@atlaskit/ui-styling-standard/no-container-queries': "error";
19
- readonly '@atlaskit/ui-styling-standard/no-dynamic-styles': "error";
20
- readonly '@atlaskit/ui-styling-standard/no-exported-styles': "error";
21
- readonly '@atlaskit/ui-styling-standard/no-global-styles': "error";
22
- readonly '@atlaskit/ui-styling-standard/no-important-styles': "error";
23
- readonly '@atlaskit/ui-styling-standard/no-imported-style-values': "error";
24
- readonly '@atlaskit/ui-styling-standard/no-nested-selectors': "error";
25
- readonly '@atlaskit/ui-styling-standard/no-styled': "error";
26
- readonly '@atlaskit/ui-styling-standard/no-unsafe-selectors': "error";
27
- readonly '@atlaskit/ui-styling-standard/no-unsafe-values': "error";
28
- readonly '@atlaskit/ui-styling-standard/use-compiled': "error";
29
- readonly '@atlaskit/design-system/consistent-css-prop-usage': readonly [
30
- "error",
31
- {
32
- readonly excludeReactComponents: true;
33
- readonly shouldAlwaysCheckXcss: true;
34
- }
35
- ];
36
- readonly '@atlaskit/design-system/no-css-tagged-template-expression': "error";
37
- readonly '@atlaskit/design-system/no-keyframes-tagged-template-expression': "error";
38
- readonly '@atlaskit/design-system/no-styled-tagged-template-expression': "error";
39
- readonly '@atlaskit/design-system/no-empty-styled-expression': readonly [
40
- "error",
41
- {
42
- readonly importSources: readonly [
43
- "@compiled/react",
44
- "@atlaskit/css",
45
- "@emotion/core",
46
- "@emotion/react",
47
- "@emotion/styled",
48
- "styled-components"
49
- ];
50
- }
51
- ];
52
- readonly '@atlaskit/design-system/no-invalid-css-map': readonly [
53
- "error",
54
- {
55
- readonly allowedFunctionCalls: readonly [
56
- readonly [
57
- "@atlaskit/tokens",
58
- "token"
59
- ]
60
- ];
61
- }
62
- ];
63
- };
64
- };
65
- export default _default;
6
+ import type { Linter } from 'eslint';
7
+ declare const config: Linter.FlatConfig;
8
+ export default config;
@@ -1,65 +1,8 @@
1
1
  /**
2
2
  * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
- * @codegen <<SignedSource::884e28457d7860b1abca070fca8ab853>>
3
+ * @codegen <<SignedSource::778759f32da9fc9b6d182dba1b796640>>
4
4
  * @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
5
5
  */
6
- declare const _default: {
7
- readonly plugins: readonly [
8
- "@atlaskit/ui-styling-standard",
9
- "@atlaskit/design-system"
10
- ];
11
- readonly rules: {
12
- readonly '@atlaskit/ui-styling-standard/atlaskit-theme': "error";
13
- readonly '@atlaskit/ui-styling-standard/convert-props-syntax': "error";
14
- readonly '@atlaskit/ui-styling-standard/enforce-style-prop': "error";
15
- readonly '@atlaskit/ui-styling-standard/local-cx-xcss': "error";
16
- readonly '@atlaskit/ui-styling-standard/no-array-arguments': "error";
17
- readonly '@atlaskit/ui-styling-standard/no-classname-prop': "error";
18
- readonly '@atlaskit/ui-styling-standard/no-container-queries': "error";
19
- readonly '@atlaskit/ui-styling-standard/no-dynamic-styles': "error";
20
- readonly '@atlaskit/ui-styling-standard/no-exported-styles': "error";
21
- readonly '@atlaskit/ui-styling-standard/no-global-styles': "error";
22
- readonly '@atlaskit/ui-styling-standard/no-important-styles': "error";
23
- readonly '@atlaskit/ui-styling-standard/no-imported-style-values': "error";
24
- readonly '@atlaskit/ui-styling-standard/no-nested-selectors': "error";
25
- readonly '@atlaskit/ui-styling-standard/no-styled': "error";
26
- readonly '@atlaskit/ui-styling-standard/no-unsafe-selectors': "error";
27
- readonly '@atlaskit/ui-styling-standard/no-unsafe-values': "error";
28
- readonly '@atlaskit/ui-styling-standard/use-compiled': "error";
29
- readonly '@atlaskit/design-system/consistent-css-prop-usage': readonly [
30
- "error",
31
- {
32
- readonly excludeReactComponents: true;
33
- readonly shouldAlwaysCheckXcss: true;
34
- }
35
- ];
36
- readonly '@atlaskit/design-system/no-css-tagged-template-expression': "error";
37
- readonly '@atlaskit/design-system/no-keyframes-tagged-template-expression': "error";
38
- readonly '@atlaskit/design-system/no-styled-tagged-template-expression': "error";
39
- readonly '@atlaskit/design-system/no-empty-styled-expression': readonly [
40
- "error",
41
- {
42
- readonly importSources: readonly [
43
- "@compiled/react",
44
- "@atlaskit/css",
45
- "@emotion/core",
46
- "@emotion/react",
47
- "@emotion/styled",
48
- "styled-components"
49
- ];
50
- }
51
- ];
52
- readonly '@atlaskit/design-system/no-invalid-css-map': readonly [
53
- "error",
54
- {
55
- readonly allowedFunctionCalls: readonly [
56
- readonly [
57
- "@atlaskit/tokens",
58
- "token"
59
- ]
60
- ];
61
- }
62
- ];
63
- };
64
- };
65
- export default _default;
6
+ import type { ESLint } from 'eslint';
7
+ declare const config: ESLint.ConfigData;
8
+ export default config;
@@ -1,19 +1,7 @@
1
- export declare const rules: {
2
- 'atlaskit-theme': import("eslint").Rule.RuleModule;
3
- 'convert-props-syntax': import("eslint").Rule.RuleModule;
4
- 'enforce-style-prop': import("eslint").Rule.RuleModule;
5
- 'local-cx-xcss': import("eslint").Rule.RuleModule;
6
- 'no-array-arguments': import("eslint").Rule.RuleModule;
7
- 'no-classname-prop': import("eslint").Rule.RuleModule;
8
- 'no-container-queries': import("eslint").Rule.RuleModule;
9
- 'no-dynamic-styles': import("eslint").Rule.RuleModule;
10
- 'no-exported-styles': import("eslint").Rule.RuleModule;
11
- 'no-global-styles': import("eslint").Rule.RuleModule;
12
- 'no-important-styles': import("eslint").Rule.RuleModule;
13
- 'no-imported-style-values': import("eslint").Rule.RuleModule;
14
- 'no-nested-selectors': import("eslint").Rule.RuleModule;
15
- 'no-styled': import("eslint").Rule.RuleModule;
16
- 'no-unsafe-selectors': import("eslint").Rule.RuleModule;
17
- 'no-unsafe-values': import("eslint").Rule.RuleModule;
18
- 'use-compiled': import("eslint").Rule.RuleModule;
19
- };
1
+ /**
2
+ * THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
3
+ * @codegen <<SignedSource::34a66bfc786bfa49ea7d4ad66ffe81f7>>
4
+ * @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
5
+ */
6
+ import type { Rule } from 'eslint';
7
+ export declare const rules: Record<string, Rule.RuleModule>;
@@ -1,7 +1,9 @@
1
+ import type { Rule } from 'eslint';
2
+ import { type LintRule } from '@atlaskit/eslint-utils/create-rule';
1
3
  /**
2
4
  * Tiny wrapped over the ESLint rule module type that ensures
3
5
  * there is a docs link to our ESLint plugin documentation page,
4
6
  * as well as improving type support.
5
7
  */
6
- export declare const createLintRule: (rule: import("@atlaskit/eslint-utils/create-rule").LintRule) => import("eslint").Rule.RuleModule;
8
+ export declare const createLintRule: (rule: LintRule) => Rule.RuleModule;
7
9
  export declare function getRuleUrl(ruleName: string): string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/eslint-plugin-ui-styling-standard",
3
- "version": "1.4.5",
3
+ "version": "1.4.6",
4
4
  "author": "Atlassian Pty Ltd",
5
5
  "description": "The eslint plugin to enforce and educate on Atlassian's UI Styling Standard",
6
6
  "license": "Apache-2.0",
@@ -35,12 +35,8 @@
35
35
  "**/*.compiled.css"
36
36
  ],
37
37
  "atlaskit:src": "src/index.tsx",
38
- "af:exports": {
39
- ".": "./src/index.tsx",
40
- "./package.json": "./package.json"
41
- },
42
38
  "dependencies": {
43
- "@atlaskit/eslint-plugin-design-system": "^13.20.0",
39
+ "@atlaskit/eslint-plugin-design-system": "^13.27.0",
44
40
  "@atlaskit/eslint-utils": "^2.0.0",
45
41
  "@babel/runtime": "^7.0.0",
46
42
  "@typescript-eslint/utils": "^7.1.0",
@@ -55,7 +51,7 @@
55
51
  },
56
52
  "devDependencies": {
57
53
  "@af/formatting": "workspace:^",
58
- "@atlaskit/ds-lib": "^5.0.0",
54
+ "@atlaskit/ds-lib": "^5.3.0",
59
55
  "@atlassian/codegen": "^0.1.0",
60
56
  "@atlassian/ts-loader": "^0.1.0",
61
57
  "@eslint/eslintrc": "^3.0.2",