ultracite 6.5.0 → 7.0.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.
Files changed (65) hide show
  1. package/README.md +1 -1
  2. package/config/biome/angular/biome.jsonc +9 -0
  3. package/config/{astro → biome/astro}/biome.jsonc +1 -1
  4. package/config/{core → biome/core}/biome.jsonc +45 -44
  5. package/config/{next → biome/next}/biome.jsonc +1 -1
  6. package/config/{qwik → biome/qwik}/biome.jsonc +1 -1
  7. package/config/{react → biome/react}/biome.jsonc +1 -1
  8. package/config/{remix → biome/remix}/biome.jsonc +1 -1
  9. package/config/{solid → biome/solid}/biome.jsonc +1 -1
  10. package/config/{svelte → biome/svelte}/biome.jsonc +1 -1
  11. package/config/{vue → biome/vue}/biome.jsonc +1 -1
  12. package/config/eslint/angular/eslint.config.mjs +18 -0
  13. package/config/eslint/angular/rules/angular.mjs +17 -0
  14. package/config/eslint/astro/eslint.config.mjs +18 -0
  15. package/config/eslint/astro/rules/astro.mjs +17 -0
  16. package/config/eslint/core/eslint.config.mjs +168 -0
  17. package/config/eslint/core/rules/compat.mjs +5 -0
  18. package/config/eslint/core/rules/cypress.mjs +17 -0
  19. package/config/eslint/core/rules/eslint-typescript.mjs +43 -0
  20. package/config/eslint/core/rules/eslint.mjs +30 -0
  21. package/config/eslint/core/rules/github.mjs +19 -0
  22. package/config/eslint/core/rules/import.mjs +44 -0
  23. package/config/eslint/core/rules/jest.mjs +17 -0
  24. package/config/eslint/core/rules/n.mjs +24 -0
  25. package/config/eslint/core/rules/prettier.mjs +5 -0
  26. package/config/eslint/core/rules/promise.mjs +20 -0
  27. package/config/eslint/core/rules/sonarjs.mjs +19 -0
  28. package/config/eslint/core/rules/storybook.mjs +17 -0
  29. package/config/eslint/core/rules/tailwindcss.mjs +22 -0
  30. package/config/eslint/core/rules/typescript.mjs +62 -0
  31. package/config/eslint/core/rules/unicorn.mjs +34 -0
  32. package/config/eslint/core/rules/unused-imports.mjs +17 -0
  33. package/config/eslint/next/eslint.config.mjs +18 -0
  34. package/config/eslint/next/rules/next.mjs +17 -0
  35. package/config/eslint/qwik/eslint.config.mjs +18 -0
  36. package/config/eslint/qwik/rules/qwik.mjs +17 -0
  37. package/config/eslint/react/eslint.config.mjs +43 -0
  38. package/config/eslint/react/rules/jsx-a11y.mjs +27 -0
  39. package/config/eslint/react/rules/query.mjs +15 -0
  40. package/config/eslint/react/rules/react-hooks.mjs +17 -0
  41. package/config/eslint/react/rules/react.mjs +46 -0
  42. package/config/eslint/remix/eslint.config.mjs +18 -0
  43. package/config/eslint/remix/rules/remix.mjs +17 -0
  44. package/config/eslint/solid/eslint.config.mjs +18 -0
  45. package/config/eslint/solid/rules/solid.mjs +17 -0
  46. package/config/eslint/svelte/eslint.config.mjs +18 -0
  47. package/config/eslint/svelte/rules/svelte.mjs +17 -0
  48. package/config/eslint/vue/eslint.config.mjs +18 -0
  49. package/config/eslint/vue/rules/vue.mjs +17 -0
  50. package/config/oxlint/angular/.oxlintrc.json +4 -0
  51. package/config/oxlint/astro/.oxlintrc.json +4 -0
  52. package/config/oxlint/core/.oxlintrc.json +92 -0
  53. package/config/oxlint/next/.oxlintrc.json +13 -0
  54. package/config/oxlint/qwik/.oxlintrc.json +4 -0
  55. package/config/oxlint/react/.oxlintrc.json +18 -0
  56. package/config/oxlint/remix/.oxlintrc.json +4 -0
  57. package/config/oxlint/solid/.oxlintrc.json +4 -0
  58. package/config/oxlint/svelte/.oxlintrc.json +4 -0
  59. package/config/oxlint/vue/.oxlintrc.json +5 -0
  60. package/config/prettier/prettier.config.mjs +14 -0
  61. package/config/stylelint/stylelint.config.mjs +38 -0
  62. package/dist/index.d.ts +7 -16
  63. package/dist/index.js +43 -174
  64. package/package.json +51 -10
  65. package/config/angular/biome.jsonc +0 -9
