ultracite 3.2.4 → 3.3.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.
@@ -1,17 +0,0 @@
1
- import plugin from 'eslint-plugin-storybook';
2
-
3
- const { rules } = plugin;
4
-
5
- const availableKeys = Object.keys(rules).filter(
6
- (key) => !rules[key].meta.deprecated
7
- );
8
-
9
- const baseRules = Object.fromEntries(
10
- availableKeys.map((key) => [`storybook/${key}`, 'error'])
11
- );
12
-
13
- const overrideRules = {};
14
-
15
- const config = Object.assign(baseRules, overrideRules);
16
-
17
- export default config;
@@ -1,22 +0,0 @@
1
- import plugin from 'eslint-plugin-tailwindcss';
2
-
3
- const { rules } = plugin;
4
-
5
- const availableKeys = Object.keys(rules).filter(
6
- (key) => !rules[key].meta.deprecated
7
- );
8
-
9
- const baseRules = Object.fromEntries(
10
- availableKeys.map((key) => [`tailwindcss/${key}`, 'error'])
11
- );
12
-
13
- const overrideRules = {
14
- 'tailwindcss/no-arbitrary-value': 'off',
15
-
16
- // This is handled by prettier
17
- 'tailwindcss/classnames-order': 'off',
18
- };
19
-
20
- const config = Object.assign(baseRules, overrideRules);
21
-
22
- export default config;
@@ -1,62 +0,0 @@
1
- import typescript from '@typescript-eslint/eslint-plugin';
2
-
3
- const { rules } = typescript;
4
-
5
- const availableKeys = Object.keys(rules).filter(
6
- (key) => !rules[key].meta.deprecated
7
- );
8
-
9
- const baseRules = Object.fromEntries(
10
- availableKeys.map((key) => [`@typescript-eslint/${key}`, 'error'])
11
- );
12
-
13
- const overrideRules = {
14
- '@typescript-eslint/consistent-type-definitions': ['error', 'type'],
15
- '@typescript-eslint/explicit-function-return-type': 'off',
16
- '@typescript-eslint/naming-convention': [
17
- 'error',
18
- {
19
- selector: 'default',
20
- format: ['camelCase', 'PascalCase', 'snake_case'],
21
- },
22
- {
23
- selector: 'objectLiteralProperty',
24
- format: null,
25
- modifiers: ['requiresQuotes'],
26
- },
27
- ],
28
- '@typescript-eslint/no-confusing-void-expression': 'off',
29
- '@typescript-eslint/no-misused-promises': 'off',
30
- '@typescript-eslint/no-type-alias': 'off',
31
- '@typescript-eslint/prefer-readonly': 'off',
32
- '@typescript-eslint/prefer-readonly-parameter-types': 'off',
33
- '@typescript-eslint/sort-type-union-intersection-members': 'off',
34
- '@typescript-eslint/strict-boolean-expressions': 'off',
35
- '@typescript-eslint/no-magic-numbers': 'off',
36
-
37
- // Disabled for Prettier
38
- '@typescript-eslint/block-spacing': 'off',
39
- '@typescript-eslint/brace-style': 'off',
40
- '@typescript-eslint/comma-dangle': 'off',
41
- '@typescript-eslint/comma-spacing': 'off',
42
- '@typescript-eslint/func-call-spacing': 'off',
43
- '@typescript-eslint/indent': 'off',
44
- '@typescript-eslint/key-spacing': 'off',
45
- '@typescript-eslint/keyword-spacing': 'off',
46
- '@typescript-eslint/lines-around-comment': 'off',
47
- '@typescript-eslint/lines-between-class-members': 'off',
48
- '@typescript-eslint/member-delimiter-style': 'off',
49
- '@typescript-eslint/no-extra-parens': 'off',
50
- '@typescript-eslint/object-curly-spacing': 'off',
51
- '@typescript-eslint/padding-line-between-statements': 'off',
52
- '@typescript-eslint/quotes': 'off',
53
- '@typescript-eslint/semi': 'off',
54
- '@typescript-eslint/space-before-blocks': 'off',
55
- '@typescript-eslint/space-before-function-paren': 'off',
56
- '@typescript-eslint/space-infix-ops': 'off',
57
- '@typescript-eslint/type-annotation-spacing': 'off',
58
- };
59
-
60
- const config = Object.assign(baseRules, overrideRules);
61
-
62
- export default config;
@@ -1,17 +0,0 @@
1
- import plugin from 'eslint-plugin-unused-imports';
2
-
3
- const { rules } = plugin;
4
-
5
- const availableKeys = Object.keys(rules).filter(
6
- (key) => !rules[key].meta.deprecated
7
- );
8
-
9
- const baseRules = Object.fromEntries(
10
- availableKeys.map((key) => [`unused-imports/${key}`, 'error'])
11
- );
12
-
13
- const overrideRules = {};
14
-
15
- const config = Object.assign(baseRules, overrideRules);
16
-
17
- export default config;
package/stylelint.js DELETED
@@ -1,35 +0,0 @@
1
- /* eslint-disable import/no-commonjs, import/unambiguous */
2
-
3
- module.exports = {
4
- plugins: ['stylelint-prettier'],
5
- extends: ['stylelint-config-standard', 'stylelint-config-idiomatic-order'],
6
- rules: {
7
- 'at-rule-no-unknown': [
8
- true,
9
- {
10
- ignoreAtRules: [
11
- 'tailwind',
12
- 'apply',
13
- 'layer',
14
- 'variants',
15
- 'responsive',
16
- 'screen',
17
- ],
18
- },
19
- ],
20
- 'declaration-property-value-no-unknown': true,
21
- 'no-descending-specificity': null,
22
- 'declaration-block-no-redundant-longhand-properties': [
23
- true,
24
- {
25
- ignoreShorthands: ['/flex/'],
26
- },
27
- ],
28
- 'selector-pseudo-class-no-unknown': [
29
- true,
30
- {
31
- ignorePseudoClasses: ['global'],
32
- },
33
- ],
34
- },
35
- };
package/test.css DELETED
@@ -1,7 +0,0 @@
1
- @tailwind base;
2
- @tailwind components;
3
- @tailwind utilities;
4
-
5
- html {
6
- text-rendering: optimizelegibility;
7
- }
package/test.tsx DELETED
@@ -1,11 +0,0 @@
1
- function x() {
2
- return 3;
3
- }
4
-
5
- function z() {}
6
-
7
- const y = x();
8
-
9
- const something_NOT_recommended = true;
10
-
11
- const Component = () => <div className="mx-5 my-5" />;
package/tsconfig.json DELETED
@@ -1,10 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "noEmit": true,
4
- "incremental": true,
5
- "jsx": "preserve",
6
- "strictNullChecks": true
7
- },
8
- "include": ["test.tsx", "eslint.config.mjs"],
9
- "exclude": []
10
- }