@haltcase/style 8.0.1 → 9.0.0-canary.2

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 (82) hide show
  1. package/README.md +8 -4
  2. package/THIRD-PARTY-NOTICES +28 -0
  3. package/dist/editorconfig/index.d.ts +1 -4
  4. package/dist/editorconfig/index.js +1 -2
  5. package/dist/oxfmt/index.d.ts +2 -5
  6. package/dist/oxfmt/index.js +3 -2
  7. package/dist/oxfmt/utils.d.ts +3 -0
  8. package/dist/oxfmt/utils.js +4 -0
  9. package/dist/oxlint/configs/base.d.ts +433 -12
  10. package/dist/oxlint/configs/base.js +7 -3
  11. package/dist/oxlint/configs/next.d.ts +31 -11
  12. package/dist/oxlint/configs/next.js +7 -3
  13. package/dist/oxlint/configs/node.d.ts +19 -11
  14. package/dist/oxlint/configs/node.js +4 -3
  15. package/dist/oxlint/configs/react.d.ts +1 -4
  16. package/dist/oxlint/configs/react.js +6 -5
  17. package/dist/oxlint/configs/tanstack-router.d.ts +8 -6
  18. package/dist/oxlint/configs/tanstack-router.js +5 -5
  19. package/dist/oxlint/configs/tanstack-start.d.ts +8 -11
  20. package/dist/oxlint/configs/tanstack-start.js +1 -2
  21. package/dist/oxlint/configs/testing.d.ts +83 -11
  22. package/dist/oxlint/configs/testing.js +4 -3
  23. package/dist/oxlint/configs/typescript.d.ts +95 -11
  24. package/dist/oxlint/configs/typescript.js +2 -3
  25. package/dist/oxlint/constants.d.ts +21 -24
  26. package/dist/oxlint/constants.js +7 -8
  27. package/dist/oxlint/index.d.ts +4 -6
  28. package/dist/oxlint/index.js +3 -3
  29. package/dist/oxlint/plugin.d.ts +4 -0
  30. package/dist/oxlint/plugin.js +11 -0
  31. package/dist/oxlint/rules/_next.d.ts +25 -0
  32. package/dist/oxlint/rules/_next.js +28 -0
  33. package/dist/oxlint/rules/_node.d.ts +13 -0
  34. package/dist/oxlint/rules/_node.js +16 -0
  35. package/dist/oxlint/rules/_testing.d.ts +77 -0
  36. package/dist/oxlint/rules/_testing.js +80 -0
  37. package/dist/oxlint/rules/_typescript-defaults.d.ts +113 -0
  38. package/dist/oxlint/rules/_typescript-defaults.js +116 -0
  39. package/dist/oxlint/rules/best-practice.d.ts +80 -5
  40. package/dist/oxlint/rules/best-practice.js +78 -1
  41. package/dist/oxlint/rules/imports.d.ts +16 -5
  42. package/dist/oxlint/rules/imports.js +14 -1
  43. package/dist/oxlint/rules/jsx-a11y.d.ts +38 -6
  44. package/dist/oxlint/rules/jsx-a11y.js +39 -2
  45. package/dist/oxlint/rules/playwright-test.d.ts +2 -5
  46. package/dist/oxlint/rules/playwright-test.js +1 -2
  47. package/dist/oxlint/rules/possible-errors.d.ts +114 -5
  48. package/dist/oxlint/rules/possible-errors.js +113 -2
  49. package/dist/oxlint/rules/react-x.d.ts +2 -5
  50. package/dist/oxlint/rules/react-x.js +0 -1
  51. package/dist/oxlint/rules/react.d.ts +78 -6
  52. package/dist/oxlint/rules/react.js +76 -2
  53. package/dist/oxlint/rules/restriction.d.ts +35 -5
  54. package/dist/oxlint/rules/restriction.js +34 -2
  55. package/dist/oxlint/rules/stylistic-jsx.d.ts +2 -5
  56. package/dist/oxlint/rules/stylistic-jsx.js +1 -2
  57. package/dist/oxlint/rules/stylistic.d.ts +78 -5
  58. package/dist/oxlint/rules/stylistic.js +76 -1
  59. package/dist/oxlint/rules/typescript/declaration-files.d.ts +2 -5
  60. package/dist/oxlint/rules/typescript/declaration-files.js +0 -1
  61. package/dist/oxlint/rules/typescript/index.d.ts +89 -5
  62. package/dist/oxlint/rules/typescript/index.js +87 -1
  63. package/dist/oxlint/rules/variables.d.ts +2 -5
  64. package/dist/oxlint/rules/variables.js +1 -2
  65. package/dist/oxlint/utils/eslint-compat.d.ts +3 -5
  66. package/dist/oxlint/utils/eslint-compat.js +1 -2
  67. package/dist/oxlint/vendor/gnkz/padding.d.ts +12 -0
  68. package/dist/oxlint/vendor/gnkz/padding.js +54 -0
  69. package/dist/oxlint/vendor/gnkz/rules/padding-between-statements.d.ts +14 -0
  70. package/dist/oxlint/vendor/gnkz/rules/padding-between-statements.js +111 -0
  71. package/dist/stylelint/_base.d.ts +1 -4
  72. package/dist/stylelint/_base.js +1 -2
  73. package/dist/stylelint/index.d.ts +0 -2
  74. package/dist/stylelint/index.js +1 -2
  75. package/dist/stylelint/modules.d.ts +0 -2
  76. package/dist/stylelint/modules.js +1 -2
  77. package/dist/stylelint/standard.js +1 -2
  78. package/dist/stylelint/tailwind.d.ts +0 -2
  79. package/dist/stylelint/tailwind.js +1 -2
  80. package/dist/vite-plus/index.d.ts +2 -4
  81. package/dist/vite-plus/index.js +1 -2
  82. package/package.json +42 -39
