@haltcase/style 8.0.1 → 9.0.0-canary.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.
Files changed (75) hide show
  1. package/README.md +7 -3
  2. package/dist/editorconfig/index.d.ts +1 -4
  3. package/dist/editorconfig/index.js +1 -2
  4. package/dist/oxfmt/index.d.ts +2 -5
  5. package/dist/oxfmt/index.js +3 -2
  6. package/dist/oxfmt/utils.d.ts +3 -0
  7. package/dist/oxfmt/utils.js +4 -0
  8. package/dist/oxlint/configs/base.d.ts +431 -12
  9. package/dist/oxlint/configs/base.js +3 -2
  10. package/dist/oxlint/configs/next.d.ts +31 -11
  11. package/dist/oxlint/configs/next.js +7 -3
  12. package/dist/oxlint/configs/node.d.ts +19 -11
  13. package/dist/oxlint/configs/node.js +4 -3
  14. package/dist/oxlint/configs/react.d.ts +1 -4
  15. package/dist/oxlint/configs/react.js +6 -5
  16. package/dist/oxlint/configs/tanstack-router.d.ts +8 -6
  17. package/dist/oxlint/configs/tanstack-router.js +5 -5
  18. package/dist/oxlint/configs/tanstack-start.d.ts +8 -11
  19. package/dist/oxlint/configs/tanstack-start.js +1 -2
  20. package/dist/oxlint/configs/testing.d.ts +83 -11
  21. package/dist/oxlint/configs/testing.js +4 -3
  22. package/dist/oxlint/configs/typescript.d.ts +95 -11
  23. package/dist/oxlint/configs/typescript.js +2 -3
  24. package/dist/oxlint/constants.d.ts +21 -24
  25. package/dist/oxlint/constants.js +7 -8
  26. package/dist/oxlint/index.d.ts +4 -6
  27. package/dist/oxlint/index.js +1 -2
  28. package/dist/oxlint/rules/_next.d.ts +25 -0
  29. package/dist/oxlint/rules/_next.js +28 -0
  30. package/dist/oxlint/rules/_node.d.ts +13 -0
  31. package/dist/oxlint/rules/_node.js +16 -0
  32. package/dist/oxlint/rules/_testing.d.ts +77 -0
  33. package/dist/oxlint/rules/_testing.js +80 -0
  34. package/dist/oxlint/rules/_typescript-defaults.d.ts +113 -0
  35. package/dist/oxlint/rules/_typescript-defaults.js +116 -0
  36. package/dist/oxlint/rules/best-practice.d.ts +80 -5
  37. package/dist/oxlint/rules/best-practice.js +78 -1
  38. package/dist/oxlint/rules/imports.d.ts +16 -5
  39. package/dist/oxlint/rules/imports.js +14 -1
  40. package/dist/oxlint/rules/jsx-a11y.d.ts +38 -6
  41. package/dist/oxlint/rules/jsx-a11y.js +39 -2
  42. package/dist/oxlint/rules/playwright-test.d.ts +2 -5
  43. package/dist/oxlint/rules/playwright-test.js +1 -2
  44. package/dist/oxlint/rules/possible-errors.d.ts +114 -5
  45. package/dist/oxlint/rules/possible-errors.js +113 -2
  46. package/dist/oxlint/rules/react-x.d.ts +2 -5
  47. package/dist/oxlint/rules/react-x.js +0 -1
  48. package/dist/oxlint/rules/react.d.ts +78 -6
  49. package/dist/oxlint/rules/react.js +76 -2
  50. package/dist/oxlint/rules/restriction.d.ts +35 -5
  51. package/dist/oxlint/rules/restriction.js +34 -2
  52. package/dist/oxlint/rules/stylistic-jsx.d.ts +2 -5
  53. package/dist/oxlint/rules/stylistic-jsx.js +1 -2
  54. package/dist/oxlint/rules/stylistic.d.ts +78 -5
  55. package/dist/oxlint/rules/stylistic.js +76 -1
  56. package/dist/oxlint/rules/typescript/declaration-files.d.ts +2 -5
  57. package/dist/oxlint/rules/typescript/declaration-files.js +0 -1
  58. package/dist/oxlint/rules/typescript/index.d.ts +89 -5
  59. package/dist/oxlint/rules/typescript/index.js +87 -1
  60. package/dist/oxlint/rules/variables.d.ts +2 -5
  61. package/dist/oxlint/rules/variables.js +1 -2
  62. package/dist/oxlint/utils/eslint-compat.d.ts +3 -5
  63. package/dist/oxlint/utils/eslint-compat.js +1 -2
  64. package/dist/stylelint/_base.d.ts +1 -4
  65. package/dist/stylelint/_base.js +1 -2
  66. package/dist/stylelint/index.d.ts +0 -2
  67. package/dist/stylelint/index.js +1 -2
  68. package/dist/stylelint/modules.d.ts +0 -2
  69. package/dist/stylelint/modules.js +1 -2
  70. package/dist/stylelint/standard.js +1 -2
  71. package/dist/stylelint/tailwind.d.ts +0 -2
  72. package/dist/stylelint/tailwind.js +1 -2
  73. package/dist/vite-plus/index.d.ts +2 -4
  74. package/dist/vite-plus/index.js +1 -2
  75. package/package.json +38 -38
