@atlaskit/eslint-plugin-ui-styling-standard 0.3.0 → 0.4.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.
Files changed (80) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/README.md +18 -5
  3. package/build/tsconfig.json +2 -4
  4. package/constellation/consistent-css-prop-usage/usage.mdx +5 -0
  5. package/constellation/index/overview.mdx +29 -11
  6. package/constellation/local-cx-xcss/usage.mdx +37 -0
  7. package/constellation/no-css-tagged-template-expression/usage.mdx +5 -0
  8. package/constellation/no-empty-styled-expression/usage.mdx +5 -0
  9. package/constellation/no-exported-css/usage.mdx +5 -0
  10. package/constellation/no-exported-keyframes/usage.mdx +5 -0
  11. package/constellation/no-invalid-css-map/usage.mdx +5 -0
  12. package/constellation/no-js-xcss/usage.mdx +5 -0
  13. package/constellation/no-keyframes-tagged-template-expression/usage.mdx +5 -0
  14. package/constellation/no-styled-tagged-template-expression/usage.mdx +5 -0
  15. package/constellation/no-suppress-xcss/usage.mdx +25 -0
  16. package/dist/cjs/index.codegen.js +26 -0
  17. package/dist/cjs/index.js +12 -33
  18. package/dist/cjs/presets/all.codegen.js +39 -0
  19. package/dist/cjs/presets/recommended.codegen.js +39 -0
  20. package/dist/cjs/rules/external-rules.js +169 -0
  21. package/dist/cjs/rules/index.codegen.js +16 -0
  22. package/dist/cjs/rules/local-cx-xcss/index.js +51 -0
  23. package/dist/cjs/rules/utils/create-rule.js +43 -0
  24. package/dist/cjs/rules/utils/is-supported-import.js +98 -0
  25. package/dist/es2019/index.codegen.js +12 -0
  26. package/dist/es2019/index.js +1 -33
  27. package/dist/es2019/presets/all.codegen.js +33 -0
  28. package/dist/es2019/presets/recommended.codegen.js +33 -0
  29. package/dist/es2019/rules/external-rules.js +164 -0
  30. package/dist/es2019/rules/index.codegen.js +9 -0
  31. package/dist/es2019/rules/local-cx-xcss/index.js +45 -0
  32. package/dist/es2019/rules/utils/create-rule.js +33 -0
  33. package/dist/es2019/rules/utils/is-supported-import.js +87 -0
  34. package/dist/esm/index.codegen.js +12 -0
  35. package/dist/esm/index.js +1 -33
  36. package/dist/esm/presets/all.codegen.js +33 -0
  37. package/dist/esm/presets/recommended.codegen.js +33 -0
  38. package/dist/esm/rules/external-rules.js +164 -0
  39. package/dist/esm/rules/index.codegen.js +9 -0
  40. package/dist/esm/rules/local-cx-xcss/index.js +45 -0
  41. package/dist/esm/rules/utils/create-rule.js +35 -0
  42. package/dist/esm/rules/utils/is-supported-import.js +90 -0
  43. package/dist/types/index.codegen.d.ts +59 -0
  44. package/dist/types/index.d.ts +1 -0
  45. package/dist/types/presets/all.codegen.d.ts +34 -0
  46. package/dist/types/presets/recommended.codegen.d.ts +34 -0
  47. package/dist/types/rules/external-rules.d.ts +11 -0
  48. package/dist/types/rules/index.codegen.d.ts +4 -0
  49. package/dist/types/rules/local-cx-xcss/index.d.ts +3 -0
  50. package/dist/types/rules/utils/create-rule.d.ts +64 -0
  51. package/dist/types/rules/utils/is-supported-import.d.ts +34 -0
  52. package/dist/types-ts4.5/index.codegen.d.ts +59 -0
  53. package/dist/types-ts4.5/index.d.ts +1 -0
  54. package/dist/types-ts4.5/presets/all.codegen.d.ts +34 -0
  55. package/dist/types-ts4.5/presets/recommended.codegen.d.ts +34 -0
  56. package/dist/types-ts4.5/rules/external-rules.d.ts +11 -0
  57. package/dist/types-ts4.5/rules/index.codegen.d.ts +4 -0
  58. package/dist/types-ts4.5/rules/local-cx-xcss/index.d.ts +3 -0
  59. package/dist/types-ts4.5/rules/utils/create-rule.d.ts +64 -0
  60. package/dist/types-ts4.5/rules/utils/is-supported-import.d.ts +34 -0
  61. package/package.json +13 -4
  62. package/scripts/codegen.tsx +439 -0
  63. package/src/index.codegen.tsx +14 -0
  64. package/src/index.tsx +1 -51
  65. package/src/presets/all.codegen.tsx +78 -0
  66. package/src/presets/recommended.codegen.tsx +78 -0
  67. package/src/rules/TEMPLATE.md +29 -0
  68. package/src/rules/__tests__/utils/_tester.tsx +40 -0
  69. package/src/rules/external-rules.tsx +205 -0
  70. package/src/rules/index.codegen.tsx +10 -0
  71. package/src/rules/local-cx-xcss/README.md +35 -0
  72. package/src/rules/local-cx-xcss/__tests__/rule.test.tsx +102 -0
  73. package/src/rules/local-cx-xcss/index.tsx +69 -0
  74. package/src/rules/utils/create-rule.tsx +80 -0
  75. package/src/rules/utils/is-supported-import.tsx +130 -0
  76. package/tsconfig.app.json +5 -1
  77. package/tsconfig.dev.json +5 -1
  78. package/tsconfig.json +7 -6
  79. package/dist/types/src/index.d.ts +0 -29
  80. package/dist/types-ts4.5/src/index.d.ts +0 -29