@@ -5,16 +5,90 @@ const reactRules = {
5
5
  "react/jsx-props-no-spreading": "off",
6
6
  "react/no-multi-comp": "off",
7
7
  "react/react-in-jsx-scope": "off",
8
+ "react/todo": "off",
8
9
  "react-perf/jsx-no-jsx-as-prop": "off",
9
10
  "react/jsx-no-literals": "off",
10
11
  "react-perf/jsx-no-new-array-as-prop": "off",
11
12
  "react-perf/jsx-no-new-function-as-prop": "off",
12
13
  "react-perf/jsx-no-new-object-as-prop": "off",
13
- "react/react-compiler": "error",
14
+ "react/button-has-type": "error",
15
+ "react/capitalized-calls": "error",
16
+ "react/checked-requires-onchange-or-readonly": "error",
17
+ "react/display-name": "error",
18
+ "react/error-boundaries": "error",
19
+ "react/exhaustive-deps": "error",
20
+ "react/exhaustive-effect-dependencies": "error",
21
+ "react/forbid-dom-props": "error",
22
+ "react/forbid-elements": "error",
23
+ "react/forward-ref-uses-ref": "error",
24
+ "react/function-component-definition": "error",
25
+ "react/globals": "error",
26
+ "react/hook-use-state": "error",
27
+ "react/hooks": "error",
28
+ "react/iframe-missing-sandbox": "error",
29
+ "react/immutability": "error",
30
+ "react/incompatible-library": "error",
31
+ "react/invariant": "error",
32
+ "react/jsx-boolean-value": "error",
33
+ "react/jsx-curly-brace-presence": "error",
34
+ "react/jsx-fragments": "error",
35
+ "react/jsx-handler-names": "error",
36
+ "react/jsx-key": "error",
37
+ "react/jsx-no-comment-textnodes": "error",
38
+ "react/jsx-no-constructed-context-values": "error",
39
+ "react/jsx-no-duplicate-props": "error",
40
+ "react/jsx-no-script-url": "error",
41
+ "react/jsx-no-target-blank": "error",
42
+ "react/jsx-no-undef": "error",
43
+ "react/jsx-no-useless-fragment": "error",
44
+ "react/jsx-pascal-case": "error",
45
+ "react/jsx-props-no-spread-multi": "error",
46
+ "react/memo-dependencies": "error",
47
+ "react/no-array-index-key": "error",
48
+ "react/no-children-prop": "error",
49
+ "react/no-clone-element": "error",
50
+ "react/no-danger": "error",
51
+ "react/no-danger-with-children": "error",
52
+ "react/no-deriving-state-in-effects": "error",
53
+ "react/no-did-mount-set-state": "error",
54
+ "react/no-did-update-set-state": "error",
55
+ "react/no-direct-mutation-state": "error",
56
+ "react/no-find-dom-node": "error",
57
+ "react/no-is-mounted": "error",
58
+ "react/no-namespace": "error",
59
+ "react/no-object-type-as-default-prop": "error",
60
+ "react/no-react-children": "error",
61
+ "react/no-redundant-should-component-update": "error",
62
+ "react/no-render-return-value": "error",
63
+ "react/no-set-state": "error",
64
+ "react/no-string-refs": "error",
65
+ "react/no-this-in-sfc": "error",
66
+ "react/no-unescaped-entities": "error",
67
+ "react/no-unknown-property": "error",
68
+ "react/no-unsafe": "error",
69
+ "react/no-will-update-set-state": "error",
70
+ "react/only-export-components": "error",
71
+ "react/prefer-es6-class": "error",
72
+ "react/prefer-function-component": "error",
73
+ "react/preserve-manual-memoization": "error",
74
+ "react/purity": "error",
75
+ "react/refs": "error",
76
+ "react/rule-suppression": "error",
77
+ "react/rules-of-hooks": "error",
78
+ "react/self-closing-comp": "error",
79
+ "react/set-state-in-effect": "error",
80
+ "react/set-state-in-render": "error",
81
+ "react/state-in-constructor": "error",
82
+ "react/static-components": "error",
83
+ "react/style-prop-object": "error",
84
+ "react/syntax": "error",
85
+ "react/unsupported-syntax": "error",
86
+ "react/use-memo": "error",
87
+ "react/void-dom-elements-no-children": "error",
88
+ "react/void-use-memo": "error",
14
89
  "react/forbid-component-props": ["error", { forbid: ["style"] }],
15
90
  "react/jsx-filename-extension": ["error", { extensions: ["tsx", "jsx"] }],
16
91
  "react/jsx-max-depth": ["error", { max: 12 }],
17
92
  "react/no-unstable-nested-components": ["error", { allowAsProps: true }]
18
93
  };
