@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.
- package/CHANGELOG.md +12 -0
- package/README.md +18 -5
- package/build/tsconfig.json +2 -4
- package/constellation/consistent-css-prop-usage/usage.mdx +5 -0
- package/constellation/index/overview.mdx +29 -11
- package/constellation/local-cx-xcss/usage.mdx +37 -0
- package/constellation/no-css-tagged-template-expression/usage.mdx +5 -0
- package/constellation/no-empty-styled-expression/usage.mdx +5 -0
- package/constellation/no-exported-css/usage.mdx +5 -0
- package/constellation/no-exported-keyframes/usage.mdx +5 -0
- package/constellation/no-invalid-css-map/usage.mdx +5 -0
- package/constellation/no-js-xcss/usage.mdx +5 -0
- package/constellation/no-keyframes-tagged-template-expression/usage.mdx +5 -0
- package/constellation/no-styled-tagged-template-expression/usage.mdx +5 -0
- package/constellation/no-suppress-xcss/usage.mdx +25 -0
- package/dist/cjs/index.codegen.js +26 -0
- package/dist/cjs/index.js +12 -33
- package/dist/cjs/presets/all.codegen.js +39 -0
- package/dist/cjs/presets/recommended.codegen.js +39 -0
- package/dist/cjs/rules/external-rules.js +169 -0
- package/dist/cjs/rules/index.codegen.js +16 -0
- package/dist/cjs/rules/local-cx-xcss/index.js +51 -0
- package/dist/cjs/rules/utils/create-rule.js +43 -0
- package/dist/cjs/rules/utils/is-supported-import.js +98 -0
- package/dist/es2019/index.codegen.js +12 -0
- package/dist/es2019/index.js +1 -33
- package/dist/es2019/presets/all.codegen.js +33 -0
- package/dist/es2019/presets/recommended.codegen.js +33 -0
- package/dist/es2019/rules/external-rules.js +164 -0
- package/dist/es2019/rules/index.codegen.js +9 -0
- package/dist/es2019/rules/local-cx-xcss/index.js +45 -0
- package/dist/es2019/rules/utils/create-rule.js +33 -0
- package/dist/es2019/rules/utils/is-supported-import.js +87 -0
- package/dist/esm/index.codegen.js +12 -0
- package/dist/esm/index.js +1 -33
- package/dist/esm/presets/all.codegen.js +33 -0
- package/dist/esm/presets/recommended.codegen.js +33 -0
- package/dist/esm/rules/external-rules.js +164 -0
- package/dist/esm/rules/index.codegen.js +9 -0
- package/dist/esm/rules/local-cx-xcss/index.js +45 -0
- package/dist/esm/rules/utils/create-rule.js +35 -0
- package/dist/esm/rules/utils/is-supported-import.js +90 -0
- package/dist/types/index.codegen.d.ts +59 -0
- package/dist/types/index.d.ts +1 -0
- package/dist/types/presets/all.codegen.d.ts +34 -0
- package/dist/types/presets/recommended.codegen.d.ts +34 -0
- package/dist/types/rules/external-rules.d.ts +11 -0
- package/dist/types/rules/index.codegen.d.ts +4 -0
- package/dist/types/rules/local-cx-xcss/index.d.ts +3 -0
- package/dist/types/rules/utils/create-rule.d.ts +64 -0
- package/dist/types/rules/utils/is-supported-import.d.ts +34 -0
- package/dist/types-ts4.5/index.codegen.d.ts +59 -0
- package/dist/types-ts4.5/index.d.ts +1 -0
- package/dist/types-ts4.5/presets/all.codegen.d.ts +34 -0
- package/dist/types-ts4.5/presets/recommended.codegen.d.ts +34 -0
- package/dist/types-ts4.5/rules/external-rules.d.ts +11 -0
- package/dist/types-ts4.5/rules/index.codegen.d.ts +4 -0
- package/dist/types-ts4.5/rules/local-cx-xcss/index.d.ts +3 -0
- package/dist/types-ts4.5/rules/utils/create-rule.d.ts +64 -0
- package/dist/types-ts4.5/rules/utils/is-supported-import.d.ts +34 -0
- package/package.json +13 -4
- package/scripts/codegen.tsx +439 -0
- package/src/index.codegen.tsx +14 -0
- package/src/index.tsx +1 -51
- package/src/presets/all.codegen.tsx +78 -0
- package/src/presets/recommended.codegen.tsx +78 -0
- package/src/rules/TEMPLATE.md +29 -0
- package/src/rules/__tests__/utils/_tester.tsx +40 -0
- package/src/rules/external-rules.tsx +205 -0
- package/src/rules/index.codegen.tsx +10 -0
- package/src/rules/local-cx-xcss/README.md +35 -0
- package/src/rules/local-cx-xcss/__tests__/rule.test.tsx +102 -0
- package/src/rules/local-cx-xcss/index.tsx +69 -0
- package/src/rules/utils/create-rule.tsx +80 -0
- package/src/rules/utils/is-supported-import.tsx +130 -0
- package/tsconfig.app.json +5 -1
- package/tsconfig.dev.json +5 -1
- package/tsconfig.json +7 -6
- package/dist/types/src/index.d.ts +0 -29
- 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
|
-
};
|