@@ -3,6 +3,84 @@ import "node:url";
3
3
  import.meta.url;
4
4
  const bestPracticeRules = {
5
5
  "require-unicode-regexp": "off",
6
+ "accessor-pairs": "error",
7
+ "jsdoc/require-param": "error",
8
+ "jsdoc/require-param-description": "error",
9
+ "jsdoc/require-param-name": "error",
10
+ "jsdoc/require-param-type": "error",
11
+ "jsdoc/require-returns": "error",
12
+ "jsdoc/require-returns-description": "error",
13
+ "jsdoc/require-returns-type": "error",
14
+ "jsdoc/require-throws-type": "error",
15
+ "jsdoc/require-yields-type": "error",
16
+ "max-classes-per-file": "error",
17
+ "max-nested-callbacks": "error",
18
+ "no-case-declarations": "error",
19
+ "no-fallthrough": "error",
20
+ "no-inner-declarations": "error",
21
+ "no-negated-condition": "error",
22
+ "no-object-constructor": "error",
23
+ "no-prototype-builtins": "error",
24
+ "no-redeclare": "error",
25
+ "no-throw-literal": "error",
26
+ "no-warning-comments": "error",
27
+ "oxc/branches-sharing-code": "error",
28
+ "oxc/no-accumulating-spread": "error",
29
+ "oxc/no-map-spread": "error",
30
+ radix: "error",
31
+ "require-await": "error",
32
+ "symbol-description": "error",
33
+ "unicorn/consistent-assert": "error",
34
+ "unicorn/consistent-empty-array-spread": "error",
35
+ "unicorn/escape-case": "error",
36
+ "unicorn/explicit-length-check": "error",
37
+ "unicorn/new-for-builtins": "error",
38
+ "unicorn/no-array-callback-reference": "error",
39
+ "unicorn/no-hex-escape": "error",
40
+ "unicorn/no-immediate-mutation": "error",
41
+ "unicorn/no-instanceof-array": "error",
42
+ "unicorn/no-lonely-if": "error",
43
+ "unicorn/no-negated-condition": "error",
44
+ "unicorn/no-negation-in-equality-check": "error",
45
+ "unicorn/no-new-buffer": "error",
46
+ "unicorn/no-object-as-default-parameter": "error",
47
+ "unicorn/no-static-only-class": "error",
48
+ "unicorn/no-this-assignment": "error",
49
+ "unicorn/no-typeof-undefined": "error",
50
+ "unicorn/no-unnecessary-array-flat-depth": "error",
51
+ "unicorn/no-unnecessary-array-splice-count": "error",
52
+ "unicorn/no-unnecessary-slice-end": "error",
53
+ "unicorn/no-unreadable-iife": "error",
54
+ "unicorn/no-useless-promise-resolve-reject": "error",
55
+ "unicorn/no-useless-switch-case": "error",
56
+ "unicorn/no-useless-undefined": "error",
57
+ "unicorn/prefer-array-find": "error",
58
+ "unicorn/prefer-array-flat": "error",
59
+ "unicorn/prefer-array-flat-map": "error",
60
+ "unicorn/prefer-array-some": "error",
61
+ "unicorn/prefer-at": "error",
62
+ "unicorn/prefer-blob-reading-methods": "error",
63
+ "unicorn/prefer-code-point": "error",
64
+ "unicorn/prefer-date-now": "error",
65
+ "unicorn/prefer-dom-node-append": "error",
66
+ "unicorn/prefer-dom-node-dataset": "error",
67
+ "unicorn/prefer-dom-node-remove": "error",
68
+ "unicorn/prefer-event-target": "error",
69
+ "unicorn/prefer-import-meta-properties": "error",
70
+ "unicorn/prefer-math-min-max": "error",
71
+ "unicorn/prefer-math-trunc": "error",
72
+ "unicorn/prefer-native-coercion-functions": "error",
73
+ "unicorn/prefer-number-coercion": "error",
74
+ "unicorn/prefer-prototype-methods": "error",
75
+ "unicorn/prefer-query-selector": "error",
76
+ "unicorn/prefer-regexp-test": "error",
77
+ "unicorn/prefer-set-has": "error",
78
+ "unicorn/prefer-single-call": "error",
79
+ "unicorn/prefer-string-replace-all": "error",
80
+ "unicorn/prefer-string-slice": "error",
81
+ "unicorn/prefer-top-level-await": "error",
82
+ "unicorn/prefer-type-error": "error",
83
+ "unicorn/require-number-to-fixed-digits-argument": "error",
6
84
  /**
7
85
  * Require return statements in array methods callbacks.
8
86
  */
@@ -173,5 +251,4 @@ const bestPracticeRules = {
173
251
  */
174
252
  yoda: "error"
175
253
  };
176
- //#endregion
177
254
  export { bestPracticeRules };
@@ -1,7 +1,20 @@
1
1
  import __tsdown_shims_path from 'node:path';
2
2
  import __tsdown_shims_url from 'node:url';
3
- //#region src/oxlint/rules/imports.d.ts
4
- declare const importRules: {
3
+ export declare const importRules: {
4
+ "import/consistent-type-specifier-style": "error";
5
+ "import/default": "error";
6
+ "import/extensions": "error";
7
+ "import/namespace": "error";
8
+ "import/no-amd": "error";
9
+ "import/no-commonjs": "error";
10
+ "import/no-dynamic-require": "error";
11
+ "import/no-empty-named-blocks": "error";
12
+ "import/no-named-as-default": "error";
13
+ "import/no-named-as-default-member": "error";
14
+ "import/no-named-default": "error";
15
+ "import/no-namespace": "error";
16
+ "import/no-webpack-loader-syntax": "error";
17
+ "import/unambiguous": "error";
5
18
  /**
6
19
  * Disallow non-import statements appearing before import statements.
7
20
  */
@@ -62,6 +75,4 @@ declare const importRules: {
62
75
  "import/no-nodejs-modules": "off";
63
76
  "import/no-relative-parent-imports": "off";
64
77
  "import/prefer-default-export": "off";
65
- };
66
- //#endregion
67
- export { importRules };
78
+ };
@@ -9,6 +9,20 @@ const importRules = {
9
9
  "import/no-nodejs-modules": "off",
10
10
  "import/no-relative-parent-imports": "off",
11
11
  "import/prefer-default-export": "off",
12
+ "import/consistent-type-specifier-style": "error",
13
+ "import/default": "error",
14
+ "import/extensions": "error",
15
+ "import/namespace": "error",
16
+ "import/no-amd": "error",
17
+ "import/no-commonjs": "error",
18
+ "import/no-dynamic-require": "error",
19
+ "import/no-empty-named-blocks": "error",
20
+ "import/no-named-as-default": "error",
21
+ "import/no-named-as-default-member": "error",
22
+ "import/no-named-default": "error",
23
+ "import/no-namespace": "error",
24
+ "import/no-webpack-loader-syntax": "error",
25
+ "import/unambiguous": "error",
12
26
  /**
13
27
  * Disallow non-import statements appearing before import statements.
14
28
  */
@@ -63,5 +77,4 @@ const importRules = {
63
77
  */
64
78
  "import/no-self-import": "error"
65
79
  };
66
- //#endregion
67
80
  export { importRules };
@@ -1,8 +1,40 @@
1
1
  import __tsdown_shims_path from 'node:path';
2
2
  import __tsdown_shims_url from 'node:url';
3
- //#region src/oxlint/rules/jsx-a11y.d.ts
4
- declare const jsxA11yRules: {
5
- "jsx-a11y/no-onchange": "off";
6
- };
7
- //#endregion
8
- export { jsxA11yRules };
3
+ export declare const jsxA11yRules: {
4
+ "jsx-a11y/alt-text": "error";
5
+ "jsx-a11y/anchor-ambiguous-text": "error";
6
+ "jsx-a11y/anchor-has-content": "error";
7
+ "jsx-a11y/anchor-is-valid": "error";
8
+ "jsx-a11y/aria-activedescendant-has-tabindex": "error";
9
+ "jsx-a11y/aria-props": "error";
10
+ "jsx-a11y/aria-proptypes": "error";
11
+ "jsx-a11y/aria-role": "error";
12
+ "jsx-a11y/aria-unsupported-elements": "error";
13
+ "jsx-a11y/autocomplete-valid": "error";
14
+ "jsx-a11y/click-events-have-key-events": "error";
15
+ "jsx-a11y/control-has-associated-label": "error";
16
+ "jsx-a11y/heading-has-content": "error";
17
+ "jsx-a11y/html-has-lang": "error";
18
+ "jsx-a11y/iframe-has-title": "error";
19
+ "jsx-a11y/img-redundant-alt": "error";
20
+ "jsx-a11y/interactive-supports-focus": "error";
21
+ "jsx-a11y/label-has-associated-control": "error";
22
+ "jsx-a11y/lang": "error";
23
+ "jsx-a11y/media-has-caption": "error";
24
+ "jsx-a11y/mouse-events-have-key-events": "error";
25
+ "jsx-a11y/no-access-key": "error";
26
+ "jsx-a11y/no-aria-hidden-on-focusable": "error";
27
+ "jsx-a11y/no-autofocus": "error";
28
+ "jsx-a11y/no-distracting-elements": "error";
29
+ "jsx-a11y/no-interactive-element-to-noninteractive-role": "error";
30
+ "jsx-a11y/no-noninteractive-element-interactions": "error";
31
+ "jsx-a11y/no-noninteractive-element-to-interactive-role": "error";
32
+ "jsx-a11y/no-noninteractive-tabindex": "error";
33
+ "jsx-a11y/no-redundant-roles": "error";
34
+ "jsx-a11y/no-static-element-interactions": "error";
35
+ "jsx-a11y/prefer-tag-over-role": "error";
36
+ "jsx-a11y/role-has-required-aria-props": "error";
37
+ "jsx-a11y/role-supports-aria-props": "error";
38
+ "jsx-a11y/scope": "error";
39
+ "jsx-a11y/tabindex-no-positive": "error";
40
+ };
@@ -1,6 +1,43 @@
1
1
  import "node:path";
2
2
  import "node:url";
3
3
  import.meta.url;
4
- const jsxA11yRules = { "jsx-a11y/no-onchange": "off" };
5
- //#endregion
4
+ // src/oxlint/rules/jsx-a11y.ts
5
+ const jsxA11yRules = {
6
+ "jsx-a11y/alt-text": "error",
7
+ "jsx-a11y/anchor-ambiguous-text": "error",
8
+ "jsx-a11y/anchor-has-content": "error",
9
+ "jsx-a11y/anchor-is-valid": "error",
10
+ "jsx-a11y/aria-activedescendant-has-tabindex": "error",
11
+ "jsx-a11y/aria-props": "error",
12
+ "jsx-a11y/aria-proptypes": "error",
13
+ "jsx-a11y/aria-role": "error",
14
+ "jsx-a11y/aria-unsupported-elements": "error",
15
+ "jsx-a11y/autocomplete-valid": "error",
16
+ "jsx-a11y/click-events-have-key-events": "error",
17
+ "jsx-a11y/control-has-associated-label": "error",
18
+ "jsx-a11y/heading-has-content": "error",
19
+ "jsx-a11y/html-has-lang": "error",
20
+ "jsx-a11y/iframe-has-title": "error",
21
+ "jsx-a11y/img-redundant-alt": "error",
22
+ "jsx-a11y/interactive-supports-focus": "error",
23
+ "jsx-a11y/label-has-associated-control": "error",
24
+ "jsx-a11y/lang": "error",
25
+ "jsx-a11y/media-has-caption": "error",
26
+ "jsx-a11y/mouse-events-have-key-events": "error",
27
+ "jsx-a11y/no-access-key": "error",
28
+ "jsx-a11y/no-aria-hidden-on-focusable": "error",
29
+ "jsx-a11y/no-autofocus": "error",
30
+ "jsx-a11y/no-distracting-elements": "error",
31
+ "jsx-a11y/no-interactive-element-to-noninteractive-role": "error",
32
+ "jsx-a11y/no-noninteractive-element-interactions": "error",
33
+ "jsx-a11y/no-noninteractive-element-to-interactive-role": "error",
34
+ "jsx-a11y/no-noninteractive-tabindex": "error",
35
+ "jsx-a11y/no-redundant-roles": "error",
36
+ "jsx-a11y/no-static-element-interactions": "error",
37
+ "jsx-a11y/prefer-tag-over-role": "error",
38
+ "jsx-a11y/role-has-required-aria-props": "error",
39
+ "jsx-a11y/role-supports-aria-props": "error",
40
+ "jsx-a11y/scope": "error",
41
+ "jsx-a11y/tabindex-no-positive": "error"
42
+ };
6
43
  export { jsxA11yRules };
@@ -1,7 +1,6 @@
1
1
  import __tsdown_shims_path from 'node:path';
2
2
  import __tsdown_shims_url from 'node:url';
3
- //#region src/oxlint/rules/playwright-test.d.ts
4
- declare const playwrightTestRules: {
3
+ export declare const playwrightTestRules: {
5
4
  /**
6
5
  * Require lowercase test names.
7
6
  *
@@ -20,6 +19,4 @@ declare const playwrightTestRules: {
20
19
  * 🚫 Not fixable - https://github.com/playwright-community/eslint-plugin-playwright/blob/main/docs/rules/prefer-lowercase-title.md
21
20
  */
22
21
  "playwright/require-top-level-describe": string;
23
- };
24
- //#endregion
25
- export { playwrightTestRules };
22
+ };
@@ -1,7 +1,7 @@
1
1
  import "node:path";
2
2
  import "node:url";
3
3
  import.meta.url;
4
- //#region src/oxlint/rules/playwright-test.ts
4
+ // src/oxlint/rules/playwright-test.ts
5
5
  const playwrightTestRules = {
6
6
  /**
7
7
  * Require lowercase test names.
@@ -22,5 +22,4 @@ const playwrightTestRules = {
22
22
  */
23
23
  "playwright/require-top-level-describe": "error"
24
24
  };
25
- //#endregion
26
25
  export { playwrightTestRules };
@@ -1,7 +1,118 @@
1
1
  import __tsdown_shims_path from 'node:path';
2
2
  import __tsdown_shims_url from 'node:url';
3
- //#region src/oxlint/rules/possible-errors.d.ts
4
- declare const possibleErrorsRules: {
3
+ export declare const possibleErrorsRules: {
4
+ "constructor-super": "error";
5
+ "for-direction": "error";
6
+ "getter-return": "error";
7
+ "jsdoc/check-property-names": "error";
8
+ "jsdoc/check-tag-names": "error";
9
+ "jsdoc/implements-on-classes": "error";
10
+ "jsdoc/no-defaults": "error";
11
+ "jsdoc/require-property": "error";
12
+ "jsdoc/require-property-description": "error";
13
+ "jsdoc/require-property-name": "error";
14
+ "jsdoc/require-property-type": "error";
15
+ "jsdoc/require-yields": "error";
16
+ "no-async-promise-executor": "error";
17
+ "no-class-assign": "error";
18
+ "no-compare-neg-zero": "error";
19
+ "no-cond-assign": "error";
20
+ "no-const-assign": "error";
21
+ "no-constant-condition": "error";
22
+ "no-control-regex": "error";
23
+ "no-debugger": "error";
24
+ "no-delete-var": "error";
25
+ "no-dupe-class-members": "error";
26
+ "no-dupe-else-if": "error";
27
+ "no-dupe-keys": "error";
28
+ "no-duplicate-case": "error";
29
+ "no-empty-character-class": "error";
30
+ "no-empty-pattern": "error";
31
+ "no-empty-static-block": "error";
32
+ "no-ex-assign": "error";
33
+ "no-extra-boolean-cast": "error";
34
+ "no-func-assign": "error";
35
+ "no-global-assign": "error";
36
+ "no-import-assign": "error";
37
+ "no-invalid-regexp": "error";
38
+ "no-irregular-whitespace": "error";
39
+ "no-loss-of-precision": "error";
40
+ "no-misleading-character-class": "error";
41
+ "no-new-native-nonconstructor": "error";
42
+ "no-nonoctal-decimal-escape": "error";
43
+ "no-obj-calls": "error";
44
+ "no-self-assign": "error";
45
+ "no-setter-return": "error";
46
+ "no-shadow-restricted-names": "error";
47
+ "no-sparse-arrays": "error";
48
+ "no-this-before-super": "error";
49
+ "no-unassigned-vars": "error";
50
+ "no-underscore-dangle": "error";
51
+ "no-unexpected-multiline": "error";
52
+ "no-unmodified-loop-condition": "error";
53
+ "no-unreachable": "error";
54
+ "no-unsafe-finally": "error";
55
+ "no-unsafe-negation": "error";
56
+ "no-unsafe-optional-chaining": "error";
57
+ "no-unused-expressions": "error";
58
+ "no-unused-labels": "error";
59
+ "no-unused-private-class-members": "error";
60
+ "no-useless-backreference": "error";
61
+ "no-useless-catch": "error";
62
+ "no-useless-escape": "error";
63
+ "no-useless-rename": "error";
64
+ "no-with": "error";
65
+ "oxc/approx-constant": "error";
66
+ "oxc/bad-array-method-on-arguments": "error";
67
+ "oxc/bad-char-at-comparison": "error";
68
+ "oxc/bad-comparison-sequence": "error";
69
+ "oxc/bad-match-all-arg": "error";
70
+ "oxc/bad-min-max-func": "error";
71
+ "oxc/bad-object-literal-comparison": "error";
72
+ "oxc/bad-replace-all-arg": "error";
73
+ "oxc/const-comparisons": "error";
74
+ "oxc/double-comparisons": "error";
75
+ "oxc/erasing-op": "error";
76
+ "oxc/misrefactored-assign-op": "error";
77
+ "oxc/missing-throw": "error";
78
+ "oxc/no-async-endpoint-handlers": "error";
79
+ "oxc/no-this-in-exported-function": "error";
80
+ "oxc/number-arg-out-of-range": "error";
81
+ "oxc/only-used-in-recursion": "error";
82
+ "oxc/uninvoked-array-callback": "error";
83
+ "preserve-caught-error": "error";
84
+ "promise/always-return": "error";
85
+ "promise/no-callback-in-promise": "error";
86
+ "promise/no-multiple-resolved": "error";
87
+ "promise/no-new-statics": "error";
88
+ "promise/no-promise-in-callback": "error";
89
+ "promise/valid-params": "error";
90
+ "require-yield": "error";
91
+ "unicorn/consistent-function-scoping": "error";
92
+ "unicorn/no-accessor-recursion": "error";
93
+ "unicorn/no-array-fill-with-reference-type": "error";
94
+ "unicorn/no-array-reverse": "error";
95
+ "unicorn/no-array-sort": "error";
96
+ "unicorn/no-await-in-promise-methods": "error";
97
+ "unicorn/no-confusing-array-with": "error";
98
+ "unicorn/no-empty-file": "error";
99
+ "unicorn/no-instanceof-builtins": "error";
100
+ "unicorn/no-invalid-fetch-options": "error";
101
+ "unicorn/no-invalid-remove-event-listener": "error";
102
+ "unicorn/no-new-array": "error";
103
+ "unicorn/no-single-promise-in-promise-methods": "error";
104
+ "unicorn/no-thenable": "error";
105
+ "unicorn/no-unnecessary-await": "error";
106
+ "unicorn/no-useless-fallback-in-spread": "error";
107
+ "unicorn/no-useless-length-check": "error";
108
+ "unicorn/no-useless-spread": "error";
109
+ "unicorn/prefer-add-event-listener": "error";
110
+ "unicorn/prefer-set-size": "error";
111
+ "unicorn/prefer-string-starts-ends-with": "error";
112
+ "unicorn/require-module-specifiers": "error";
113
+ "unicorn/require-post-message-target-origin": "error";
114
+ "use-isnan": "error";
115
+ "valid-typeof": "error";
5
116
  /**
6
117
  * Disallow the use of console.
7
118
  */
@@ -23,6 +134,4 @@ declare const possibleErrorsRules: {
23
134
  * Disallow loops with a body that allows only one iteration.
24
135
  */
25
136
  "no-unreachable-loop": "error";
26
- };
27
- //#endregion
28
- export { possibleErrorsRules };
137
+ };
@@ -1,8 +1,120 @@
1
1
  import "node:path";
2
2
  import "node:url";
3
3
  import.meta.url;
4
- //#region src/oxlint/rules/possible-errors.ts
4
+ // src/oxlint/rules/possible-errors.ts
5
5
  const possibleErrorsRules = {
6
+ "constructor-super": "error",
7
+ "for-direction": "error",
8
+ "getter-return": "error",
9
+ "jsdoc/check-property-names": "error",
10
+ "jsdoc/check-tag-names": "error",
11
+ "jsdoc/implements-on-classes": "error",
12
+ "jsdoc/no-defaults": "error",
13
+ "jsdoc/require-property": "error",
14
+ "jsdoc/require-property-description": "error",
15
+ "jsdoc/require-property-name": "error",
16
+ "jsdoc/require-property-type": "error",
17
+ "jsdoc/require-yields": "error",
18
+ "no-async-promise-executor": "error",
19
+ "no-class-assign": "error",
20
+ "no-compare-neg-zero": "error",
21
+ "no-cond-assign": "error",
22
+ "no-const-assign": "error",
23
+ "no-constant-condition": "error",
24
+ "no-control-regex": "error",
25
+ "no-debugger": "error",
26
+ "no-delete-var": "error",
27
+ "no-dupe-class-members": "error",
28
+ "no-dupe-else-if": "error",
29
+ "no-dupe-keys": "error",
30
+ "no-duplicate-case": "error",
31
+ "no-empty-character-class": "error",
32
+ "no-empty-pattern": "error",
33
+ "no-empty-static-block": "error",
34
+ "no-ex-assign": "error",
35
+ "no-extra-boolean-cast": "error",
36
+ "no-func-assign": "error",
37
+ "no-global-assign": "error",
38
+ "no-import-assign": "error",
39
+ "no-invalid-regexp": "error",
40
+ "no-irregular-whitespace": "error",
41
+ "no-loss-of-precision": "error",
42
+ "no-misleading-character-class": "error",
43
+ "no-new-native-nonconstructor": "error",
44
+ "no-nonoctal-decimal-escape": "error",
45
+ "no-obj-calls": "error",
46
+ "no-self-assign": "error",
47
+ "no-setter-return": "error",
48
+ "no-shadow-restricted-names": "error",
49
+ "no-sparse-arrays": "error",
50
+ "no-this-before-super": "error",
51
+ "no-unassigned-vars": "error",
52
+ "no-underscore-dangle": "error",
53
+ "no-unexpected-multiline": "error",
54
+ "no-unmodified-loop-condition": "error",
55
+ "no-unreachable": "error",
56
+ "no-unsafe-finally": "error",
57
+ "no-unsafe-negation": "error",
58
+ "no-unsafe-optional-chaining": "error",
59
+ "no-unused-expressions": "error",
60
+ "no-unused-labels": "error",
61
+ "no-unused-private-class-members": "error",
62
+ "no-useless-backreference": "error",
63
+ "no-useless-catch": "error",
64
+ "no-useless-escape": "error",
65
+ "no-useless-rename": "error",
66
+ "no-with": "error",
67
+ "oxc/approx-constant": "error",
68
+ "oxc/bad-array-method-on-arguments": "error",
69
+ "oxc/bad-char-at-comparison": "error",
70
+ "oxc/bad-comparison-sequence": "error",
71
+ "oxc/bad-match-all-arg": "error",
72
+ "oxc/bad-min-max-func": "error",
73
+ "oxc/bad-object-literal-comparison": "error",
74
+ "oxc/bad-replace-all-arg": "error",
75
+ "oxc/const-comparisons": "error",
76
+ "oxc/double-comparisons": "error",
77
+ "oxc/erasing-op": "error",
78
+ "oxc/misrefactored-assign-op": "error",
79
+ "oxc/missing-throw": "error",
80
+ "oxc/no-async-endpoint-handlers": "error",
81
+ "oxc/no-this-in-exported-function": "error",
82
+ "oxc/number-arg-out-of-range": "error",
83
+ "oxc/only-used-in-recursion": "error",
84
+ "oxc/uninvoked-array-callback": "error",
85
+ "preserve-caught-error": "error",
86
+ "promise/always-return": "error",
87
+ "promise/no-callback-in-promise": "error",
88
+ "promise/no-multiple-resolved": "error",
89
+ "promise/no-new-statics": "error",
90
+ "promise/no-promise-in-callback": "error",
91
+ "promise/valid-params": "error",
92
+ "require-yield": "error",
93
+ "unicorn/consistent-function-scoping": "error",
94
+ "unicorn/no-accessor-recursion": "error",
95
+ "unicorn/no-array-fill-with-reference-type": "error",
96
+ "unicorn/no-array-reverse": "error",
97
+ "unicorn/no-array-sort": "error",
98
+ "unicorn/no-await-in-promise-methods": "error",
99
+ "unicorn/no-confusing-array-with": "error",
100
+ "unicorn/no-empty-file": "error",
101
+ "unicorn/no-instanceof-builtins": "error",
102
+ "unicorn/no-invalid-fetch-options": "error",
103
+ "unicorn/no-invalid-remove-event-listener": "error",
104
+ "unicorn/no-new-array": "error",
105
+ "unicorn/no-single-promise-in-promise-methods": "error",
106
+ "unicorn/no-thenable": "error",
107
+ "unicorn/no-unnecessary-await": "error",
108
+ "unicorn/no-useless-fallback-in-spread": "error",
109
+ "unicorn/no-useless-length-check": "error",
110
+ "unicorn/no-useless-spread": "error",
111
+ "unicorn/prefer-add-event-listener": "error",
112
+ "unicorn/prefer-set-size": "error",
113
+ "unicorn/prefer-string-starts-ends-with": "error",
114
+ "unicorn/require-module-specifiers": "error",
115
+ "unicorn/require-post-message-target-origin": "error",
116
+ "use-isnan": "error",
117
+ "valid-typeof": "error",
6
118
  /**
7
119
  * Disallow the use of console.
8
120
  */
@@ -25,5 +137,4 @@ const possibleErrorsRules = {
25
137
  */
26
138
  "no-unreachable-loop": "error"
27
139
  };
28
- //#endregion
29
140
  export { possibleErrorsRules };
@@ -1,7 +1,6 @@
1
1
  import __tsdown_shims_path from 'node:path';
2
2
  import __tsdown_shims_url from 'node:url';
3
- //#region src/oxlint/rules/react-x.d.ts
4
- declare const reactXRules: {
3
+ export declare const reactXRules: {
5
4
  "@eslint-react/exhaustive-deps": "off";
6
5
  "@eslint-react/rules-of-hooks": "off";
7
6
  "@eslint-react/no-array-index-key": "off";
@@ -33,6 +32,4 @@ declare const reactXRules: {
33
32
  "@eslint-react/static-components": "off";
34
33
  "@eslint-react/unsupported-syntax": "off";
35
34
  "@eslint-react/use-memo": "off";
36
- };
37
- //#endregion
38
- export { reactXRules };
35
+ };
@@ -34,5 +34,4 @@ const reactXRules = {
34
34
  "@eslint-react/unsupported-syntax": "off",
35
35
  "@eslint-react/use-memo": "off"
36
36
  };
37
- //#endregion
38
37
  export { reactXRules };
@@ -1,8 +1,81 @@
1
1
  import __tsdown_shims_path from 'node:path';
2
2
  import __tsdown_shims_url from 'node:url';
3
- //#region src/oxlint/rules/react.d.ts
4
- declare const reactRules: {
5
- "react/react-compiler": "error";
3
+ export declare const reactRules: {
4
+ "react/button-has-type": "error";
5
+ "react/capitalized-calls": "error";
6
+ "react/checked-requires-onchange-or-readonly": "error";
7
+ "react/display-name": "error";
8
+ "react/error-boundaries": "error";
9
+ "react/exhaustive-deps": "error";
10
+ "react/exhaustive-effect-dependencies": "error";
11
+ "react/forbid-dom-props": "error";
12
+ "react/forbid-elements": "error";
13
+ "react/forward-ref-uses-ref": "error";
14
+ "react/function-component-definition": "error";
15
+ "react/globals": "error";
16
+ "react/hook-use-state": "error";
17
+ "react/hooks": "error";
18
+ "react/iframe-missing-sandbox": "error";
19
+ "react/immutability": "error";
20
+ "react/incompatible-library": "error";
21
+ "react/invariant": "error";
22
+ "react/jsx-boolean-value": "error";
23
+ "react/jsx-curly-brace-presence": "error";
24
+ "react/jsx-fragments": "error";
25
+ "react/jsx-handler-names": "error";
26
+ "react/jsx-key": "error";
27
+ "react/jsx-no-comment-textnodes": "error";
28
+ "react/jsx-no-constructed-context-values": "error";
29
+ "react/jsx-no-duplicate-props": "error";
30
+ "react/jsx-no-script-url": "error";
31
+ "react/jsx-no-target-blank": "error";
32
+ "react/jsx-no-undef": "error";
33
+ "react/jsx-no-useless-fragment": "error";
34
+ "react/jsx-pascal-case": "error";
35
+ "react/jsx-props-no-spread-multi": "error";
36
+ "react/memo-dependencies": "error";
37
+ "react/no-array-index-key": "error";
38
+ "react/no-children-prop": "error";
39
+ "react/no-clone-element": "error";
40
+ "react/no-danger": "error";
41
+ "react/no-danger-with-children": "error";
42
+ "react/no-deriving-state-in-effects": "error";
43
+ "react/no-did-mount-set-state": "error";
44
+ "react/no-did-update-set-state": "error";
45
+ "react/no-direct-mutation-state": "error";
46
+ "react/no-find-dom-node": "error";
47
+ "react/no-is-mounted": "error";
48
+ "react/no-namespace": "error";
49
+ "react/no-object-type-as-default-prop": "error";
50
+ "react/no-react-children": "error";
51
+ "react/no-redundant-should-component-update": "error";
52
+ "react/no-render-return-value": "error";
53
+ "react/no-set-state": "error";
54
+ "react/no-string-refs": "error";
55
+ "react/no-this-in-sfc": "error";
56
+ "react/no-unescaped-entities": "error";
57
+ "react/no-unknown-property": "error";
58
+ "react/no-unsafe": "error";
59
+ "react/no-will-update-set-state": "error";
60
+ "react/only-export-components": "error";
61
+ "react/prefer-es6-class": "error";
62
+ "react/prefer-function-component": "error";
63
+ "react/preserve-manual-memoization": "error";
64
+ "react/purity": "error";
65
+ "react/refs": "error";
66
+ "react/rule-suppression": "error";
67
+ "react/rules-of-hooks": "error";
68
+ "react/self-closing-comp": "error";
69
+ "react/set-state-in-effect": "error";
70
+ "react/set-state-in-render": "error";
71
+ "react/state-in-constructor": "error";
72
+ "react/static-components": "error";
73
+ "react/style-prop-object": "error";
74
+ "react/syntax": "error";
75
+ "react/unsupported-syntax": "error";
76
+ "react/use-memo": "error";
77
+ "react/void-dom-elements-no-children": "error";
78
+ "react/void-use-memo": "error";
6
79
  "react/forbid-component-props": ["error", {
7
80
  forbid: string[];
8
81
  }];
@@ -18,11 +91,10 @@ declare const reactRules: {
18
91
  "react/jsx-props-no-spreading": "off";
19
92
  "react/no-multi-comp": "off";
20
93
  "react/react-in-jsx-scope": "off";
94
+ "react/todo": "off";
21
95
  "react-perf/jsx-no-jsx-as-prop": "off";
22
96
  "react/jsx-no-literals": "off";
23
97
  "react-perf/jsx-no-new-array-as-prop": "off";
24
98
  "react-perf/jsx-no-new-function-as-prop": "off";
25
99
  "react-perf/jsx-no-new-object-as-prop": "off";
26
- };
27
- //#endregion
28
- export { reactRules };
100
+ };