19
- //#endregion
20
94
  export { reactRules };
@@ -1,7 +1,39 @@
1
1
  import __tsdown_shims_path from 'node:path';
2
2
  import __tsdown_shims_url from 'node:url';
3
- //#region src/oxlint/rules/restriction.d.ts
4
- declare const restrictionRules: {
3
+ export declare const restrictionRules: {
4
+ "class-methods-use-this": "error";
5
+ "default-case": "error";
6
+ "jsdoc/check-access": "error";
7
+ "jsdoc/empty-tags": "error";
8
+ "no-div-regex": "error";
9
+ "no-empty": "error";
10
+ "no-empty-function": "error";
11
+ "no-implicit-globals": "error";
12
+ "no-regex-spaces": "error";
13
+ "no-restricted-globals": "error";
14
+ "no-restricted-imports": "error";
15
+ "no-restricted-properties": "error";
16
+ "no-use-before-define": "error";
17
+ "no-var": "error";
18
+ "oxc/bad-bitwise-operator": "error";
19
+ "oxc/no-barrel-file": "error";
20
+ "oxc/no-const-enum": "error";
21
+ "promise/catch-or-return": "error";
22
+ "promise/spec-only": "error";
23
+ "unicode-bom": "error";
24
+ "unicorn/no-abusive-eslint-disable": "error";
25
+ "unicorn/no-anonymous-default-export": "error";
26
+ "unicorn/no-array-for-each": "error";
27
+ "unicorn/no-array-reduce": "error";
28
+ "unicorn/no-document-cookie": "error";
29
+ "unicorn/no-length-as-slice-end": "error";
30
+ "unicorn/no-magic-array-flat-depth": "error";
31
+ "unicorn/no-process-exit": "error";
32
+ "unicorn/no-useless-error-capture-stack-trace": "error";
33
+ "unicorn/prefer-modern-math-apis": "error";
34
+ "unicorn/prefer-module": "error";
35
+ "unicorn/prefer-node-protocol": "error";
36
+ "unicorn/prefer-number-properties": "error";
5
37
  "node/no-process-env": "off";
6
38
  "oxc/no-async-await": "off";
7
39
  "oxc/no-rest-spread-properties": "off";
@@ -17,6 +49,4 @@ declare const restrictionRules: {
17
49
  "no-ternary": "off";
18
50
  "no-undefined": "off";
19
51
  "no-void": "off";
20
- };
21
- //#endregion
22
- export { restrictionRules };
52
+ };
@@ -16,7 +16,39 @@ const restrictionRules = {
16
16
  "no-plusplus": "off",
17
17
  "no-ternary": "off",
18
18
  "no-undefined": "off",
19
- "no-void": "off"
19
+ "no-void": "off",
20
+ "class-methods-use-this": "error",
21
+ "default-case": "error",
22
+ "jsdoc/check-access": "error",
23
+ "jsdoc/empty-tags": "error",
24
+ "no-div-regex": "error",
25
+ "no-empty": "error",
26
+ "no-empty-function": "error",
27
+ "no-implicit-globals": "error",
28
+ "no-regex-spaces": "error",
29
+ "no-restricted-globals": "error",
30
+ "no-restricted-imports": "error",
31
+ "no-restricted-properties": "error",
32
+ "no-use-before-define": "error",
33
+ "no-var": "error",
34
+ "oxc/bad-bitwise-operator": "error",
35
+ "oxc/no-barrel-file": "error",
36
+ "oxc/no-const-enum": "error",
37
+ "promise/catch-or-return": "error",
38
+ "promise/spec-only": "error",
39
+ "unicode-bom": "error",
40
+ "unicorn/no-abusive-eslint-disable": "error",
41
+ "unicorn/no-anonymous-default-export": "error",
42
+ "unicorn/no-array-for-each": "error",
43
+ "unicorn/no-array-reduce": "error",
44
+ "unicorn/no-document-cookie": "error",
45
+ "unicorn/no-length-as-slice-end": "error",
46
+ "unicorn/no-magic-array-flat-depth": "error",
47
+ "unicorn/no-process-exit": "error",
48
+ "unicorn/no-useless-error-capture-stack-trace": "error",
49
+ "unicorn/prefer-modern-math-apis": "error",
50
+ "unicorn/prefer-module": "error",
51
+ "unicorn/prefer-node-protocol": "error",
52
+ "unicorn/prefer-number-properties": "error"
20
53
  };
21
- //#endregion
22
54
  export { restrictionRules };
@@ -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/stylistic-jsx.d.ts
4
- declare const stylisticJsxRules: {
3
+ export declare const stylisticJsxRules: {
5
4
  /**
6
5
  * Disallow extra closing tags for components without children.
7
6
  *
@@ -10,6 +9,4 @@ declare const stylisticJsxRules: {
10
9
  * 🔧 Fixable - https://eslint.style/rules/jsx/jsx-self-closing-comp
11
10
  */
12
11
  "@stylistic/jsx/jsx-self-closing-comp": string;
13
- };
14
- //#endregion
15
- export { stylisticJsxRules };
12
+ };
@@ -1,7 +1,7 @@
1
1
  import "node:path";
2
2
  import "node:url";
3
3
  import.meta.url;
4
- //#region src/oxlint/rules/stylistic-jsx.ts
4
+ // src/oxlint/rules/stylistic-jsx.ts
5
5
  const stylisticJsxRules = {
6
6
  /**
7
7
  * Disallow extra closing tags for components without children.
@@ -11,5 +11,4 @@ const stylisticJsxRules = {
11
11
  * 🔧 Fixable - https://eslint.style/rules/jsx/jsx-self-closing-comp
12
12
  */
13
13
  "@stylistic/jsx/jsx-self-closing-comp": "error" };
14
- //#endregion
15
14
  export { stylisticJsxRules };
@@ -1,7 +1,82 @@
1
1
  import __tsdown_shims_path from 'node:path';
2
2
  import __tsdown_shims_url from 'node:url';
3
- //#region src/oxlint/rules/stylistic.d.ts
4
- declare const stylisticRules: {
3
+ export declare const stylisticRules: {
4
+ "arrow-body-style": "error";
5
+ "func-name-matching": "error";
6
+ "func-style": "error";
7
+ "guard-for-in": "error";
8
+ "id-denylist": "error";
9
+ "id-match": "error";
10
+ "jsdoc/no-blank-blocks": "error";
11
+ "jsdoc/require-throws-description": "error";
12
+ "jsdoc/require-yields-description": "error";
13
+ "logical-assignment-operators": "error";
14
+ "no-multi-str": "error";
15
+ "no-useless-computed-key": "error";
16
+ "object-shorthand": "error";
17
+ "one-var": ["error", "never"];
18
+ "operator-assignment": "error";
19
+ "prefer-const": "error";
20
+ "prefer-destructuring": "error";
21
+ "prefer-exponentiation-operator": "error";
22
+ "prefer-numeric-literals": "error";
23
+ "prefer-object-has-own": "error";
24
+ "prefer-rest-params": "error";
25
+ "prefer-spread": "error";
26
+ "prefer-template": "error";
27
+ "promise/avoid-new": "error";
28
+ "promise/no-nesting": "error";
29
+ "promise/no-return-wrap": "error";
30
+ "promise/param-names": "error";
31
+ "promise/prefer-await-to-then": "error";
32
+ "promise/prefer-catch": "error";
33
+ "unicorn/catch-error-name": "error";
34
+ "unicorn/consistent-date-clone": "error";
35
+ "unicorn/consistent-existence-index-check": "error";
36
+ "unicorn/consistent-template-literal-escape": "error";
37
+ "unicorn/custom-error-definition": "error";
38
+ "unicorn/empty-brace-spaces": "error";
39
+ "unicorn/error-message": "error";
40
+ "unicorn/explicit-timer-delay": "error";
41
+ "unicorn/filename-case": "error";
42
+ "unicorn/no-array-method-this-argument": "error";
43
+ "unicorn/no-await-expression-member": "error";
44
+ "unicorn/no-console-spaces": "error";
45
+ "unicorn/no-unreadable-array-destructuring": "error";
46
+ "unicorn/no-useless-collection-argument": "error";
47
+ "unicorn/no-zero-fractions": "error";
48
+ "unicorn/number-literal-case": "error";
49
+ "unicorn/numeric-separators-style": "error";
50
+ "unicorn/prefer-array-index-of": "error";
51
+ "unicorn/prefer-bigint-literals": "error";
52
+ "unicorn/prefer-class-fields": "error";
53
+ "unicorn/prefer-classlist-toggle": "error";
54
+ "unicorn/prefer-default-parameters": "error";
55
+ "unicorn/prefer-dom-node-text-content": "error";
56
+ "unicorn/prefer-export-from": "error";
57
+ "unicorn/prefer-global-this": "error";
58
+ "unicorn/prefer-includes": "error";
59
+ "unicorn/prefer-keyboard-event-key": "error";
60
+ "unicorn/prefer-logical-operator-over-ternary": "error";
61
+ "unicorn/prefer-modern-dom-apis": "error";
62
+ "unicorn/prefer-negative-index": "error";
63
+ "unicorn/prefer-object-from-entries": "error";
64
+ "unicorn/prefer-optional-catch-binding": "error";
65
+ "unicorn/prefer-reflect-apply": "error";
66
+ "unicorn/prefer-response-static-json": "error";
67
+ "unicorn/prefer-spread": "error";
68
+ "unicorn/prefer-string-raw": "error";
69
+ "unicorn/prefer-string-trim-start-end": "error";
70
+ "unicorn/prefer-structured-clone": "error";
71
+ "unicorn/prefer-ternary": "error";
72
+ "unicorn/relative-url-style": "error";
73
+ "unicorn/require-array-join-separator": "error";
74
+ "unicorn/require-module-attributes": "error";
75
+ "unicorn/switch-case-braces": "error";
76
+ "unicorn/switch-case-break-position": "error";
77
+ "unicorn/text-encoding-identifier-case": "error";
78
+ "unicorn/throw-new-error": "error";
79
+ "vars-on-top": "error";
5
80
  /**
6
81
  * Require function expressions to have a name.
7
82
  */
@@ -83,6 +158,4 @@ declare const stylisticRules: {
83
158
  "promise/prefer-await-to-callbacks": "off";
84
159
  "unicorn/import-style": "off";
85
160
  "unicorn/no-null": "off";
86
- };
87
- //#endregion
88
- export { stylisticRules };
161
+ };
@@ -13,6 +13,82 @@ const stylisticRules = {
13
13
  "promise/prefer-await-to-callbacks": "off",
14
14
  "unicorn/import-style": "off",
15
15
  "unicorn/no-null": "off",
16
+ "arrow-body-style": "error",
17
+ "func-name-matching": "error",
18
+ "func-style": "error",
19
+ "guard-for-in": "error",
20
+ "id-denylist": "error",
21
+ "id-match": "error",
22
+ "jsdoc/no-blank-blocks": "error",
23
+ "jsdoc/require-throws-description": "error",
24
+ "jsdoc/require-yields-description": "error",
25
+ "logical-assignment-operators": "error",
26
+ "no-multi-str": "error",
27
+ "no-useless-computed-key": "error",
28
+ "object-shorthand": "error",
29
+ "one-var": ["error", "never"],
30
+ "operator-assignment": "error",
31
+ "prefer-const": "error",
32
+ "prefer-destructuring": "error",
33
+ "prefer-exponentiation-operator": "error",
34
+ "prefer-numeric-literals": "error",
35
+ "prefer-object-has-own": "error",
36
+ "prefer-rest-params": "error",
37
+ "prefer-spread": "error",
38
+ "prefer-template": "error",
39
+ "promise/avoid-new": "error",
40
+ "promise/no-nesting": "error",
41
+ "promise/no-return-wrap": "error",
42
+ "promise/param-names": "error",
43
+ "promise/prefer-await-to-then": "error",
44
+ "promise/prefer-catch": "error",
45
+ "unicorn/catch-error-name": "error",
46
+ "unicorn/consistent-date-clone": "error",
47
+ "unicorn/consistent-existence-index-check": "error",
48
+ "unicorn/consistent-template-literal-escape": "error",
49
+ "unicorn/custom-error-definition": "error",
50
+ "unicorn/empty-brace-spaces": "error",
51
+ "unicorn/error-message": "error",
52
+ "unicorn/explicit-timer-delay": "error",
53
+ "unicorn/filename-case": "error",
54
+ "unicorn/no-array-method-this-argument": "error",
55
+ "unicorn/no-await-expression-member": "error",
56
+ "unicorn/no-console-spaces": "error",
57
+ "unicorn/no-unreadable-array-destructuring": "error",
58
+ "unicorn/no-useless-collection-argument": "error",
59
+ "unicorn/no-zero-fractions": "error",
60
+ "unicorn/number-literal-case": "error",
61
+ "unicorn/numeric-separators-style": "error",
62
+ "unicorn/prefer-array-index-of": "error",
63
+ "unicorn/prefer-bigint-literals": "error",
64
+ "unicorn/prefer-class-fields": "error",
65
+ "unicorn/prefer-classlist-toggle": "error",
66
+ "unicorn/prefer-default-parameters": "error",
67
+ "unicorn/prefer-dom-node-text-content": "error",
68
+ "unicorn/prefer-export-from": "error",
69
+ "unicorn/prefer-global-this": "error",
70
+ "unicorn/prefer-includes": "error",
71
+ "unicorn/prefer-keyboard-event-key": "error",
72
+ "unicorn/prefer-logical-operator-over-ternary": "error",
73
+ "unicorn/prefer-modern-dom-apis": "error",
74
+ "unicorn/prefer-negative-index": "error",
75
+ "unicorn/prefer-object-from-entries": "error",
76
+ "unicorn/prefer-optional-catch-binding": "error",
77
+ "unicorn/prefer-reflect-apply": "error",
78
+ "unicorn/prefer-response-static-json": "error",
79
+ "unicorn/prefer-spread": "error",
80
+ "unicorn/prefer-string-raw": "error",
81
+ "unicorn/prefer-string-trim-start-end": "error",
82
+ "unicorn/prefer-structured-clone": "error",
83
+ "unicorn/prefer-ternary": "error",
84
+ "unicorn/relative-url-style": "error",
85
+ "unicorn/require-array-join-separator": "error",
86
+ "unicorn/require-module-attributes": "error",
87
+ "unicorn/switch-case-braces": "error",
88
+ "unicorn/switch-case-break-position": "error",
89
+ "unicorn/text-encoding-identifier-case": "error",
90
+ "unicorn/throw-new-error": "error",
91
+ "vars-on-top": "error",
16
92
  /**
17
93
  * Require function expressions to have a name.
18
94
  */
@@ -70,5 +146,4 @@ const stylisticRules = {
70
146
  "unicorn/max-nested-calls": ["error", { max: 5 }],
71
147
  "unicorn/no-nested-ternary": "error"
72
148
  };
73
- //#endregion
74
149
  export { stylisticRules };
@@ -1,8 +1,5 @@
1
1
  import __tsdown_shims_path from 'node:path';
2
2
  import __tsdown_shims_url from 'node:url';
3
- //#region src/oxlint/rules/typescript/declaration-files.d.ts
4
- declare const typescriptDeclarationFilesRules: {
3
+ export declare const typescriptDeclarationFilesRules: {
5
4
  "import/unambiguous": "off";
6
- };
7
- //#endregion
8
- export { typescriptDeclarationFilesRules };
5
+ };
@@ -2,5 +2,4 @@ import "node:path";
2
2
  import "node:url";
3
3
  import.meta.url;
4
4
  const typescriptDeclarationFilesRules = { "import/unambiguous": "off" };
5
- //#endregion
6
5
  export { typescriptDeclarationFilesRules };
@@ -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/typescript/index.d.ts
4
- declare const typescriptBaseRules: {
3
+ export declare const typescriptBaseRules: {
5
4
  /**
6
5
  * Require consistent usage of type exports.
7
6
  */
@@ -102,6 +101,91 @@ declare const typescriptBaseRules: {
102
101
  "typescript/promise-function-async": "off";
103
102
  "typescript/strict-boolean-expressions": "off";
104
103
  "typescript/strict-void-return": "off";
105
- };
106
- //#endregion
107
- export { typescriptBaseRules };
104
+ "typescript/adjacent-overload-signatures": "error";
105
+ "typescript/array-type": "error";
106
+ "typescript/await-thenable": "error";
107
+ "typescript/ban-ts-comment": "error";
108
+ "typescript/ban-tslint-comment": "error";
109
+ "typescript/ban-types": "error";
110
+ "typescript/class-literal-property-style": "error";
111
+ "typescript/consistent-generic-constructors": "error";
112
+ "typescript/consistent-indexed-object-style": "error";
113
+ "typescript/consistent-type-assertions": "error";
114
+ "typescript/consistent-type-definitions": "error";
115
+ "typescript/dot-notation": "error";
116
+ "typescript/explicit-member-accessibility": "error";
117
+ "typescript/explicit-module-boundary-types": "error";
118
+ "typescript/no-array-delete": "error";
119
+ "typescript/no-base-to-string": "error";
120
+ "typescript/no-confusing-non-null-assertion": "error";
121
+ "typescript/no-deprecated": "error";
122
+ "typescript/no-duplicate-enum-values": "error";
123
+ "typescript/no-duplicate-type-constituents": "error";
124
+ "typescript/no-explicit-any": "error";
125
+ "typescript/no-extra-non-null-assertion": "error";
126
+ "typescript/no-extraneous-class": "error";
127
+ "typescript/no-floating-promises": "error";
128
+ "typescript/no-for-in-array": "error";
129
+ "typescript/no-generated-empty-object-type": "error";
130
+ "typescript/no-implied-eval": "error";
131
+ "typescript/no-import-type-side-effects": "error";
132
+ "typescript/no-inferrable-types": "error";
133
+ "typescript/no-invalid-void-type": "error";
134
+ "typescript/no-meaningless-void-operator": "error";
135
+ "typescript/no-misused-new": "error";
136
+ "typescript/no-misused-spread": "error";
137
+ "typescript/no-mixed-enums": "error";
138
+ "typescript/no-namespace": "error";
139
+ "typescript/no-non-null-asserted-nullish-coalescing": "error";
140
+ "typescript/no-non-null-asserted-optional-chain": "error";
141
+ "typescript/no-non-null-assertion": "error";
142
+ "typescript/no-require-imports": "error";
143
+ "typescript/no-restricted-types": "error";
144
+ "typescript/no-this-alias": "error";
145
+ "typescript/no-unnecessary-boolean-literal-compare": "error";
146
+ "typescript/no-unnecessary-parameter-property-assignment": "error";
147
+ "typescript/no-unnecessary-template-expression": "error";
148
+ "typescript/no-unnecessary-type-arguments": "error";
149
+ "typescript/no-unnecessary-type-assertion": "error";
150
+ "typescript/no-unnecessary-type-constraint": "error";
151
+ "typescript/no-unnecessary-type-conversion": "error";
152
+ "typescript/no-unnecessary-type-parameters": "error";
153
+ "typescript/no-unsafe-argument": "error";
154
+ "typescript/no-unsafe-assignment": "error";
155
+ "typescript/no-unsafe-call": "error";
156
+ "typescript/no-unsafe-declaration-merging": "error";
157
+ "typescript/no-unsafe-enum-comparison": "error";
158
+ "typescript/no-unsafe-function-type": "error";
159
+ "typescript/no-unsafe-member-access": "error";
160
+ "typescript/no-unsafe-return": "error";
161
+ "typescript/no-unsafe-unary-minus": "error";
162
+ "typescript/no-useless-default-assignment": "error";
163
+ "typescript/no-useless-empty-export": "error";
164
+ "typescript/no-var-requires": "error";
165
+ "typescript/no-wrapper-object-types": "error";
166
+ "typescript/non-nullable-type-assertion-style": "error";
167
+ "typescript/only-throw-error": "error";
168
+ "typescript/parameter-properties": "error";
169
+ "typescript/prefer-as-const": "error";
170
+ "typescript/prefer-enum-initializers": "error";
171
+ "typescript/prefer-find": "error";
172
+ "typescript/prefer-for-of": "error";
173
+ "typescript/prefer-function-type": "error";
174
+ "typescript/prefer-includes": "error";
175
+ "typescript/prefer-literal-enum-member": "error";
176
+ "typescript/prefer-namespace-keyword": "error";
177
+ "typescript/prefer-promise-reject-errors": "error";
178
+ "typescript/prefer-readonly": "error";
179
+ "typescript/prefer-reduce-type-parameter": "error";
180
+ "typescript/prefer-return-this-type": "error";
181
+ "typescript/prefer-string-starts-ends-with": "error";
182
+ "typescript/prefer-ts-expect-error": "error";
183
+ "typescript/related-getter-setter-pairs": "error";
184
+ "typescript/require-array-sort-compare": "error";
185
+ "typescript/restrict-plus-operands": "error";
186
+ "typescript/return-await": "error";
187
+ "typescript/triple-slash-reference": "error";
188
+ "typescript/unbound-method": "error";
189
+ "typescript/unified-signatures": "error";
190
+ "typescript/use-unknown-in-catch-callback-variable": "error";
191
+ };
@@ -2,6 +2,93 @@ import "node:path";
2
2
  import "node:url";
3
3
  import.meta.url;
4
4
  const typescriptBaseRules = {
5
+ "typescript/adjacent-overload-signatures": "error",
6
+ "typescript/array-type": "error",
7
+ "typescript/await-thenable": "error",
8
+ "typescript/ban-ts-comment": "error",
9
+ "typescript/ban-tslint-comment": "error",
10
+ "typescript/ban-types": "error",
11
+ "typescript/class-literal-property-style": "error",
12
+ "typescript/consistent-generic-constructors": "error",
13
+ "typescript/consistent-indexed-object-style": "error",
14
+ "typescript/consistent-type-assertions": "error",
15
+ "typescript/consistent-type-definitions": "error",
16
+ "typescript/dot-notation": "error",
17
+ "typescript/explicit-member-accessibility": "error",
18
+ "typescript/explicit-module-boundary-types": "error",
19
+ "typescript/no-array-delete": "error",
20
+ "typescript/no-base-to-string": "error",
21
+ "typescript/no-confusing-non-null-assertion": "error",
22
+ "typescript/no-deprecated": "error",
23
+ "typescript/no-duplicate-enum-values": "error",
24
+ "typescript/no-duplicate-type-constituents": "error",
25
+ "typescript/no-explicit-any": "error",
26
+ "typescript/no-extra-non-null-assertion": "error",
27
+ "typescript/no-extraneous-class": "error",
28
+ "typescript/no-floating-promises": "error",
29
+ "typescript/no-for-in-array": "error",
30
+ "typescript/no-generated-empty-object-type": "error",
31
+ "typescript/no-implied-eval": "error",
32
+ "typescript/no-import-type-side-effects": "error",
33
+ "typescript/no-inferrable-types": "error",
34
+ "typescript/no-invalid-void-type": "error",
35
+ "typescript/no-meaningless-void-operator": "error",
36
+ "typescript/no-misused-new": "error",
37
+ "typescript/no-misused-spread": "error",
38
+ "typescript/no-mixed-enums": "error",
39
+ "typescript/no-namespace": "error",
40
+ "typescript/no-non-null-asserted-nullish-coalescing": "error",
41
+ "typescript/no-non-null-asserted-optional-chain": "error",
42
+ "typescript/no-non-null-assertion": "error",
43
+ "typescript/no-require-imports": "error",
44
+ "typescript/no-restricted-types": "error",
45
+ "typescript/no-this-alias": "error",
46
+ "typescript/no-unnecessary-boolean-literal-compare": "error",
47
+ "typescript/no-unnecessary-parameter-property-assignment": "error",
48
+ "typescript/no-unnecessary-template-expression": "error",
49
+ "typescript/no-unnecessary-type-arguments": "error",
50
+ "typescript/no-unnecessary-type-assertion": "error",
51
+ "typescript/no-unnecessary-type-constraint": "error",
52
+ "typescript/no-unnecessary-type-conversion": "error",
53
+ "typescript/no-unnecessary-type-parameters": "error",
54
+ "typescript/no-unsafe-argument": "error",
55
+ "typescript/no-unsafe-assignment": "error",
56
+ "typescript/no-unsafe-call": "error",
57
+ "typescript/no-unsafe-declaration-merging": "error",
58
+ "typescript/no-unsafe-enum-comparison": "error",
59
+ "typescript/no-unsafe-function-type": "error",
60
+ "typescript/no-unsafe-member-access": "error",
61
+ "typescript/no-unsafe-return": "error",
62
+ "typescript/no-unsafe-unary-minus": "error",
63
+ "typescript/no-useless-default-assignment": "error",
64
+ "typescript/no-useless-empty-export": "error",
65
+ "typescript/no-var-requires": "error",
66
+ "typescript/no-wrapper-object-types": "error",
67
+ "typescript/non-nullable-type-assertion-style": "error",
68
+ "typescript/only-throw-error": "error",
69
+ "typescript/parameter-properties": "error",
70
+ "typescript/prefer-as-const": "error",
71
+ "typescript/prefer-enum-initializers": "error",
72
+ "typescript/prefer-find": "error",
73
+ "typescript/prefer-for-of": "error",
74
+ "typescript/prefer-function-type": "error",
75
+ "typescript/prefer-includes": "error",
76
+ "typescript/prefer-literal-enum-member": "error",
77
+ "typescript/prefer-namespace-keyword": "error",
78
+ "typescript/prefer-promise-reject-errors": "error",
79
+ "typescript/prefer-readonly": "error",
80
+ "typescript/prefer-reduce-type-parameter": "error",
81
+ "typescript/prefer-return-this-type": "error",
82
+ "typescript/prefer-string-starts-ends-with": "error",
83
+ "typescript/prefer-ts-expect-error": "error",
84
+ "typescript/related-getter-setter-pairs": "error",
85
+ "typescript/require-array-sort-compare": "error",
86
+ "typescript/restrict-plus-operands": "error",
87
+ "typescript/return-await": "error",
88
+ "typescript/triple-slash-reference": "error",
89
+ "typescript/unbound-method": "error",
90
+ "typescript/unified-signatures": "error",
91
+ "typescript/use-unknown-in-catch-callback-variable": "error",
5
92
  "jsdoc/require-param": "off",
6
93
  "jsdoc/require-param-type": "off",
7
94
  "jsdoc/require-property": "off",
@@ -99,5 +186,4 @@ const typescriptBaseRules = {
99
186
  */
100
187
  "typescript/switch-exhaustiveness-check": "error"
101
188
  };
102
- //#endregion
103
189
  export { typescriptBaseRules };
@@ -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/variables.d.ts
4
- declare const variablesRules: {
3
+ export declare const variablesRules: {
5
4
  /**
6
5
  * Disallow labels that share a name with a variable.
7
6
  *
@@ -20,6 +19,4 @@ declare const variablesRules: {
20
19
  vars: "all";
21
20
  varsIgnorePattern: string;
22
21
  }];
23
- };
24
- //#endregion
25
- export { variablesRules };
22
+ };