package/tsconfig.dev.json CHANGED
@@ -23,7 +23,8 @@
23
23
  "./__mocks__/**/*",
24
24
  "**/mock.*",
25
25
  "**/codemods/**/*.ts",
26
- "**/codemods/**/*.tsx"
26
+ "**/codemods/**/*.tsx",
27
+ "./**/__fixtures__/**/*.json"
27
28
  ],
28
29
  "exclude": ["./dist/**/*", "./build/**/*", "./node_modules/**/*"],
29
30
  "compilerOptions": {
@@ -35,6 +36,9 @@
35
36
  "references": [
36
37
  {
37
38
  "path": "tsconfig.app.json"
39
+ },
40
+ {
41
+ "path": "../ds-lib/tsconfig.app.json"
38
42
  }
39
43
  ],
40
44
  "files": []
package/tsconfig.json CHANGED
@@ -3,22 +3,23 @@
3
3
  "include": [
4
4
  "__tests__/**/*.ts",
5
5
  "__tests__/**/*.tsx",
6
+ "docs/**/*.ts",
7
+ "docs/**/*.tsx",
8
+ "examples/**/*.ts",
9
+ "examples/**/*.tsx",
6
10
  "src/**/*.ts",
7
11
  "src/**/*.tsx",
8
12
  "scripts"
9
13
  ],
10
- "exclude": [
11
- "src/**/__tests__/*.*",
12
- ],
14
+ "exclude": [],
13
15
  "compilerOptions": {
14
16
  "baseUrl": "./",
15
- "lib": ["ES2021.String"],
16
- "paths": {}
17
+ "lib": ["ES2021.String"]
17
18
  },
18
19
  "ts-node": {
19
20
  // It is faster to skip typechecking.
20
21
  "transpileOnly": true,
21
22
  // We must load files for third party defs - https://typestrong.org/ts-node/docs/types
22
- "files": true,
23
+ "files": true
23
24
  }
24
25
  }
@@ -1,29 +0,0 @@
1
- export declare const rules: {};
2
- export declare const configs: {
3
- recommended: {
4
- plugins: string[];
5
- rules: {
6
- '@atlaskit/design-system/consistent-css-prop-usage': (string | {
7
- excludeReactComponents: boolean;
8
- })[];
9
- '@atlaskit/design-system/local-cx-xcss': string;
10
- '@atlaskit/design-system/no-css-tagged-template-expression': string;
11
- '@atlaskit/design-system/no-keyframes-tagged-template-expression': string;
12
- '@atlaskit/design-system/no-styled-tagged-template-expression': string;
13
- '@compiled/no-suppress-xcss': string;
14
- '@compiled/no-js-xcss': string;
15
- '@atlaskit/design-system/no-empty-styled-expression': (string | {
16
- importSources: readonly string[];
17
- })[];
18
- '@atlaskit/design-system/no-exported-css': (string | {
19
- importSources: readonly string[];
20
- })[];
21
- '@atlaskit/design-system/no-exported-keyframes': (string | {
22
- importSources: readonly string[];
23
- })[];
24
- '@atlaskit/design-system/no-invalid-css-map': (string | {
25
- allowedFunctionCalls: string[][];
26
- })[];
27
- };
28
- };
29
- };
@@ -1,29 +0,0 @@
1
- export declare const rules: {};
2
- export declare const configs: {
3
- recommended: {
4
- plugins: string[];
5
- rules: {
6
- '@atlaskit/design-system/consistent-css-prop-usage': (string | {
7
- excludeReactComponents: boolean;
8
- })[];
9
- '@atlaskit/design-system/local-cx-xcss': string;
10
- '@atlaskit/design-system/no-css-tagged-template-expression': string;
11
- '@atlaskit/design-system/no-keyframes-tagged-template-expression': string;
12
- '@atlaskit/design-system/no-styled-tagged-template-expression': string;
13
- '@compiled/no-suppress-xcss': string;
14
- '@compiled/no-js-xcss': string;
15
- '@atlaskit/design-system/no-empty-styled-expression': (string | {
16
- importSources: readonly string[];
17
- })[];
18
- '@atlaskit/design-system/no-exported-css': (string | {
19
- importSources: readonly string[];
20
- })[];
21
- '@atlaskit/design-system/no-exported-keyframes': (string | {
22
- importSources: readonly string[];
23
- })[];
24
- '@atlaskit/design-system/no-invalid-css-map': (string | {
25
- allowedFunctionCalls: string[][];
26
- })[];
27
- };
28
- };
29
- };