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.
- package/dist/eslint.config.d.mts +685 -0
- package/dist/eslint.config.mjs +1 -0
- package/package.json +11 -2
- package/.gitattributes +0 -2
- package/.github/FUNDING.yml +0 -1
- package/.github/workflows/push.yaml +0 -45
- package/.vscode/settings.json +0 -19
- package/CHANGELOG.md +0 -1388
- package/SECURITY.md +0 -9
- package/eslint.config.mjs +0 -173
- package/prettier.js +0 -13
- package/rules/cypress.mjs +0 -17
- package/rules/eslint-typescript.mjs +0 -43
- package/rules/eslint.mjs +0 -189
- package/rules/import.mjs +0 -44
- package/rules/jest.mjs +0 -17
- package/rules/jsx-a11y.mjs +0 -27
- package/rules/n.mjs +0 -24
- package/rules/next.mjs +0 -17
- package/rules/prettier.mjs +0 -5
- package/rules/promise.mjs +0 -20
- package/rules/react.mjs +0 -46
- package/rules/reactHooks.mjs +0 -23
- package/rules/storybook.mjs +0 -17
- package/rules/tailwindcss.mjs +0 -22
- package/rules/typescript.mjs +0 -62
- package/rules/unused-imports.mjs +0 -17
- package/stylelint.js +0 -35
- package/test.css +0 -7
- package/test.tsx +0 -11
- package/tsconfig.json +0 -10
package/rules/storybook.mjs
DELETED
|
@@ -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;
|
package/rules/tailwindcss.mjs
DELETED
|
@@ -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;
|
package/rules/typescript.mjs
DELETED
|
@@ -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;
|
package/rules/unused-imports.mjs
DELETED
|
@@ -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
package/test.tsx
DELETED