@@ -0,0 +1,92 @@
1
+ {
2
+ "$schema": "../../../node_modules/oxlint/configuration_schema.json",
3
+ "plugins": [
4
+ "eslint",
5
+ "typescript",
6
+ "unicorn",
7
+ "oxc",
8
+ "import",
9
+ "jsdoc",
10
+ "node",
11
+ "promise",
12
+ "jest",
13
+ "vitest"
14
+ ],
15
+ "env": {
16
+ "browser": true
17
+ },
18
+ "categories": {
19
+ "correctness": "error",
20
+ "perf": "error",
21
+ "restriction": "error",
22
+ "suspicious": "error",
23
+ "pedantic": "error",
24
+ "style": "error"
25
+ },
26
+ "rules": {
27
+ "no-await-in-loop": "off",
28
+ "max-lines-per-function": "off",
29
+ "no-implicit-coercion": "off",
30
+ "no-magic-numbers": "off",
31
+ "no-console": "off",
32
+ "no-ternary": "off",
33
+ "no-undefined": "off",
34
+ "max-lines": "off",
35
+ "id-length": "off",
36
+ "func-style": [
37
+ "error",
38
+ {
39
+ "allowArrowFunctions": true,
40
+ "style": "expression"
41
+ }
42
+ ],
43
+ "arrow-body-style": ["error", "as-needed"],
44
+ "max-depth": "off",
45
+ "max-params": "off",
46
+ "capitalized-comments": "off",
47
+ "new-cap": "off",
48
+ "no-continue": "off",
49
+ "init-declarations": "off",
50
+
51
+ "import/no-default-export": "off",
52
+ "import/exports-last": "off",
53
+ "import/no-named-export": "off",
54
+ "import/max-dependencies": "off",
55
+ "import/no-unresolved": "off",
56
+ "import/extensions": "off",
57
+ "import/no-namespace": "off",
58
+ "import/no-anonymous-default-export": "off",
59
+ "import/prefer-default-export": "off",
60
+ "import/group-exports": "off",
61
+ "import/no-commonjs": "off",
62
+ "import/unambiguous": "off",
63
+ "import/consistent-type-specifier-style": ["error", "prefer-inline"],
64
+ "import/no-dynamic-require": "off",
65
+ "import/no-unassigned-import": "off",
66
+
67
+ "jsdoc/require-param": "off",
68
+ "jsdoc/require-returns": "off",
69
+
70
+ "unicorn/explicit-length-check": "off",
71
+ "unicorn/no-array-callback-reference": "off",
72
+ "unicorn/no-process-exit": "off",
73
+ "unicorn/prefer-global-this": "off",
74
+ "unicorn/no-null": "off",
75
+ "unicorn/prefer-top-level-await": "off",
76
+
77
+ "typescript/explicit-module-boundary-types": "off",
78
+ "typescript/no-require-imports": "off",
79
+ "typescript/explicit-function-return-type": "off",
80
+ "typescript/no-var-requires": "off",
81
+
82
+ "node/no-process-env": "off",
83
+
84
+ "oxc/no-map-spread": "off",
85
+ "oxc/no-async-await": "off",
86
+ "oxc/no-rest-spread-properties": "off",
87
+ "oxc/no-optional-chaining": "off",
88
+
89
+ "promise/catch-or-return": "off",
90
+ "promise/always-return": "off"
91
+ }
92
+ }
@@ -0,0 +1,13 @@
1
+ {
2
+ "$schema": "../../../node_modules/oxlint/configuration_schema.json",
3
+ "plugins": ["nextjs"],
4
+ "rules": {},
5
+ "overrides": [
6
+ {
7
+ "files": ["**/next-env.d.ts"],
8
+ "rules": {
9
+ "import/no-unassigned-import": "off"
10
+ }
11
+ }
12
+ ]
13
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "$schema": "../../../node_modules/oxlint/configuration_schema.json",
3
+ "rules": {}
4
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "$schema": "../../../node_modules/oxlint/configuration_schema.json",
3
+ "plugins": ["react", "react-perf", "jsx-a11y"],
4
+ "rules": {
5
+ "react/only-export-components": "off",
6
+ "react/jsx-boolean-value": "off",
7
+ "react/react-in-jsx-scope": "off",
8
+ "react/jsx-filename-extension": "off",
9
+ "react/no-unknown-property": "off",
10
+ "react/jsx-props-no-spreading": "off",
11
+
12
+ "react_perf/jsx-no-jsx-as-prop": "off",
13
+ "react_perf/jsx-no-new-object-as-prop": "off",
14
+ "react_perf/jsx-no-new-array-as-prop": "off",
15
+
16
+ "jsx-a11y/no-autofocus": "off"
17
+ }
18
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "$schema": "../../../node_modules/oxlint/configuration_schema.json",
3
+ "rules": {}
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "$schema": "../../../node_modules/oxlint/configuration_schema.json",
3
+ "rules": {}
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "$schema": "../../../node_modules/oxlint/configuration_schema.json",
3
+ "rules": {}
4
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "$schema": "../../../node_modules/oxlint/configuration_schema.json",
3
+ "plugins": ["vue"],
4
+ "rules": {}
5
+ }
@@ -0,0 +1,14 @@
1
+ /** @type {import('prettier').Config} */
2
+ const config = {
3
+ tabWidth: 2,
4
+ useTabs: false,
5
+ semi: true,
6
+ singleQuote: false,
7
+ trailingComma: "es5",
8
+ bracketSpacing: true,
9
+ arrowParens: "always",
10
+ proseWrap: "never",
11
+ printWidth: 80,
12
+ };
13
+
14
+ export default config;
@@ -0,0 +1,38 @@
1
+ /** @type {import('stylelint').Config} */
2
+ const config = {
3
+ plugins: ["stylelint-prettier"],
4
+ extends: ["stylelint-config-standard", "stylelint-config-idiomatic-order"],
5
+ rules: {
6
+ "at-rule-no-unknown": [
7
+ true,
8
+ {
9
+ ignoreAtRules: [
10
+ "tailwind",
11
+ "apply",
12
+ "layer",
13
+ "variants",
14
+ "responsive",
15
+ "screen",
16
+ "source",
17
+ "reference",
18
+ ],
19
+ },
20
+ ],
21
+ "declaration-property-value-no-unknown": true,
22
+ "no-descending-specificity": null,
23
+ "declaration-block-no-redundant-longhand-properties": [
24
+ true,
25
+ {
26
+ ignoreShorthands: ["/flex/"],
27
+ },
28
+ ],
29
+ "selector-pseudo-class-no-unknown": [
30
+ true,
31
+ {
32
+ ignorePseudoClasses: ["global"],
33
+ },
34
+ ],
35
+ },
36
+ };
37
+
38
+ export default config;
package/dist/index.d.ts CHANGED
@@ -10,9 +10,10 @@ declare const router: _trpc_server.TRPCBuiltRouter<{
10
10
  init: _trpc_server.TRPCMutationProcedure<{
11
11
  input: {
12
12
  pm?: "npm" | "yarn" | "pnpm" | "bun" | "deno" | undefined;
13
- editors?: ("vscode" | "zed")[] | undefined;
14
- agents?: ("zed" | "vscode-copilot" | "cursor" | "windsurf" | "claude" | "codex" | "kiro" | "cline" | "amp" | "aider" | "firebase-studio" | "open-hands" | "gemini-cli" | "junie" | "augmentcode" | "kilo-code" | "goose" | "roo-code" | "warp" | "droid" | "antigravity")[] | undefined;
15
- hooks?: ("cursor" | "claude")[] | undefined;
13
+ linter?: "biome" | "eslint" | "oxlint" | undefined;
14
+ editors?: string[] | undefined;
15
+ agents?: string[] | undefined;
16
+ hooks?: string[] | undefined;
16
17
  frameworks?: ("react" | "next" | "solid" | "vue" | "svelte" | "qwik" | "remix" | "angular" | "astro")[] | undefined;
17
18
  integrations?: ("husky" | "lefthook" | "lint-staged" | "pre-commit")[] | undefined;
18
19
  migrate?: ("eslint" | "prettier")[] | undefined;
@@ -25,6 +26,7 @@ declare const router: _trpc_server.TRPCBuiltRouter<{
25
26
  check: _trpc_server.TRPCQueryProcedure<{
26
27
  input: [string[] | undefined, {
27
28
  "diagnostic-level"?: "info" | "warn" | "error" | undefined;
29
+ linter?: "biome" | "eslint" | "oxlint" | undefined;
28
30
  }] | undefined;
29
31
  output: void;
30
32
  meta: TrpcCliMeta;
@@ -32,7 +34,8 @@ declare const router: _trpc_server.TRPCBuiltRouter<{
32
34
  fix: _trpc_server.TRPCMutationProcedure<{
33
35
  input: [string[] | undefined, {
34
36
  unsafe?: boolean | undefined;
35
- }];
37
+ linter?: "biome" | "eslint" | "oxlint" | undefined;
38
+ }] | undefined;
36
39
  output: void;
37
40
  meta: TrpcCliMeta;
38
41
  }>;
@@ -41,18 +44,6 @@ declare const router: _trpc_server.TRPCBuiltRouter<{
41
44
  output: void;
42
45
  meta: TrpcCliMeta;
43
46
  }>;
44
- lint: _trpc_server.TRPCQueryProcedure<{
45
- input: string[] | undefined;
46
- output: void;
47
- meta: TrpcCliMeta;
48
- }>;
49
- format: _trpc_server.TRPCMutationProcedure<{
50
- input: [string[] | undefined, {
51
- unsafe?: boolean | undefined;
52
- }];
53
- output: void;
54
- meta: TrpcCliMeta;
55
- }>;
56
47
  }>>;
57
48
 
58
49
  export { router };