@atlaskit/eslint-plugin-ui-styling-standard 1.4.5 → 1.5.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/CHANGELOG.md +18 -5
- package/README.md +1 -0
- package/dist/cjs/index.codegen.js +3 -3
- package/dist/cjs/presets/all-flat.codegen.js +6 -3
- package/dist/cjs/presets/all.codegen.js +6 -3
- package/dist/cjs/presets/recommended-flat.codegen.js +6 -3
- package/dist/cjs/presets/recommended.codegen.js +6 -3
- package/dist/cjs/rules/index.codegen.js +3 -1
- package/dist/cjs/rules/no-important-styles/index.js +95 -28
- package/dist/cjs/rules/no-unsafe-selectors/index.js +1 -1
- package/dist/cjs/rules/no-unsafe-selectors/lint-selector.js +1 -1
- package/dist/cjs/rules/no-unused-cssmap-properties/index.js +192 -0
- package/dist/es2019/index.codegen.js +4 -5
- package/dist/es2019/presets/all-flat.codegen.js +6 -3
- package/dist/es2019/presets/all.codegen.js +6 -3
- package/dist/es2019/presets/recommended-flat.codegen.js +6 -3
- package/dist/es2019/presets/recommended.codegen.js +6 -3
- package/dist/es2019/rules/index.codegen.js +4 -1
- package/dist/es2019/rules/no-important-styles/index.js +65 -13
- package/dist/es2019/rules/no-unsafe-selectors/index.js +1 -1
- package/dist/es2019/rules/no-unsafe-selectors/lint-selector.js +1 -1
- package/dist/es2019/rules/no-unused-cssmap-properties/index.js +182 -0
- package/dist/esm/index.codegen.js +4 -4
- package/dist/esm/presets/all-flat.codegen.js +6 -3
- package/dist/esm/presets/all.codegen.js +6 -3
- package/dist/esm/presets/recommended-flat.codegen.js +6 -3
- package/dist/esm/presets/recommended.codegen.js +6 -3
- package/dist/esm/rules/index.codegen.js +4 -1
- package/dist/esm/rules/no-important-styles/index.js +95 -27
- package/dist/esm/rules/no-unsafe-selectors/index.js +1 -1
- package/dist/esm/rules/no-unsafe-selectors/lint-selector.js +1 -1
- package/dist/esm/rules/no-unused-cssmap-properties/index.js +186 -0
- package/dist/types/index.codegen.d.ts +9 -718
- package/dist/types/presets/all-flat.codegen.d.ts +4 -40
- package/dist/types/presets/all.codegen.d.ts +4 -37
- package/dist/types/presets/recommended-flat.codegen.d.ts +4 -40
- package/dist/types/presets/recommended.codegen.d.ts +4 -37
- package/dist/types/rules/index.codegen.d.ts +7 -19
- package/dist/types/rules/no-unused-cssmap-properties/index.d.ts +3 -0
- package/dist/types/rules/utils/create-rule.d.ts +3 -1
- package/dist/types-ts4.5/index.codegen.d.ts +9 -1078
- package/dist/types-ts4.5/presets/all-flat.codegen.d.ts +4 -61
- package/dist/types-ts4.5/presets/all.codegen.d.ts +4 -61
- package/dist/types-ts4.5/presets/recommended-flat.codegen.d.ts +4 -61
- package/dist/types-ts4.5/presets/recommended.codegen.d.ts +4 -61
- package/dist/types-ts4.5/rules/index.codegen.d.ts +7 -19
- package/dist/types-ts4.5/rules/no-unused-cssmap-properties/index.d.ts +3 -0
- package/dist/types-ts4.5/rules/utils/create-rule.d.ts +3 -1
- package/package.json +3 -7
|
@@ -1,44 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::f99588f71d6b353cefbed97fd172e433>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
5
5
|
*/
|
|
6
|
-
import
|
|
7
|
-
declare const
|
|
8
|
-
|
|
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 ["error", {
|
|
30
|
-
readonly excludeReactComponents: true;
|
|
31
|
-
readonly shouldAlwaysCheckXcss: true;
|
|
32
|
-
}];
|
|
33
|
-
readonly '@atlaskit/design-system/no-css-tagged-template-expression': "error";
|
|
34
|
-
readonly '@atlaskit/design-system/no-keyframes-tagged-template-expression': "error";
|
|
35
|
-
readonly '@atlaskit/design-system/no-styled-tagged-template-expression': "error";
|
|
36
|
-
readonly '@atlaskit/design-system/no-empty-styled-expression': readonly ["error", {
|
|
37
|
-
readonly importSources: readonly ["@compiled/react", "@atlaskit/css", "@emotion/core", "@emotion/react", "@emotion/styled", "styled-components"];
|
|
38
|
-
}];
|
|
39
|
-
readonly '@atlaskit/design-system/no-invalid-css-map': readonly ["error", {
|
|
40
|
-
readonly allowedFunctionCalls: readonly [readonly ["@atlaskit/tokens", "token"]];
|
|
41
|
-
}];
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
export default _default;
|
|
6
|
+
import type { Linter } from 'eslint';
|
|
7
|
+
declare const config: Linter.FlatConfig;
|
|
8
|
+
export default config;
|
|
@@ -1,41 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::8f28dfef84548edbe33f59201f295cc5>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
5
5
|
*/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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 '@atlaskit/design-system/no-empty-styled-expression': readonly ["error", {
|
|
34
|
-
readonly importSources: readonly ["@compiled/react", "@atlaskit/css", "@emotion/core", "@emotion/react", "@emotion/styled", "styled-components"];
|
|
35
|
-
}];
|
|
36
|
-
readonly '@atlaskit/design-system/no-invalid-css-map': readonly ["error", {
|
|
37
|
-
readonly allowedFunctionCalls: readonly [readonly ["@atlaskit/tokens", "token"]];
|
|
38
|
-
}];
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
export default _default;
|
|
6
|
+
import type { ESLint } from 'eslint';
|
|
7
|
+
declare const config: ESLint.ConfigData;
|
|
8
|
+
export default config;
|
|
@@ -1,44 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::f99588f71d6b353cefbed97fd172e433>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
5
5
|
*/
|
|
6
|
-
import
|
|
7
|
-
declare const
|
|
8
|
-
|
|
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 ["error", {
|
|
30
|
-
readonly excludeReactComponents: true;
|
|
31
|
-
readonly shouldAlwaysCheckXcss: true;
|
|
32
|
-
}];
|
|
33
|
-
readonly '@atlaskit/design-system/no-css-tagged-template-expression': "error";
|
|
34
|
-
readonly '@atlaskit/design-system/no-keyframes-tagged-template-expression': "error";
|
|
35
|
-
readonly '@atlaskit/design-system/no-styled-tagged-template-expression': "error";
|
|
36
|
-
readonly '@atlaskit/design-system/no-empty-styled-expression': readonly ["error", {
|
|
37
|
-
readonly importSources: readonly ["@compiled/react", "@atlaskit/css", "@emotion/core", "@emotion/react", "@emotion/styled", "styled-components"];
|
|
38
|
-
}];
|
|
39
|
-
readonly '@atlaskit/design-system/no-invalid-css-map': readonly ["error", {
|
|
40
|
-
readonly allowedFunctionCalls: readonly [readonly ["@atlaskit/tokens", "token"]];
|
|
41
|
-
}];
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
export default _default;
|
|
6
|
+
import type { Linter } from 'eslint';
|
|
7
|
+
declare const config: Linter.FlatConfig;
|
|
8
|
+
export default config;
|
|
@@ -1,41 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* THIS FILE WAS CREATED VIA CODEGEN DO NOT MODIFY {@see http://go/af-codegen}
|
|
3
|
-
* @codegen <<SignedSource::
|
|
3
|
+
* @codegen <<SignedSource::8f28dfef84548edbe33f59201f295cc5>>
|
|
4
4
|
* @codegenCommand yarn workspace @atlaskit/eslint-plugin-ui-styling-standard codegen
|
|
5
5
|
*/
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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 '@atlaskit/design-system/no-empty-styled-expression': readonly ["error", {
|
|
34
|
-
readonly importSources: readonly ["@compiled/react", "@atlaskit/css", "@emotion/core", "@emotion/react", "@emotion/styled", "styled-components"];
|
|
35
|
-
}];
|
|
36
|
-
readonly '@atlaskit/design-system/no-invalid-css-map': readonly ["error", {
|
|
37
|
-
readonly allowedFunctionCalls: readonly [readonly ["@atlaskit/tokens", "token"]];
|
|
38
|
-
}];
|
|
39
|
-
};
|
|
40
|
-
};
|
|
41
|
-
export default _default;
|
|
6
|
+
import type { ESLint } from 'eslint';
|
|
7
|
+
declare const config: ESLint.ConfigData;
|
|
8
|
+
export default config;
|
|
@@ -1,19 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
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::2eab912b0c44d0fcbdc2f0b79cb42fa9>>
|
|
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:
|
|
8
|
+
export declare const createLintRule: (rule: LintRule) => Rule.RuleModule;
|
|
7
9
|
export declare function getRuleUrl(ruleName: string): string;
|