@apst/oxlint 0.0.0-dev.20260522.d3790b2c → 0.0.0-dev.20260625.ef70fed8

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 (112) hide show
  1. package/README.md +7 -0
  2. package/dist/constants/default.d.ts +1 -1
  3. package/dist/constants/ignore-patterns.d.ts +16 -2
  4. package/dist/constants/ignore-patterns.js +58 -16
  5. package/dist/constants/ignore-patterns.js.map +1 -1
  6. package/dist/constants/ignore-patterns.mjs +49 -17
  7. package/dist/constants/ignore-patterns.mjs.map +1 -1
  8. package/dist/functions/define.js +2 -2
  9. package/dist/functions/define.js.map +1 -1
  10. package/dist/functions/define.mjs +4 -4
  11. package/dist/functions/define.mjs.map +1 -1
  12. package/dist/functions/merge.js +20 -4
  13. package/dist/functions/merge.js.map +1 -1
  14. package/dist/functions/merge.mjs +19 -4
  15. package/dist/functions/merge.mjs.map +1 -1
  16. package/dist/presets/common/index.d.ts +3 -3
  17. package/dist/presets/common/index.js +2 -0
  18. package/dist/presets/common/index.mjs +3 -3
  19. package/dist/presets/common/preset/index.js +3 -4
  20. package/dist/presets/common/preset/index.js.map +1 -1
  21. package/dist/presets/common/preset/index.mjs +3 -4
  22. package/dist/presets/common/preset/index.mjs.map +1 -1
  23. package/dist/presets/common/rules/eslint.d.ts +8 -4
  24. package/dist/presets/common/rules/eslint.js +4 -4
  25. package/dist/presets/common/rules/eslint.js.map +1 -1
  26. package/dist/presets/common/rules/eslint.mjs +4 -4
  27. package/dist/presets/common/rules/eslint.mjs.map +1 -1
  28. package/dist/presets/common/rules/import.d.ts +10 -0
  29. package/dist/presets/common/rules/import.js +5 -0
  30. package/dist/presets/common/rules/import.js.map +1 -1
  31. package/dist/presets/common/rules/import.mjs +5 -0
  32. package/dist/presets/common/rules/import.mjs.map +1 -1
  33. package/dist/presets/common/rules/oxc.d.ts +6 -1
  34. package/dist/presets/common/rules/oxc.js +1 -0
  35. package/dist/presets/common/rules/oxc.js.map +1 -1
  36. package/dist/presets/common/rules/oxc.mjs +1 -1
  37. package/dist/presets/common/rules/oxc.mjs.map +1 -1
  38. package/dist/presets/common/rules/typescript.d.ts +60 -46
  39. package/dist/presets/common/rules/typescript.js +21 -16
  40. package/dist/presets/common/rules/typescript.js.map +1 -1
  41. package/dist/presets/common/rules/typescript.mjs +21 -16
  42. package/dist/presets/common/rules/typescript.mjs.map +1 -1
  43. package/dist/presets/common/rules/unicorn.d.ts +11 -9
  44. package/dist/presets/common/rules/unicorn.js +7 -5
  45. package/dist/presets/common/rules/unicorn.js.map +1 -1
  46. package/dist/presets/common/rules/unicorn.mjs +7 -6
  47. package/dist/presets/common/rules/unicorn.mjs.map +1 -1
  48. package/dist/presets/jsx/preset/index.js +3 -4
  49. package/dist/presets/jsx/preset/index.js.map +1 -1
  50. package/dist/presets/jsx/preset/index.mjs +3 -4
  51. package/dist/presets/jsx/preset/index.mjs.map +1 -1
  52. package/dist/presets/jsx/rules/jsx-a11y.d.ts +16 -0
  53. package/dist/presets/jsx/rules/jsx-a11y.js +15 -0
  54. package/dist/presets/jsx/rules/jsx-a11y.js.map +1 -1
  55. package/dist/presets/jsx/rules/jsx-a11y.mjs +15 -0
  56. package/dist/presets/jsx/rules/jsx-a11y.mjs.map +1 -1
  57. package/dist/presets/next/index.d.ts +2 -1
  58. package/dist/presets/next/index.js +3 -0
  59. package/dist/presets/next/index.mjs +2 -1
  60. package/dist/presets/next/preset/index.js +3 -4
  61. package/dist/presets/next/preset/index.js.map +1 -1
  62. package/dist/presets/next/preset/index.mjs +3 -4
  63. package/dist/presets/next/preset/index.mjs.map +1 -1
  64. package/dist/presets/next/rules/nextjs.d.ts +48 -0
  65. package/dist/presets/next/rules/nextjs.js +4 -1
  66. package/dist/presets/next/rules/nextjs.js.map +1 -1
  67. package/dist/presets/next/rules/nextjs.mjs +4 -2
  68. package/dist/presets/next/rules/nextjs.mjs.map +1 -1
  69. package/dist/presets/node/preset/index.js +3 -4
  70. package/dist/presets/node/preset/index.js.map +1 -1
  71. package/dist/presets/node/preset/index.mjs +3 -4
  72. package/dist/presets/node/preset/index.mjs.map +1 -1
  73. package/dist/presets/react/index.d.ts +2 -2
  74. package/dist/presets/react/index.js +1 -0
  75. package/dist/presets/react/index.mjs +2 -2
  76. package/dist/presets/react/preset/index.js +3 -4
  77. package/dist/presets/react/preset/index.js.map +1 -1
  78. package/dist/presets/react/preset/index.mjs +3 -4
  79. package/dist/presets/react/preset/index.mjs.map +1 -1
  80. package/dist/presets/react/rules/react.d.ts +32 -1
  81. package/dist/presets/react/rules/react.js +15 -2
  82. package/dist/presets/react/rules/react.js.map +1 -1
  83. package/dist/presets/react/rules/react.mjs +15 -3
  84. package/dist/presets/react/rules/react.mjs.map +1 -1
  85. package/dist/presets/vitest/preset/index.js +3 -4
  86. package/dist/presets/vitest/preset/index.js.map +1 -1
  87. package/dist/presets/vitest/preset/index.mjs +3 -4
  88. package/dist/presets/vitest/preset/index.mjs.map +1 -1
  89. package/dist/presets/vitest/rules/vitest.d.ts +4 -0
  90. package/dist/presets/vitest/rules/vitest.js +3 -1
  91. package/dist/presets/vitest/rules/vitest.js.map +1 -1
  92. package/dist/presets/vitest/rules/vitest.mjs +3 -1
  93. package/dist/presets/vitest/rules/vitest.mjs.map +1 -1
  94. package/dist/presets/vue/index.d.ts +4 -0
  95. package/dist/presets/vue/index.js +12 -0
  96. package/dist/presets/vue/index.mjs +5 -0
  97. package/dist/presets/vue/plugin/index.d.ts +3 -0
  98. package/dist/presets/vue/plugin/index.js +5 -0
  99. package/dist/presets/vue/plugin/index.js.map +1 -0
  100. package/dist/presets/vue/plugin/index.mjs +4 -0
  101. package/dist/presets/vue/plugin/index.mjs.map +1 -0
  102. package/dist/presets/vue/preset/index.d.ts +4 -0
  103. package/dist/presets/vue/preset/index.js +14 -0
  104. package/dist/presets/vue/preset/index.js.map +1 -0
  105. package/dist/presets/vue/preset/index.mjs +14 -0
  106. package/dist/presets/vue/preset/index.mjs.map +1 -0
  107. package/dist/presets/vue/rules/vue.d.ts +47 -0
  108. package/dist/presets/vue/rules/vue.js +32 -0
  109. package/dist/presets/vue/rules/vue.js.map +1 -0
  110. package/dist/presets/vue/rules/vue.mjs +27 -0
  111. package/dist/presets/vue/rules/vue.mjs.map +1 -0
  112. package/package.json +12 -44
@@ -1 +1 @@
1
- {"version":3,"file":"eslint.js","names":[],"sources":["../../../../src/presets/common/rules/eslint.ts"],"sourcesContent":["import type { LintRules } from \"#/@types/oxlint\";\n\nconst RULES_ESLINT_NURSERY = {\n \"getter-return\": \"error\",\n \"no-unreachable\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_ESLINT_PEDANTIC = {\n eqeqeq: [\n \"error\",\n \"always\",\n ],\n \"no-array-constructor\": \"error\",\n \"no-case-declarations\": \"error\",\n \"no-constructor-return\": \"error\",\n \"no-else-return\": [\n \"error\",\n {\n allowElseIf: false,\n },\n ],\n \"no-fallthrough\": [\n \"error\",\n {\n allowEmptyCase: true,\n },\n ],\n \"no-loop-func\": \"error\",\n \"no-new-wrappers\": \"error\",\n \"no-object-constructor\": \"error\",\n \"no-promise-executor-return\": [\n \"error\",\n {\n allowVoid: false,\n },\n ],\n \"no-redeclare\": [\n \"error\",\n {\n builtinGlobals: true,\n },\n ],\n \"no-useless-return\": \"error\",\n radix: \"error\",\n} as const satisfies LintRules;\n\nconst RULES_ESLINT_PERF = {\n \"no-useless-call\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_ESLINT_RESTRICTION = {\n \"no-div-regex\": \"error\",\n \"no-undefined\": \"error\",\n \"no-use-before-define\": [\n \"error\",\n {\n allowNamedExports: true,\n classes: true,\n enums: true,\n functions: false,\n ignoreTypeReferences: true,\n typedefs: true,\n variables: false,\n },\n ],\n \"no-var\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_ESLINT_STYLE = {\n \"default-case-last\": \"error\",\n \"grouped-accessor-pairs\": [\n \"error\",\n \"getBeforeSet\",\n {\n enforceForTSTypes: true,\n },\n ],\n \"no-extra-label\": \"error\",\n \"no-implicit-coercion\": \"error\",\n \"no-label-var\": \"error\",\n \"no-multi-assign\": [\n \"error\",\n {\n ignoreNonDeclaration: false,\n },\n ],\n \"no-template-curly-in-string\": \"error\",\n \"no-useless-computed-key\": [\n \"error\",\n {\n enforceForClassMembers: true,\n },\n ],\n \"prefer-const\": [\n \"error\",\n {\n destructuring: \"all\",\n // avoid conflicts with `no-use-before-define`\n ignoreReadBeforeAssign: true,\n },\n ],\n \"prefer-promise-reject-errors\": [\n \"error\",\n {\n allowEmptyReject: false,\n },\n ],\n \"prefer-rest-params\": \"error\",\n \"prefer-spread\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_ESLINT_SUSPICIOUS = {\n \"block-scoped-var\": \"error\",\n \"no-extend-native\": \"error\",\n \"no-shadow\": [\n \"error\",\n {\n builtinGlobals: false,\n hoist: \"all\",\n ignoreFunctionTypeParameterNameValueShadow: false,\n ignoreOnInitialization: false,\n ignoreTypeValueShadow: false,\n },\n ],\n \"no-unexpected-multiline\": \"error\",\n \"no-unneeded-ternary\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_ESLINT = {\n ...RULES_ESLINT_NURSERY,\n ...RULES_ESLINT_PEDANTIC,\n ...RULES_ESLINT_PERF,\n ...RULES_ESLINT_RESTRICTION,\n ...RULES_ESLINT_STYLE,\n ...RULES_ESLINT_SUSPICIOUS,\n} as const satisfies LintRules;\n\nexport {\n RULES_ESLINT,\n RULES_ESLINT_NURSERY,\n RULES_ESLINT_PEDANTIC,\n RULES_ESLINT_PERF,\n RULES_ESLINT_RESTRICTION,\n RULES_ESLINT_STYLE,\n RULES_ESLINT_SUSPICIOUS,\n};\n"],"mappings":";AAEA,MAAM,uBAAuB;CACzB,iBAAiB;CACjB,kBAAkB;AACtB;AAEA,MAAM,wBAAwB;CAC1B,QAAQ,CACJ,SACA,QACJ;CACA,wBAAwB;CACxB,wBAAwB;CACxB,yBAAyB;CACzB,kBAAkB,CACd,SACA,EACI,aAAa,MACjB,CACJ;CACA,kBAAkB,CACd,SACA,EACI,gBAAgB,KACpB,CACJ;CACA,gBAAgB;CAChB,mBAAmB;CACnB,yBAAyB;CACzB,8BAA8B,CAC1B,SACA,EACI,WAAW,MACf,CACJ;CACA,gBAAgB,CACZ,SACA,EACI,gBAAgB,KACpB,CACJ;CACA,qBAAqB;CACrB,OAAO;AACX;AAEA,MAAM,oBAAoB,EACtB,mBAAmB,QACvB;AAEA,MAAM,2BAA2B;CAC7B,gBAAgB;CAChB,gBAAgB;CAChB,wBAAwB,CACpB,SACA;EACI,mBAAmB;EACnB,SAAS;EACT,OAAO;EACP,WAAW;EACX,sBAAsB;EACtB,UAAU;EACV,WAAW;CACf,CACJ;CACA,UAAU;AACd;AAEA,MAAM,qBAAqB;CACvB,qBAAqB;CACrB,0BAA0B;EACtB;EACA;EACA,EACI,mBAAmB,KACvB;CACJ;CACA,kBAAkB;CAClB,wBAAwB;CACxB,gBAAgB;CAChB,mBAAmB,CACf,SACA,EACI,sBAAsB,MAC1B,CACJ;CACA,+BAA+B;CAC/B,2BAA2B,CACvB,SACA,EACI,wBAAwB,KAC5B,CACJ;CACA,gBAAgB,CACZ,SACA;EACI,eAAe;EAEf,wBAAwB;CAC5B,CACJ;CACA,gCAAgC,CAC5B,SACA,EACI,kBAAkB,MACtB,CACJ;CACA,sBAAsB;CACtB,iBAAiB;AACrB;AAEA,MAAM,0BAA0B;CAC5B,oBAAoB;CACpB,oBAAoB;CACpB,aAAa,CACT,SACA;EACI,gBAAgB;EAChB,OAAO;EACP,4CAA4C;EAC5C,wBAAwB;EACxB,uBAAuB;CAC3B,CACJ;CACA,2BAA2B;CAC3B,uBAAuB;AAC3B;AAEA,MAAM,eAAe;CACjB,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;AACP"}
1
+ {"version":3,"file":"eslint.js","names":[],"sources":["../../../../src/presets/common/rules/eslint.ts"],"sourcesContent":["import type { LintRules } from \"#/@types/oxlint\";\n\nconst RULES_ESLINT_NURSERY = {\n \"no-useless-assignment\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_ESLINT_PEDANTIC = {\n eqeqeq: [\n \"error\",\n \"always\",\n ],\n \"no-array-constructor\": \"error\",\n \"no-case-declarations\": \"error\",\n \"no-constructor-return\": \"error\",\n \"no-else-return\": [\n \"error\",\n {\n allowElseIf: false,\n },\n ],\n \"no-fallthrough\": [\n \"error\",\n {\n allowEmptyCase: true,\n },\n ],\n \"no-loop-func\": \"error\",\n \"no-new-wrappers\": \"error\",\n \"no-object-constructor\": \"error\",\n \"no-promise-executor-return\": [\n \"error\",\n {\n allowVoid: false,\n },\n ],\n \"no-redeclare\": [\n \"error\",\n {\n builtinGlobals: true,\n },\n ],\n \"no-useless-return\": \"error\",\n radix: \"error\",\n} as const satisfies LintRules;\n\nconst RULES_ESLINT_PERF = {\n \"no-useless-call\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_ESLINT_RESTRICTION = {\n \"no-div-regex\": \"error\",\n \"no-undefined\": \"error\",\n \"no-use-before-define\": [\n \"error\",\n {\n allowNamedExports: true,\n classes: true,\n enums: true,\n functions: false,\n ignoreTypeReferences: true,\n typedefs: true,\n variables: false,\n },\n ],\n \"no-var\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_ESLINT_STYLE = {\n \"default-case-last\": \"error\",\n \"func-name-matching\": [\n \"error\",\n \"always\",\n ],\n \"grouped-accessor-pairs\": [\n \"error\",\n \"getBeforeSet\",\n {\n enforceForTSTypes: true,\n },\n ],\n \"no-extra-label\": \"error\",\n \"no-implicit-coercion\": \"error\",\n \"no-label-var\": \"error\",\n \"no-multi-assign\": [\n \"error\",\n {\n ignoreNonDeclaration: false,\n },\n ],\n \"no-template-curly-in-string\": \"error\",\n \"no-useless-computed-key\": [\n \"error\",\n {\n enforceForClassMembers: true,\n },\n ],\n \"prefer-const\": [\n \"error\",\n {\n destructuring: \"all\",\n // avoid conflicts with `no-use-before-define`\n ignoreReadBeforeAssign: true,\n },\n ],\n \"prefer-promise-reject-errors\": [\n \"error\",\n {\n allowEmptyReject: false,\n },\n ],\n \"prefer-rest-params\": \"error\",\n \"prefer-spread\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_ESLINT_SUSPICIOUS = {\n \"block-scoped-var\": \"error\",\n \"no-extend-native\": \"error\",\n \"no-implied-eval\": \"error\",\n \"no-unmodified-loop-condition\": \"error\",\n \"no-shadow\": [\n \"error\",\n {\n builtinGlobals: false,\n hoist: \"all\",\n ignoreFunctionTypeParameterNameValueShadow: false,\n ignoreOnInitialization: false,\n ignoreTypeValueShadow: false,\n },\n ],\n \"no-unexpected-multiline\": \"error\",\n \"no-unneeded-ternary\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_ESLINT = {\n ...RULES_ESLINT_NURSERY,\n ...RULES_ESLINT_PEDANTIC,\n ...RULES_ESLINT_PERF,\n ...RULES_ESLINT_RESTRICTION,\n ...RULES_ESLINT_STYLE,\n ...RULES_ESLINT_SUSPICIOUS,\n} as const satisfies LintRules;\n\nexport {\n RULES_ESLINT,\n RULES_ESLINT_NURSERY,\n RULES_ESLINT_PEDANTIC,\n RULES_ESLINT_PERF,\n RULES_ESLINT_RESTRICTION,\n RULES_ESLINT_STYLE,\n RULES_ESLINT_SUSPICIOUS,\n};\n"],"mappings":";AAEA,MAAM,uBAAuB,EACzB,yBAAyB,QAC7B;AAEA,MAAM,wBAAwB;CAC1B,QAAQ,CACJ,SACA,QACJ;CACA,wBAAwB;CACxB,wBAAwB;CACxB,yBAAyB;CACzB,kBAAkB,CACd,SACA,EACI,aAAa,MACjB,CACJ;CACA,kBAAkB,CACd,SACA,EACI,gBAAgB,KACpB,CACJ;CACA,gBAAgB;CAChB,mBAAmB;CACnB,yBAAyB;CACzB,8BAA8B,CAC1B,SACA,EACI,WAAW,MACf,CACJ;CACA,gBAAgB,CACZ,SACA,EACI,gBAAgB,KACpB,CACJ;CACA,qBAAqB;CACrB,OAAO;AACX;AAEA,MAAM,oBAAoB,EACtB,mBAAmB,QACvB;AAEA,MAAM,2BAA2B;CAC7B,gBAAgB;CAChB,gBAAgB;CAChB,wBAAwB,CACpB,SACA;EACI,mBAAmB;EACnB,SAAS;EACT,OAAO;EACP,WAAW;EACX,sBAAsB;EACtB,UAAU;EACV,WAAW;CACf,CACJ;CACA,UAAU;AACd;AAEA,MAAM,qBAAqB;CACvB,qBAAqB;CACrB,sBAAsB,CAClB,SACA,QACJ;CACA,0BAA0B;EACtB;EACA;EACA,EACI,mBAAmB,KACvB;CACJ;CACA,kBAAkB;CAClB,wBAAwB;CACxB,gBAAgB;CAChB,mBAAmB,CACf,SACA,EACI,sBAAsB,MAC1B,CACJ;CACA,+BAA+B;CAC/B,2BAA2B,CACvB,SACA,EACI,wBAAwB,KAC5B,CACJ;CACA,gBAAgB,CACZ,SACA;EACI,eAAe;EAEf,wBAAwB;CAC5B,CACJ;CACA,gCAAgC,CAC5B,SACA,EACI,kBAAkB,MACtB,CACJ;CACA,sBAAsB;CACtB,iBAAiB;AACrB;AAEA,MAAM,0BAA0B;CAC5B,oBAAoB;CACpB,oBAAoB;CACpB,mBAAmB;CACnB,gCAAgC;CAChC,aAAa,CACT,SACA;EACI,gBAAgB;EAChB,OAAO;EACP,4CAA4C;EAC5C,wBAAwB;EACxB,uBAAuB;CAC3B,CACJ;CACA,2BAA2B;CAC3B,uBAAuB;AAC3B;AAEA,MAAM,eAAe;CACjB,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;AACP"}
@@ -1,7 +1,4 @@
1
- const RULES_ESLINT_NURSERY = {
2
- "getter-return": "error",
3
- "no-unreachable": "error"
4
- };
1
+ const RULES_ESLINT_NURSERY = { "no-useless-assignment": "error" };
5
2
  const RULES_ESLINT_PEDANTIC = {
6
3
  eqeqeq: ["error", "always"],
7
4
  "no-array-constructor": "error",
@@ -34,6 +31,7 @@ const RULES_ESLINT_RESTRICTION = {
34
31
  };
35
32
  const RULES_ESLINT_STYLE = {
36
33
  "default-case-last": "error",
34
+ "func-name-matching": ["error", "always"],
37
35
  "grouped-accessor-pairs": [
38
36
  "error",
39
37
  "getBeforeSet",
@@ -56,6 +54,8 @@ const RULES_ESLINT_STYLE = {
56
54
  const RULES_ESLINT_SUSPICIOUS = {
57
55
  "block-scoped-var": "error",
58
56
  "no-extend-native": "error",
57
+ "no-implied-eval": "error",
58
+ "no-unmodified-loop-condition": "error",
59
59
  "no-shadow": ["error", {
60
60
  builtinGlobals: false,
61
61
  hoist: "all",
@@ -1 +1 @@
1
- {"version":3,"file":"eslint.mjs","names":[],"sources":["../../../../src/presets/common/rules/eslint.ts"],"sourcesContent":["import type { LintRules } from \"#/@types/oxlint\";\n\nconst RULES_ESLINT_NURSERY = {\n \"getter-return\": \"error\",\n \"no-unreachable\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_ESLINT_PEDANTIC = {\n eqeqeq: [\n \"error\",\n \"always\",\n ],\n \"no-array-constructor\": \"error\",\n \"no-case-declarations\": \"error\",\n \"no-constructor-return\": \"error\",\n \"no-else-return\": [\n \"error\",\n {\n allowElseIf: false,\n },\n ],\n \"no-fallthrough\": [\n \"error\",\n {\n allowEmptyCase: true,\n },\n ],\n \"no-loop-func\": \"error\",\n \"no-new-wrappers\": \"error\",\n \"no-object-constructor\": \"error\",\n \"no-promise-executor-return\": [\n \"error\",\n {\n allowVoid: false,\n },\n ],\n \"no-redeclare\": [\n \"error\",\n {\n builtinGlobals: true,\n },\n ],\n \"no-useless-return\": \"error\",\n radix: \"error\",\n} as const satisfies LintRules;\n\nconst RULES_ESLINT_PERF = {\n \"no-useless-call\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_ESLINT_RESTRICTION = {\n \"no-div-regex\": \"error\",\n \"no-undefined\": \"error\",\n \"no-use-before-define\": [\n \"error\",\n {\n allowNamedExports: true,\n classes: true,\n enums: true,\n functions: false,\n ignoreTypeReferences: true,\n typedefs: true,\n variables: false,\n },\n ],\n \"no-var\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_ESLINT_STYLE = {\n \"default-case-last\": \"error\",\n \"grouped-accessor-pairs\": [\n \"error\",\n \"getBeforeSet\",\n {\n enforceForTSTypes: true,\n },\n ],\n \"no-extra-label\": \"error\",\n \"no-implicit-coercion\": \"error\",\n \"no-label-var\": \"error\",\n \"no-multi-assign\": [\n \"error\",\n {\n ignoreNonDeclaration: false,\n },\n ],\n \"no-template-curly-in-string\": \"error\",\n \"no-useless-computed-key\": [\n \"error\",\n {\n enforceForClassMembers: true,\n },\n ],\n \"prefer-const\": [\n \"error\",\n {\n destructuring: \"all\",\n // avoid conflicts with `no-use-before-define`\n ignoreReadBeforeAssign: true,\n },\n ],\n \"prefer-promise-reject-errors\": [\n \"error\",\n {\n allowEmptyReject: false,\n },\n ],\n \"prefer-rest-params\": \"error\",\n \"prefer-spread\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_ESLINT_SUSPICIOUS = {\n \"block-scoped-var\": \"error\",\n \"no-extend-native\": \"error\",\n \"no-shadow\": [\n \"error\",\n {\n builtinGlobals: false,\n hoist: \"all\",\n ignoreFunctionTypeParameterNameValueShadow: false,\n ignoreOnInitialization: false,\n ignoreTypeValueShadow: false,\n },\n ],\n \"no-unexpected-multiline\": \"error\",\n \"no-unneeded-ternary\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_ESLINT = {\n ...RULES_ESLINT_NURSERY,\n ...RULES_ESLINT_PEDANTIC,\n ...RULES_ESLINT_PERF,\n ...RULES_ESLINT_RESTRICTION,\n ...RULES_ESLINT_STYLE,\n ...RULES_ESLINT_SUSPICIOUS,\n} as const satisfies LintRules;\n\nexport {\n RULES_ESLINT,\n RULES_ESLINT_NURSERY,\n RULES_ESLINT_PEDANTIC,\n RULES_ESLINT_PERF,\n RULES_ESLINT_RESTRICTION,\n RULES_ESLINT_STYLE,\n RULES_ESLINT_SUSPICIOUS,\n};\n"],"mappings":"AAEA,MAAM,uBAAuB;CACzB,iBAAiB;CACjB,kBAAkB;AACtB;AAEA,MAAM,wBAAwB;CAC1B,QAAQ,CACJ,SACA,QACJ;CACA,wBAAwB;CACxB,wBAAwB;CACxB,yBAAyB;CACzB,kBAAkB,CACd,SACA,EACI,aAAa,MACjB,CACJ;CACA,kBAAkB,CACd,SACA,EACI,gBAAgB,KACpB,CACJ;CACA,gBAAgB;CAChB,mBAAmB;CACnB,yBAAyB;CACzB,8BAA8B,CAC1B,SACA,EACI,WAAW,MACf,CACJ;CACA,gBAAgB,CACZ,SACA,EACI,gBAAgB,KACpB,CACJ;CACA,qBAAqB;CACrB,OAAO;AACX;AAEA,MAAM,oBAAoB,EACtB,mBAAmB,QACvB;AAEA,MAAM,2BAA2B;CAC7B,gBAAgB;CAChB,gBAAgB;CAChB,wBAAwB,CACpB,SACA;EACI,mBAAmB;EACnB,SAAS;EACT,OAAO;EACP,WAAW;EACX,sBAAsB;EACtB,UAAU;EACV,WAAW;CACf,CACJ;CACA,UAAU;AACd;AAEA,MAAM,qBAAqB;CACvB,qBAAqB;CACrB,0BAA0B;EACtB;EACA;EACA,EACI,mBAAmB,KACvB;CACJ;CACA,kBAAkB;CAClB,wBAAwB;CACxB,gBAAgB;CAChB,mBAAmB,CACf,SACA,EACI,sBAAsB,MAC1B,CACJ;CACA,+BAA+B;CAC/B,2BAA2B,CACvB,SACA,EACI,wBAAwB,KAC5B,CACJ;CACA,gBAAgB,CACZ,SACA;EACI,eAAe;EAEf,wBAAwB;CAC5B,CACJ;CACA,gCAAgC,CAC5B,SACA,EACI,kBAAkB,MACtB,CACJ;CACA,sBAAsB;CACtB,iBAAiB;AACrB;AAEA,MAAM,0BAA0B;CAC5B,oBAAoB;CACpB,oBAAoB;CACpB,aAAa,CACT,SACA;EACI,gBAAgB;EAChB,OAAO;EACP,4CAA4C;EAC5C,wBAAwB;EACxB,uBAAuB;CAC3B,CACJ;CACA,2BAA2B;CAC3B,uBAAuB;AAC3B;AAEA,MAAM,eAAe;CACjB,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;AACP"}
1
+ {"version":3,"file":"eslint.mjs","names":[],"sources":["../../../../src/presets/common/rules/eslint.ts"],"sourcesContent":["import type { LintRules } from \"#/@types/oxlint\";\n\nconst RULES_ESLINT_NURSERY = {\n \"no-useless-assignment\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_ESLINT_PEDANTIC = {\n eqeqeq: [\n \"error\",\n \"always\",\n ],\n \"no-array-constructor\": \"error\",\n \"no-case-declarations\": \"error\",\n \"no-constructor-return\": \"error\",\n \"no-else-return\": [\n \"error\",\n {\n allowElseIf: false,\n },\n ],\n \"no-fallthrough\": [\n \"error\",\n {\n allowEmptyCase: true,\n },\n ],\n \"no-loop-func\": \"error\",\n \"no-new-wrappers\": \"error\",\n \"no-object-constructor\": \"error\",\n \"no-promise-executor-return\": [\n \"error\",\n {\n allowVoid: false,\n },\n ],\n \"no-redeclare\": [\n \"error\",\n {\n builtinGlobals: true,\n },\n ],\n \"no-useless-return\": \"error\",\n radix: \"error\",\n} as const satisfies LintRules;\n\nconst RULES_ESLINT_PERF = {\n \"no-useless-call\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_ESLINT_RESTRICTION = {\n \"no-div-regex\": \"error\",\n \"no-undefined\": \"error\",\n \"no-use-before-define\": [\n \"error\",\n {\n allowNamedExports: true,\n classes: true,\n enums: true,\n functions: false,\n ignoreTypeReferences: true,\n typedefs: true,\n variables: false,\n },\n ],\n \"no-var\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_ESLINT_STYLE = {\n \"default-case-last\": \"error\",\n \"func-name-matching\": [\n \"error\",\n \"always\",\n ],\n \"grouped-accessor-pairs\": [\n \"error\",\n \"getBeforeSet\",\n {\n enforceForTSTypes: true,\n },\n ],\n \"no-extra-label\": \"error\",\n \"no-implicit-coercion\": \"error\",\n \"no-label-var\": \"error\",\n \"no-multi-assign\": [\n \"error\",\n {\n ignoreNonDeclaration: false,\n },\n ],\n \"no-template-curly-in-string\": \"error\",\n \"no-useless-computed-key\": [\n \"error\",\n {\n enforceForClassMembers: true,\n },\n ],\n \"prefer-const\": [\n \"error\",\n {\n destructuring: \"all\",\n // avoid conflicts with `no-use-before-define`\n ignoreReadBeforeAssign: true,\n },\n ],\n \"prefer-promise-reject-errors\": [\n \"error\",\n {\n allowEmptyReject: false,\n },\n ],\n \"prefer-rest-params\": \"error\",\n \"prefer-spread\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_ESLINT_SUSPICIOUS = {\n \"block-scoped-var\": \"error\",\n \"no-extend-native\": \"error\",\n \"no-implied-eval\": \"error\",\n \"no-unmodified-loop-condition\": \"error\",\n \"no-shadow\": [\n \"error\",\n {\n builtinGlobals: false,\n hoist: \"all\",\n ignoreFunctionTypeParameterNameValueShadow: false,\n ignoreOnInitialization: false,\n ignoreTypeValueShadow: false,\n },\n ],\n \"no-unexpected-multiline\": \"error\",\n \"no-unneeded-ternary\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_ESLINT = {\n ...RULES_ESLINT_NURSERY,\n ...RULES_ESLINT_PEDANTIC,\n ...RULES_ESLINT_PERF,\n ...RULES_ESLINT_RESTRICTION,\n ...RULES_ESLINT_STYLE,\n ...RULES_ESLINT_SUSPICIOUS,\n} as const satisfies LintRules;\n\nexport {\n RULES_ESLINT,\n RULES_ESLINT_NURSERY,\n RULES_ESLINT_PEDANTIC,\n RULES_ESLINT_PERF,\n RULES_ESLINT_RESTRICTION,\n RULES_ESLINT_STYLE,\n RULES_ESLINT_SUSPICIOUS,\n};\n"],"mappings":"AAEA,MAAM,uBAAuB,EACzB,yBAAyB,QAC7B;AAEA,MAAM,wBAAwB;CAC1B,QAAQ,CACJ,SACA,QACJ;CACA,wBAAwB;CACxB,wBAAwB;CACxB,yBAAyB;CACzB,kBAAkB,CACd,SACA,EACI,aAAa,MACjB,CACJ;CACA,kBAAkB,CACd,SACA,EACI,gBAAgB,KACpB,CACJ;CACA,gBAAgB;CAChB,mBAAmB;CACnB,yBAAyB;CACzB,8BAA8B,CAC1B,SACA,EACI,WAAW,MACf,CACJ;CACA,gBAAgB,CACZ,SACA,EACI,gBAAgB,KACpB,CACJ;CACA,qBAAqB;CACrB,OAAO;AACX;AAEA,MAAM,oBAAoB,EACtB,mBAAmB,QACvB;AAEA,MAAM,2BAA2B;CAC7B,gBAAgB;CAChB,gBAAgB;CAChB,wBAAwB,CACpB,SACA;EACI,mBAAmB;EACnB,SAAS;EACT,OAAO;EACP,WAAW;EACX,sBAAsB;EACtB,UAAU;EACV,WAAW;CACf,CACJ;CACA,UAAU;AACd;AAEA,MAAM,qBAAqB;CACvB,qBAAqB;CACrB,sBAAsB,CAClB,SACA,QACJ;CACA,0BAA0B;EACtB;EACA;EACA,EACI,mBAAmB,KACvB;CACJ;CACA,kBAAkB;CAClB,wBAAwB;CACxB,gBAAgB;CAChB,mBAAmB,CACf,SACA,EACI,sBAAsB,MAC1B,CACJ;CACA,+BAA+B;CAC/B,2BAA2B,CACvB,SACA,EACI,wBAAwB,KAC5B,CACJ;CACA,gBAAgB,CACZ,SACA;EACI,eAAe;EAEf,wBAAwB;CAC5B,CACJ;CACA,gCAAgC,CAC5B,SACA,EACI,kBAAkB,MACtB,CACJ;CACA,sBAAsB;CACtB,iBAAiB;AACrB;AAEA,MAAM,0BAA0B;CAC5B,oBAAoB;CACpB,oBAAoB;CACpB,mBAAmB;CACnB,gCAAgC;CAChC,aAAa,CACT,SACA;EACI,gBAAgB;EAChB,OAAO;EACP,4CAA4C;EAC5C,wBAAwB;EACxB,uBAAuB;CAC3B,CACJ;CACA,2BAA2B;CAC3B,uBAAuB;AAC3B;AAEA,MAAM,eAAe;CACjB,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;AACP"}
@@ -24,6 +24,11 @@ declare const RULES_IMPORT_RESTRICTION: {
24
24
  declare const RULES_IMPORT_STYLE: {
25
25
  readonly "import/consistent-type-specifier-style": ["error", "prefer-top-level"];
26
26
  readonly "import/first": "error";
27
+ readonly "import/newline-after-import": ["error", {
28
+ readonly considerComments: true;
29
+ readonly count: 1;
30
+ readonly exactCount: true;
31
+ }];
27
32
  readonly "import/no-duplicates": ["error", {
28
33
  readonly considerQueryString: true;
29
34
  readonly preferInline: false;
@@ -41,6 +46,11 @@ declare const RULES_IMPORT: {
41
46
  readonly "import/no-self-import": "error";
42
47
  readonly "import/consistent-type-specifier-style": ["error", "prefer-top-level"];
43
48
  readonly "import/first": "error";
49
+ readonly "import/newline-after-import": ["error", {
50
+ readonly considerComments: true;
51
+ readonly count: 1;
52
+ readonly exactCount: true;
53
+ }];
44
54
  readonly "import/no-duplicates": ["error", {
45
55
  readonly considerQueryString: true;
46
56
  readonly preferInline: false;
@@ -29,6 +29,11 @@ const RULES_IMPORT_RESTRICTION = {
29
29
  const RULES_IMPORT_STYLE = {
30
30
  "import/consistent-type-specifier-style": ["error", "prefer-top-level"],
31
31
  "import/first": "error",
32
+ "import/newline-after-import": ["error", {
33
+ considerComments: true,
34
+ count: 1,
35
+ exactCount: true
36
+ }],
32
37
  "import/no-duplicates": ["error", {
33
38
  considerQueryString: true,
34
39
  preferInline: false
@@ -1 +1 @@
1
- {"version":3,"file":"import.js","names":[],"sources":["../../../../src/presets/common/rules/import.ts"],"sourcesContent":["import type { LintRules } from \"#/@types/oxlint\";\n\nconst RULES_IMPORT_CORRECTNESS = {\n \"import/default\": \"error\",\n \"import/namespace\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_IMPORT_NURSERY = {\n \"import/export\": \"error\",\n \"import/named\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_IMPORT_RESTRICTION = {\n \"import/extensions\": [\n \"error\",\n \"always\",\n {\n // source\n js: \"never\",\n ts: \"never\",\n mjs: \"never\",\n mts: \"never\",\n cjs: \"never\",\n cts: \"never\",\n jsx: \"never\",\n tsx: \"never\",\n // configurations\n checkTypeImports: true,\n ignorePackages: true,\n },\n ],\n \"import/no-cycle\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_IMPORT_STYLE = {\n \"import/consistent-type-specifier-style\": [\n \"error\",\n \"prefer-top-level\",\n ],\n \"import/first\": \"error\",\n \"import/no-duplicates\": [\n \"error\",\n {\n considerQueryString: true,\n preferInline: false,\n },\n ],\n \"import/no-mutable-exports\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_IMPORT_SUSPICIOUS = {\n \"import/no-empty-named-blocks\": \"error\",\n \"import/no-named-as-default\": \"error\",\n \"import/no-self-import\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_IMPORT = {\n ...RULES_IMPORT_CORRECTNESS,\n ...RULES_IMPORT_NURSERY,\n ...RULES_IMPORT_RESTRICTION,\n ...RULES_IMPORT_STYLE,\n ...RULES_IMPORT_SUSPICIOUS,\n} as const satisfies LintRules;\n\nexport {\n RULES_IMPORT,\n RULES_IMPORT_CORRECTNESS,\n RULES_IMPORT_NURSERY,\n RULES_IMPORT_RESTRICTION,\n RULES_IMPORT_STYLE,\n RULES_IMPORT_SUSPICIOUS,\n};\n"],"mappings":";AAEA,MAAM,2BAA2B;CAC7B,kBAAkB;CAClB,oBAAoB;AACxB;AAEA,MAAM,uBAAuB;CACzB,iBAAiB;CACjB,gBAAgB;AACpB;AAEA,MAAM,2BAA2B;CAC7B,qBAAqB;EACjB;EACA;EACA;GAEI,IAAI;GACJ,IAAI;GACJ,KAAK;GACL,KAAK;GACL,KAAK;GACL,KAAK;GACL,KAAK;GACL,KAAK;GAEL,kBAAkB;GAClB,gBAAgB;EACpB;CACJ;CACA,mBAAmB;AACvB;AAEA,MAAM,qBAAqB;CACvB,0CAA0C,CACtC,SACA,kBACJ;CACA,gBAAgB;CAChB,wBAAwB,CACpB,SACA;EACI,qBAAqB;EACrB,cAAc;CAClB,CACJ;CACA,6BAA6B;AACjC;AAEA,MAAM,0BAA0B;CAC5B,gCAAgC;CAChC,8BAA8B;CAC9B,yBAAyB;AAC7B;AAEA,MAAM,eAAe;CACjB,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;AACP"}
1
+ {"version":3,"file":"import.js","names":[],"sources":["../../../../src/presets/common/rules/import.ts"],"sourcesContent":["import type { LintRules } from \"#/@types/oxlint\";\n\nconst RULES_IMPORT_CORRECTNESS = {\n \"import/default\": \"error\",\n \"import/namespace\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_IMPORT_NURSERY = {\n \"import/export\": \"error\",\n \"import/named\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_IMPORT_RESTRICTION = {\n \"import/extensions\": [\n \"error\",\n \"always\",\n {\n // source\n js: \"never\",\n ts: \"never\",\n mjs: \"never\",\n mts: \"never\",\n cjs: \"never\",\n cts: \"never\",\n jsx: \"never\",\n tsx: \"never\",\n // configurations\n checkTypeImports: true,\n ignorePackages: true,\n },\n ],\n \"import/no-cycle\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_IMPORT_STYLE = {\n \"import/consistent-type-specifier-style\": [\n \"error\",\n \"prefer-top-level\",\n ],\n \"import/first\": \"error\",\n \"import/newline-after-import\": [\n \"error\",\n {\n considerComments: true,\n count: 1,\n exactCount: true,\n },\n ],\n \"import/no-duplicates\": [\n \"error\",\n {\n considerQueryString: true,\n preferInline: false,\n },\n ],\n \"import/no-mutable-exports\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_IMPORT_SUSPICIOUS = {\n \"import/no-empty-named-blocks\": \"error\",\n \"import/no-named-as-default\": \"error\",\n \"import/no-self-import\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_IMPORT = {\n ...RULES_IMPORT_CORRECTNESS,\n ...RULES_IMPORT_NURSERY,\n ...RULES_IMPORT_RESTRICTION,\n ...RULES_IMPORT_STYLE,\n ...RULES_IMPORT_SUSPICIOUS,\n} as const satisfies LintRules;\n\nexport {\n RULES_IMPORT,\n RULES_IMPORT_CORRECTNESS,\n RULES_IMPORT_NURSERY,\n RULES_IMPORT_RESTRICTION,\n RULES_IMPORT_STYLE,\n RULES_IMPORT_SUSPICIOUS,\n};\n"],"mappings":";AAEA,MAAM,2BAA2B;CAC7B,kBAAkB;CAClB,oBAAoB;AACxB;AAEA,MAAM,uBAAuB;CACzB,iBAAiB;CACjB,gBAAgB;AACpB;AAEA,MAAM,2BAA2B;CAC7B,qBAAqB;EACjB;EACA;EACA;GAEI,IAAI;GACJ,IAAI;GACJ,KAAK;GACL,KAAK;GACL,KAAK;GACL,KAAK;GACL,KAAK;GACL,KAAK;GAEL,kBAAkB;GAClB,gBAAgB;EACpB;CACJ;CACA,mBAAmB;AACvB;AAEA,MAAM,qBAAqB;CACvB,0CAA0C,CACtC,SACA,kBACJ;CACA,gBAAgB;CAChB,+BAA+B,CAC3B,SACA;EACI,kBAAkB;EAClB,OAAO;EACP,YAAY;CAChB,CACJ;CACA,wBAAwB,CACpB,SACA;EACI,qBAAqB;EACrB,cAAc;CAClB,CACJ;CACA,6BAA6B;AACjC;AAEA,MAAM,0BAA0B;CAC5B,gCAAgC;CAChC,8BAA8B;CAC9B,yBAAyB;AAC7B;AAEA,MAAM,eAAe;CACjB,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;AACP"}
@@ -28,6 +28,11 @@ const RULES_IMPORT_RESTRICTION = {
28
28
  const RULES_IMPORT_STYLE = {
29
29
  "import/consistent-type-specifier-style": ["error", "prefer-top-level"],
30
30
  "import/first": "error",
31
+ "import/newline-after-import": ["error", {
32
+ considerComments: true,
33
+ count: 1,
34
+ exactCount: true
35
+ }],
31
36
  "import/no-duplicates": ["error", {
32
37
  considerQueryString: true,
33
38
  preferInline: false
@@ -1 +1 @@
1
- {"version":3,"file":"import.mjs","names":[],"sources":["../../../../src/presets/common/rules/import.ts"],"sourcesContent":["import type { LintRules } from \"#/@types/oxlint\";\n\nconst RULES_IMPORT_CORRECTNESS = {\n \"import/default\": \"error\",\n \"import/namespace\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_IMPORT_NURSERY = {\n \"import/export\": \"error\",\n \"import/named\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_IMPORT_RESTRICTION = {\n \"import/extensions\": [\n \"error\",\n \"always\",\n {\n // source\n js: \"never\",\n ts: \"never\",\n mjs: \"never\",\n mts: \"never\",\n cjs: \"never\",\n cts: \"never\",\n jsx: \"never\",\n tsx: \"never\",\n // configurations\n checkTypeImports: true,\n ignorePackages: true,\n },\n ],\n \"import/no-cycle\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_IMPORT_STYLE = {\n \"import/consistent-type-specifier-style\": [\n \"error\",\n \"prefer-top-level\",\n ],\n \"import/first\": \"error\",\n \"import/no-duplicates\": [\n \"error\",\n {\n considerQueryString: true,\n preferInline: false,\n },\n ],\n \"import/no-mutable-exports\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_IMPORT_SUSPICIOUS = {\n \"import/no-empty-named-blocks\": \"error\",\n \"import/no-named-as-default\": \"error\",\n \"import/no-self-import\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_IMPORT = {\n ...RULES_IMPORT_CORRECTNESS,\n ...RULES_IMPORT_NURSERY,\n ...RULES_IMPORT_RESTRICTION,\n ...RULES_IMPORT_STYLE,\n ...RULES_IMPORT_SUSPICIOUS,\n} as const satisfies LintRules;\n\nexport {\n RULES_IMPORT,\n RULES_IMPORT_CORRECTNESS,\n RULES_IMPORT_NURSERY,\n RULES_IMPORT_RESTRICTION,\n RULES_IMPORT_STYLE,\n RULES_IMPORT_SUSPICIOUS,\n};\n"],"mappings":"AAEA,MAAM,2BAA2B;CAC7B,kBAAkB;CAClB,oBAAoB;AACxB;AAEA,MAAM,uBAAuB;CACzB,iBAAiB;CACjB,gBAAgB;AACpB;AAEA,MAAM,2BAA2B;CAC7B,qBAAqB;EACjB;EACA;EACA;GAEI,IAAI;GACJ,IAAI;GACJ,KAAK;GACL,KAAK;GACL,KAAK;GACL,KAAK;GACL,KAAK;GACL,KAAK;GAEL,kBAAkB;GAClB,gBAAgB;EACpB;CACJ;CACA,mBAAmB;AACvB;AAEA,MAAM,qBAAqB;CACvB,0CAA0C,CACtC,SACA,kBACJ;CACA,gBAAgB;CAChB,wBAAwB,CACpB,SACA;EACI,qBAAqB;EACrB,cAAc;CAClB,CACJ;CACA,6BAA6B;AACjC;AAEA,MAAM,0BAA0B;CAC5B,gCAAgC;CAChC,8BAA8B;CAC9B,yBAAyB;AAC7B;AAEA,MAAM,eAAe;CACjB,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;AACP"}
1
+ {"version":3,"file":"import.mjs","names":[],"sources":["../../../../src/presets/common/rules/import.ts"],"sourcesContent":["import type { LintRules } from \"#/@types/oxlint\";\n\nconst RULES_IMPORT_CORRECTNESS = {\n \"import/default\": \"error\",\n \"import/namespace\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_IMPORT_NURSERY = {\n \"import/export\": \"error\",\n \"import/named\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_IMPORT_RESTRICTION = {\n \"import/extensions\": [\n \"error\",\n \"always\",\n {\n // source\n js: \"never\",\n ts: \"never\",\n mjs: \"never\",\n mts: \"never\",\n cjs: \"never\",\n cts: \"never\",\n jsx: \"never\",\n tsx: \"never\",\n // configurations\n checkTypeImports: true,\n ignorePackages: true,\n },\n ],\n \"import/no-cycle\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_IMPORT_STYLE = {\n \"import/consistent-type-specifier-style\": [\n \"error\",\n \"prefer-top-level\",\n ],\n \"import/first\": \"error\",\n \"import/newline-after-import\": [\n \"error\",\n {\n considerComments: true,\n count: 1,\n exactCount: true,\n },\n ],\n \"import/no-duplicates\": [\n \"error\",\n {\n considerQueryString: true,\n preferInline: false,\n },\n ],\n \"import/no-mutable-exports\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_IMPORT_SUSPICIOUS = {\n \"import/no-empty-named-blocks\": \"error\",\n \"import/no-named-as-default\": \"error\",\n \"import/no-self-import\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_IMPORT = {\n ...RULES_IMPORT_CORRECTNESS,\n ...RULES_IMPORT_NURSERY,\n ...RULES_IMPORT_RESTRICTION,\n ...RULES_IMPORT_STYLE,\n ...RULES_IMPORT_SUSPICIOUS,\n} as const satisfies LintRules;\n\nexport {\n RULES_IMPORT,\n RULES_IMPORT_CORRECTNESS,\n RULES_IMPORT_NURSERY,\n RULES_IMPORT_RESTRICTION,\n RULES_IMPORT_STYLE,\n RULES_IMPORT_SUSPICIOUS,\n};\n"],"mappings":"AAEA,MAAM,2BAA2B;CAC7B,kBAAkB;CAClB,oBAAoB;AACxB;AAEA,MAAM,uBAAuB;CACzB,iBAAiB;CACjB,gBAAgB;AACpB;AAEA,MAAM,2BAA2B;CAC7B,qBAAqB;EACjB;EACA;EACA;GAEI,IAAI;GACJ,IAAI;GACJ,KAAK;GACL,KAAK;GACL,KAAK;GACL,KAAK;GACL,KAAK;GACL,KAAK;GAEL,kBAAkB;GAClB,gBAAgB;EACpB;CACJ;CACA,mBAAmB;AACvB;AAEA,MAAM,qBAAqB;CACvB,0CAA0C,CACtC,SACA,kBACJ;CACA,gBAAgB;CAChB,+BAA+B,CAC3B,SACA;EACI,kBAAkB;EAClB,OAAO;EACP,YAAY;CAChB,CACJ;CACA,wBAAwB,CACpB,SACA;EACI,qBAAqB;EACrB,cAAc;CAClB,CACJ;CACA,6BAA6B;AACjC;AAEA,MAAM,0BAA0B;CAC5B,gCAAgC;CAChC,8BAA8B;CAC9B,yBAAyB;AAC7B;AAEA,MAAM,eAAe;CACjB,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;CACH,GAAG;AACP"}
@@ -4,6 +4,11 @@ declare const RULES_OXC_NURSERY: {
4
4
  declare const RULES_OXC_RESTRICTION: {
5
5
  readonly "oxc/no-const-enum": "error";
6
6
  };
7
+ declare const RULES_OXC_SUSPICIOUS: {
8
+ readonly "oxc/approx-constant": "error";
9
+ readonly "oxc/misrefactored-assign-op": "error";
10
+ readonly "oxc/no-this-in-exported-function": "error";
11
+ };
7
12
  declare const RULES_OXC: {
8
13
  readonly "oxc/approx-constant": "error";
9
14
  readonly "oxc/misrefactored-assign-op": "error";
@@ -11,5 +16,5 @@ declare const RULES_OXC: {
11
16
  readonly "oxc/no-const-enum": "error";
12
17
  readonly "oxc/branches-sharing-code": "error";
13
18
  };
14
- export { RULES_OXC, RULES_OXC_NURSERY, RULES_OXC_RESTRICTION };
19
+ export { RULES_OXC, RULES_OXC_NURSERY, RULES_OXC_RESTRICTION, RULES_OXC_SUSPICIOUS };
15
20
  //# sourceMappingURL=oxc.d.ts.map
@@ -15,4 +15,5 @@ const RULES_OXC = {
15
15
  exports.RULES_OXC = RULES_OXC;
16
16
  exports.RULES_OXC_NURSERY = RULES_OXC_NURSERY;
17
17
  exports.RULES_OXC_RESTRICTION = RULES_OXC_RESTRICTION;
18
+ exports.RULES_OXC_SUSPICIOUS = RULES_OXC_SUSPICIOUS;
18
19
  //# sourceMappingURL=oxc.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"oxc.js","names":[],"sources":["../../../../src/presets/common/rules/oxc.ts"],"sourcesContent":["import type { LintRules } from \"#/@types/oxlint\";\n\nconst RULES_OXC_NURSERY = {\n \"oxc/branches-sharing-code\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_OXC_RESTRICTION = {\n \"oxc/no-const-enum\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_OXC_SUSPICIOUS = {\n \"oxc/approx-constant\": \"error\",\n \"oxc/misrefactored-assign-op\": \"error\",\n \"oxc/no-this-in-exported-function\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_OXC = {\n ...RULES_OXC_NURSERY,\n ...RULES_OXC_RESTRICTION,\n ...RULES_OXC_SUSPICIOUS,\n} as const satisfies LintRules;\n\nexport { RULES_OXC, RULES_OXC_NURSERY, RULES_OXC_RESTRICTION };\n"],"mappings":";AAEA,MAAM,oBAAoB,EACtB,6BAA6B,QACjC;AAEA,MAAM,wBAAwB,EAC1B,qBAAqB,QACzB;AAEA,MAAM,uBAAuB;CACzB,uBAAuB;CACvB,+BAA+B;CAC/B,oCAAoC;AACxC;AAEA,MAAM,YAAY;CACd,GAAG;CACH,GAAG;CACH,GAAG;AACP"}
1
+ {"version":3,"file":"oxc.js","names":[],"sources":["../../../../src/presets/common/rules/oxc.ts"],"sourcesContent":["import type { LintRules } from \"#/@types/oxlint\";\n\nconst RULES_OXC_NURSERY = {\n \"oxc/branches-sharing-code\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_OXC_RESTRICTION = {\n \"oxc/no-const-enum\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_OXC_SUSPICIOUS = {\n \"oxc/approx-constant\": \"error\",\n \"oxc/misrefactored-assign-op\": \"error\",\n \"oxc/no-this-in-exported-function\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_OXC = {\n ...RULES_OXC_NURSERY,\n ...RULES_OXC_RESTRICTION,\n ...RULES_OXC_SUSPICIOUS,\n} as const satisfies LintRules;\n\nexport {\n RULES_OXC,\n RULES_OXC_NURSERY,\n RULES_OXC_RESTRICTION,\n RULES_OXC_SUSPICIOUS,\n};\n"],"mappings":";AAEA,MAAM,oBAAoB,EACtB,6BAA6B,QACjC;AAEA,MAAM,wBAAwB,EAC1B,qBAAqB,QACzB;AAEA,MAAM,uBAAuB;CACzB,uBAAuB;CACvB,+BAA+B;CAC/B,oCAAoC;AACxC;AAEA,MAAM,YAAY;CACd,GAAG;CACH,GAAG;CACH,GAAG;AACP"}
@@ -11,5 +11,5 @@ const RULES_OXC = {
11
11
  ...RULES_OXC_SUSPICIOUS
12
12
  };
13
13
 
14
- export { RULES_OXC, RULES_OXC_NURSERY, RULES_OXC_RESTRICTION };
14
+ export { RULES_OXC, RULES_OXC_NURSERY, RULES_OXC_RESTRICTION, RULES_OXC_SUSPICIOUS };
15
15
  //# sourceMappingURL=oxc.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"oxc.mjs","names":[],"sources":["../../../../src/presets/common/rules/oxc.ts"],"sourcesContent":["import type { LintRules } from \"#/@types/oxlint\";\n\nconst RULES_OXC_NURSERY = {\n \"oxc/branches-sharing-code\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_OXC_RESTRICTION = {\n \"oxc/no-const-enum\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_OXC_SUSPICIOUS = {\n \"oxc/approx-constant\": \"error\",\n \"oxc/misrefactored-assign-op\": \"error\",\n \"oxc/no-this-in-exported-function\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_OXC = {\n ...RULES_OXC_NURSERY,\n ...RULES_OXC_RESTRICTION,\n ...RULES_OXC_SUSPICIOUS,\n} as const satisfies LintRules;\n\nexport { RULES_OXC, RULES_OXC_NURSERY, RULES_OXC_RESTRICTION };\n"],"mappings":"AAEA,MAAM,oBAAoB,EACtB,6BAA6B,QACjC;AAEA,MAAM,wBAAwB,EAC1B,qBAAqB,QACzB;AAEA,MAAM,uBAAuB;CACzB,uBAAuB;CACvB,+BAA+B;CAC/B,oCAAoC;AACxC;AAEA,MAAM,YAAY;CACd,GAAG;CACH,GAAG;CACH,GAAG;AACP"}
1
+ {"version":3,"file":"oxc.mjs","names":[],"sources":["../../../../src/presets/common/rules/oxc.ts"],"sourcesContent":["import type { LintRules } from \"#/@types/oxlint\";\n\nconst RULES_OXC_NURSERY = {\n \"oxc/branches-sharing-code\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_OXC_RESTRICTION = {\n \"oxc/no-const-enum\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_OXC_SUSPICIOUS = {\n \"oxc/approx-constant\": \"error\",\n \"oxc/misrefactored-assign-op\": \"error\",\n \"oxc/no-this-in-exported-function\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_OXC = {\n ...RULES_OXC_NURSERY,\n ...RULES_OXC_RESTRICTION,\n ...RULES_OXC_SUSPICIOUS,\n} as const satisfies LintRules;\n\nexport {\n RULES_OXC,\n RULES_OXC_NURSERY,\n RULES_OXC_RESTRICTION,\n RULES_OXC_SUSPICIOUS,\n};\n"],"mappings":"AAEA,MAAM,oBAAoB,EACtB,6BAA6B,QACjC;AAEA,MAAM,wBAAwB,EAC1B,qBAAqB,QACzB;AAEA,MAAM,uBAAuB;CACzB,uBAAuB;CACvB,+BAA+B;CAC/B,oCAAoC;AACxC;AAEA,MAAM,YAAY;CACd,GAAG;CACH,GAAG;CACH,GAAG;AACP"}
@@ -1,19 +1,8 @@
1
1
  declare const RULES_TYPESCRIPT_NURSERY: {
2
- readonly "typescript/consistent-return": ["error", {
3
- readonly treatUndefinedAsUnspecified: false;
4
- }];
5
- readonly "typescript/consistent-type-exports": ["error", {
6
- readonly fixMixedExportsWithInlineTypeSpecifier: false;
7
- }];
8
- readonly "typescript/dot-notation": ["error", {
9
- readonly allowIndexSignaturePropertyAccess: false;
10
- readonly allowKeywords: true;
11
- readonly allowPrivateClassPropertyAccess: false;
12
- readonly allowProtectedClassPropertyAccess: false;
2
+ readonly "typescript/no-unnecessary-condition": ["error", {
3
+ readonly allowConstantLoopConditions: true;
4
+ readonly checkTypePredicates: true;
13
5
  }];
14
- readonly "typescript/no-unnecessary-type-conversion": "error";
15
- readonly "typescript/no-unnecessary-type-parameters": "error";
16
- readonly "typescript/no-useless-default-assignment": "error";
17
6
  readonly "typescript/prefer-optional-chain": ["error", {
18
7
  readonly allowPotentiallyUnsafeFixesThatModifyTheReturnTypeIKnowWhatImDoing: false;
19
8
  readonly checkAny: true;
@@ -24,13 +13,6 @@ declare const RULES_TYPESCRIPT_NURSERY: {
24
13
  readonly checkUnknown: true;
25
14
  readonly requireNullish: false;
26
15
  }];
27
- readonly "typescript/prefer-readonly": ["error", {
28
- readonly onlyInlineLambdas: false;
29
- }];
30
- readonly "typescript/prefer-regexp-exec": "error";
31
- readonly "typescript/strict-void-return": ["error", {
32
- readonly allowReturnAny: false;
33
- }];
34
16
  };
35
17
  declare const RULES_TYPESCRIPT_PEDANTIC: {
36
18
  readonly "typescript/no-misused-promises": ["error", {
@@ -92,6 +74,9 @@ declare const RULES_TYPESCRIPT_PEDANTIC: {
92
74
  readonly allowNumber: true;
93
75
  readonly allowString: true;
94
76
  }];
77
+ readonly "typescript/strict-void-return": ["error", {
78
+ readonly allowReturnAny: false;
79
+ }];
95
80
  readonly "typescript/switch-exhaustiveness-check": ["error", {
96
81
  readonly allowDefaultCaseForExhaustiveSwitch: true;
97
82
  readonly considerDefaultExhaustiveForUnions: true;
@@ -99,6 +84,9 @@ declare const RULES_TYPESCRIPT_PEDANTIC: {
99
84
  }];
100
85
  };
101
86
  declare const RULES_TYPESCRIPT_RESTRICTION: {
87
+ readonly "typescript/explicit-member-accessibility": ["error", {
88
+ readonly accessibility: "explicit";
89
+ }];
102
90
  readonly "typescript/no-empty-object-type": ["error", {
103
91
  readonly allowInterfaces: "with-single-extends";
104
92
  readonly allowObjectTypes: "never";
@@ -124,11 +112,21 @@ declare const RULES_TYPESCRIPT_STYLE: {
124
112
  readonly assertionStyle: "as";
125
113
  }];
126
114
  readonly "typescript/consistent-type-definitions": ["error", "type"];
115
+ readonly "typescript/consistent-type-exports": ["error", {
116
+ readonly fixMixedExportsWithInlineTypeSpecifier: false;
117
+ }];
127
118
  readonly "typescript/consistent-type-imports": ["error", {
128
- readonly disallowTypeImports: true;
119
+ readonly disallowTypeAnnotations: true;
129
120
  readonly fixStyle: "separate-type-imports";
130
121
  readonly prefer: "type-imports";
131
122
  }];
123
+ readonly "typescript/dot-notation": ["error", {
124
+ readonly allowIndexSignaturePropertyAccess: false;
125
+ readonly allowKeywords: true;
126
+ readonly allowPrivateClassPropertyAccess: false;
127
+ readonly allowProtectedClassPropertyAccess: false;
128
+ }];
129
+ readonly "typescript/method-signature-style": ["error", "property"];
132
130
  readonly "typescript/no-empty-interface": ["error", {
133
131
  readonly allowSingleExtends: true;
134
132
  }];
@@ -136,29 +134,53 @@ declare const RULES_TYPESCRIPT_STYLE: {
136
134
  readonly prefer: "class-property";
137
135
  }];
138
136
  readonly "typescript/prefer-function-type": "error";
139
- readonly "typescript/prefer-reduce-type-parametertypescript/prefer-reduce-type-parameter": "error";
137
+ readonly "typescript/prefer-reduce-type-parameter": "error";
138
+ readonly "typescript/prefer-readonly": ["error", {
139
+ readonly onlyInlineLambdas: false;
140
+ }];
141
+ readonly "typescript/prefer-regexp-exec": "error";
140
142
  readonly "typescript/prefer-return-this-type": "error";
141
143
  };
142
144
  declare const RULES_TYPESCRIPT_SUSPICIOUS: {
145
+ readonly "typescript/consistent-return": ["error", {
146
+ readonly treatUndefinedAsUnspecified: false;
147
+ }];
143
148
  readonly "typescript/no-confusing-non-null-assertion": "error";
144
149
  readonly "typescript/no-unnecessary-template-expression": "error";
145
150
  readonly "typescript/no-unnecessary-type-constraint": "error";
151
+ readonly "typescript/no-unnecessary-type-conversion": "error";
152
+ readonly "typescript/no-unnecessary-type-parameters": "error";
146
153
  readonly "typescript/no-unsafe-enum-comparison": "error";
147
154
  };
148
155
  declare const RULES_TYPESCRIPT: {
156
+ readonly "typescript/consistent-return": ["error", {
157
+ readonly treatUndefinedAsUnspecified: false;
158
+ }];
149
159
  readonly "typescript/no-confusing-non-null-assertion": "error";
150
160
  readonly "typescript/no-unnecessary-template-expression": "error";
151
161
  readonly "typescript/no-unnecessary-type-constraint": "error";
162
+ readonly "typescript/no-unnecessary-type-conversion": "error";
163
+ readonly "typescript/no-unnecessary-type-parameters": "error";
152
164
  readonly "typescript/no-unsafe-enum-comparison": "error";
153
165
  readonly "typescript/consistent-type-assertions": ["error", {
154
166
  readonly assertionStyle: "as";
155
167
  }];
156
168
  readonly "typescript/consistent-type-definitions": ["error", "type"];
169
+ readonly "typescript/consistent-type-exports": ["error", {
170
+ readonly fixMixedExportsWithInlineTypeSpecifier: false;
171
+ }];
157
172
  readonly "typescript/consistent-type-imports": ["error", {
158
- readonly disallowTypeImports: true;
173
+ readonly disallowTypeAnnotations: true;
159
174
  readonly fixStyle: "separate-type-imports";
160
175
  readonly prefer: "type-imports";
161
176
  }];
177
+ readonly "typescript/dot-notation": ["error", {
178
+ readonly allowIndexSignaturePropertyAccess: false;
179
+ readonly allowKeywords: true;
180
+ readonly allowPrivateClassPropertyAccess: false;
181
+ readonly allowProtectedClassPropertyAccess: false;
182
+ }];
183
+ readonly "typescript/method-signature-style": ["error", "property"];
162
184
  readonly "typescript/no-empty-interface": ["error", {
163
185
  readonly allowSingleExtends: true;
164
186
  }];
@@ -166,8 +188,15 @@ declare const RULES_TYPESCRIPT: {
166
188
  readonly prefer: "class-property";
167
189
  }];
168
190
  readonly "typescript/prefer-function-type": "error";
169
- readonly "typescript/prefer-reduce-type-parametertypescript/prefer-reduce-type-parameter": "error";
191
+ readonly "typescript/prefer-reduce-type-parameter": "error";
192
+ readonly "typescript/prefer-readonly": ["error", {
193
+ readonly onlyInlineLambdas: false;
194
+ }];
195
+ readonly "typescript/prefer-regexp-exec": "error";
170
196
  readonly "typescript/prefer-return-this-type": "error";
197
+ readonly "typescript/explicit-member-accessibility": ["error", {
198
+ readonly accessibility: "explicit";
199
+ }];
171
200
  readonly "typescript/no-empty-object-type": ["error", {
172
201
  readonly allowInterfaces: "with-single-extends";
173
202
  readonly allowObjectTypes: "never";
@@ -246,26 +275,18 @@ declare const RULES_TYPESCRIPT: {
246
275
  readonly allowNumber: true;
247
276
  readonly allowString: true;
248
277
  }];
278
+ readonly "typescript/strict-void-return": ["error", {
279
+ readonly allowReturnAny: false;
280
+ }];
249
281
  readonly "typescript/switch-exhaustiveness-check": ["error", {
250
282
  readonly allowDefaultCaseForExhaustiveSwitch: true;
251
283
  readonly considerDefaultExhaustiveForUnions: true;
252
284
  readonly requireDefaultForNonUnion: false;
253
285
  }];
254
- readonly "typescript/consistent-return": ["error", {
255
- readonly treatUndefinedAsUnspecified: false;
256
- }];
257
- readonly "typescript/consistent-type-exports": ["error", {
258
- readonly fixMixedExportsWithInlineTypeSpecifier: false;
286
+ readonly "typescript/no-unnecessary-condition": ["error", {
287
+ readonly allowConstantLoopConditions: true;
288
+ readonly checkTypePredicates: true;
259
289
  }];
260
- readonly "typescript/dot-notation": ["error", {
261
- readonly allowIndexSignaturePropertyAccess: false;
262
- readonly allowKeywords: true;
263
- readonly allowPrivateClassPropertyAccess: false;
264
- readonly allowProtectedClassPropertyAccess: false;
265
- }];
266
- readonly "typescript/no-unnecessary-type-conversion": "error";
267
- readonly "typescript/no-unnecessary-type-parameters": "error";
268
- readonly "typescript/no-useless-default-assignment": "error";
269
290
  readonly "typescript/prefer-optional-chain": ["error", {
270
291
  readonly allowPotentiallyUnsafeFixesThatModifyTheReturnTypeIKnowWhatImDoing: false;
271
292
  readonly checkAny: true;
@@ -276,13 +297,6 @@ declare const RULES_TYPESCRIPT: {
276
297
  readonly checkUnknown: true;
277
298
  readonly requireNullish: false;
278
299
  }];
279
- readonly "typescript/prefer-readonly": ["error", {
280
- readonly onlyInlineLambdas: false;
281
- }];
282
- readonly "typescript/prefer-regexp-exec": "error";
283
- readonly "typescript/strict-void-return": ["error", {
284
- readonly allowReturnAny: false;
285
- }];
286
300
  };
287
301
  export { RULES_TYPESCRIPT, RULES_TYPESCRIPT_NURSERY, RULES_TYPESCRIPT_PEDANTIC, RULES_TYPESCRIPT_RESTRICTION, RULES_TYPESCRIPT_STYLE, RULES_TYPESCRIPT_SUSPICIOUS };
288
302
  //# sourceMappingURL=typescript.d.ts.map
@@ -1,16 +1,9 @@
1
1
 
2
2
  const RULES_TYPESCRIPT_NURSERY = {
3
- "typescript/consistent-return": ["error", { treatUndefinedAsUnspecified: false }],
4
- "typescript/consistent-type-exports": ["error", { fixMixedExportsWithInlineTypeSpecifier: false }],
5
- "typescript/dot-notation": ["error", {
6
- allowIndexSignaturePropertyAccess: false,
7
- allowKeywords: true,
8
- allowPrivateClassPropertyAccess: false,
9
- allowProtectedClassPropertyAccess: false
3
+ "typescript/no-unnecessary-condition": ["error", {
4
+ allowConstantLoopConditions: true,
5
+ checkTypePredicates: true
10
6
  }],
11
- "typescript/no-unnecessary-type-conversion": "error",
12
- "typescript/no-unnecessary-type-parameters": "error",
13
- "typescript/no-useless-default-assignment": "error",
14
7
  "typescript/prefer-optional-chain": ["error", {
15
8
  allowPotentiallyUnsafeFixesThatModifyTheReturnTypeIKnowWhatImDoing: false,
16
9
  checkAny: true,
@@ -20,10 +13,7 @@ const RULES_TYPESCRIPT_NURSERY = {
20
13
  checkString: true,
21
14
  checkUnknown: true,
22
15
  requireNullish: false
23
- }],
24
- "typescript/prefer-readonly": ["error", { onlyInlineLambdas: false }],
25
- "typescript/prefer-regexp-exec": "error",
26
- "typescript/strict-void-return": ["error", { allowReturnAny: false }]
16
+ }]
27
17
  };
28
18
  const RULES_TYPESCRIPT_PEDANTIC = {
29
19
  "typescript/no-misused-promises": ["error", {
@@ -85,6 +75,7 @@ const RULES_TYPESCRIPT_PEDANTIC = {
85
75
  allowNumber: true,
86
76
  allowString: true
87
77
  }],
78
+ "typescript/strict-void-return": ["error", { allowReturnAny: false }],
88
79
  "typescript/switch-exhaustiveness-check": ["error", {
89
80
  allowDefaultCaseForExhaustiveSwitch: true,
90
81
  considerDefaultExhaustiveForUnions: true,
@@ -92,6 +83,7 @@ const RULES_TYPESCRIPT_PEDANTIC = {
92
83
  }]
93
84
  };
94
85
  const RULES_TYPESCRIPT_RESTRICTION = {
86
+ "typescript/explicit-member-accessibility": ["error", { accessibility: "explicit" }],
95
87
  "typescript/no-empty-object-type": ["error", {
96
88
  allowInterfaces: "with-single-extends",
97
89
  allowObjectTypes: "never"
@@ -115,21 +107,34 @@ const RULES_TYPESCRIPT_RESTRICTION = {
115
107
  const RULES_TYPESCRIPT_STYLE = {
116
108
  "typescript/consistent-type-assertions": ["error", { assertionStyle: "as" }],
117
109
  "typescript/consistent-type-definitions": ["error", "type"],
110
+ "typescript/consistent-type-exports": ["error", { fixMixedExportsWithInlineTypeSpecifier: false }],
118
111
  "typescript/consistent-type-imports": ["error", {
119
- disallowTypeImports: true,
112
+ disallowTypeAnnotations: true,
120
113
  fixStyle: "separate-type-imports",
121
114
  prefer: "type-imports"
122
115
  }],
116
+ "typescript/dot-notation": ["error", {
117
+ allowIndexSignaturePropertyAccess: false,
118
+ allowKeywords: true,
119
+ allowPrivateClassPropertyAccess: false,
120
+ allowProtectedClassPropertyAccess: false
121
+ }],
122
+ "typescript/method-signature-style": ["error", "property"],
123
123
  "typescript/no-empty-interface": ["error", { allowSingleExtends: true }],
124
124
  "typescript/parameter-properties": ["error", { prefer: "class-property" }],
125
125
  "typescript/prefer-function-type": "error",
126
- "typescript/prefer-reduce-type-parametertypescript/prefer-reduce-type-parameter": "error",
126
+ "typescript/prefer-reduce-type-parameter": "error",
127
+ "typescript/prefer-readonly": ["error", { onlyInlineLambdas: false }],
128
+ "typescript/prefer-regexp-exec": "error",
127
129
  "typescript/prefer-return-this-type": "error"
128
130
  };
129
131
  const RULES_TYPESCRIPT_SUSPICIOUS = {
132
+ "typescript/consistent-return": ["error", { treatUndefinedAsUnspecified: false }],
130
133
  "typescript/no-confusing-non-null-assertion": "error",
131
134
  "typescript/no-unnecessary-template-expression": "error",
132
135
  "typescript/no-unnecessary-type-constraint": "error",
136
+ "typescript/no-unnecessary-type-conversion": "error",
137
+ "typescript/no-unnecessary-type-parameters": "error",
133
138
  "typescript/no-unsafe-enum-comparison": "error"
134
139
  };
135
140
  const RULES_TYPESCRIPT = {
@@ -1 +1 @@
1
- {"version":3,"file":"typescript.js","names":[],"sources":["../../../../src/presets/common/rules/typescript.ts"],"sourcesContent":["import type { LintRules } from \"#/@types/oxlint\";\n\nconst RULES_TYPESCRIPT_NURSERY = {\n \"typescript/consistent-return\": [\n \"error\",\n {\n treatUndefinedAsUnspecified: false,\n },\n ],\n \"typescript/consistent-type-exports\": [\n \"error\",\n {\n fixMixedExportsWithInlineTypeSpecifier: false,\n },\n ],\n \"typescript/dot-notation\": [\n \"error\",\n {\n allowIndexSignaturePropertyAccess: false,\n allowKeywords: true,\n allowPrivateClassPropertyAccess: false,\n allowProtectedClassPropertyAccess: false,\n },\n ],\n \"typescript/no-unnecessary-type-conversion\": \"error\",\n \"typescript/no-unnecessary-type-parameters\": \"error\",\n \"typescript/no-useless-default-assignment\": \"error\",\n \"typescript/prefer-optional-chain\": [\n \"error\",\n {\n allowPotentiallyUnsafeFixesThatModifyTheReturnTypeIKnowWhatImDoing: false,\n checkAny: true,\n checkBigInt: true,\n checkBoolean: true,\n checkNumber: true,\n checkString: true,\n checkUnknown: true,\n requireNullish: false,\n },\n ],\n \"typescript/prefer-readonly\": [\n \"error\",\n {\n onlyInlineLambdas: false,\n },\n ],\n \"typescript/prefer-regexp-exec\": \"error\",\n \"typescript/strict-void-return\": [\n \"error\",\n {\n allowReturnAny: false,\n },\n ],\n} as const satisfies LintRules;\n\nconst RULES_TYPESCRIPT_PEDANTIC = {\n \"typescript/no-misused-promises\": [\n \"error\",\n {\n checksConditionals: true,\n checksSpreads: true,\n checksVoidReturn: {\n arguments: true,\n attributes: true,\n inheritedMethods: true,\n properties: true,\n returns: true,\n variables: true,\n },\n },\n ],\n \"typescript/no-mixed-enums\": \"error\",\n \"typescript/no-unsafe-argument\": \"error\",\n \"typescript/no-unsafe-assignment\": \"error\",\n \"typescript/no-unsafe-call\": \"error\",\n \"typescript/no-unsafe-function-type\": \"error\",\n \"typescript/no-unsafe-member-access\": \"error\",\n \"typescript/no-unsafe-return\": \"error\",\n \"typescript/only-throw-error\": \"error\",\n \"typescript/prefer-includes\": \"error\",\n \"typescript/prefer-nullish-coalescing\": [\n \"error\",\n {\n ignoreBooleanCoercion: false,\n ignoreConditionalTests: false,\n ignoreIfStatements: false,\n ignoreMixedLogicalExpressions: false,\n ignorePrimitives: {\n bigint: false,\n boolean: false,\n number: false,\n string: false,\n },\n ignoreTernaryTests: false,\n },\n ],\n \"typescript/prefer-promise-reject-errors\": [\n \"error\",\n {\n allowEmptyReject: false,\n allowThrowingAny: false,\n allowThrowingUnknown: false,\n },\n ],\n \"typescript/prefer-ts-expect-error\": \"error\",\n \"typescript/restrict-plus-operands\": [\n \"error\",\n {\n allowAny: true,\n allowBoolean: true,\n allowNullish: true,\n allowNumberAndString: true,\n allowRegExp: true,\n skipCompoundAssignments: false,\n },\n ],\n \"typescript/return-await\": [\n \"error\",\n \"always\",\n ],\n \"typescript/strict-boolean-expressions\": [\n \"error\",\n {\n allowAny: true,\n allowNullableBoolean: false,\n allowNullableEnum: false,\n allowNullableNumber: false,\n allowNullableObject: true,\n allowNullableString: false,\n allowNumber: true,\n allowString: true,\n },\n ],\n \"typescript/switch-exhaustiveness-check\": [\n \"error\",\n {\n allowDefaultCaseForExhaustiveSwitch: true,\n considerDefaultExhaustiveForUnions: true,\n requireDefaultForNonUnion: false,\n },\n ],\n} as const satisfies LintRules;\n\nconst RULES_TYPESCRIPT_RESTRICTION = {\n \"typescript/no-empty-object-type\": [\n \"error\",\n {\n allowInterfaces: \"with-single-extends\",\n allowObjectTypes: \"never\",\n },\n ],\n \"typescript/no-import-type-side-effects\": \"error\",\n \"typescript/no-namespace\": [\n \"error\",\n {\n allowDeclarations: false,\n allowDefinitionFiles: true,\n },\n ],\n \"typescript/no-non-null-asserted-nullish-coalescing\": \"error\",\n \"typescript/no-non-null-assertion\": \"error\",\n \"typescript/promise-function-async\": [\n \"error\",\n {\n allowAny: true,\n checkArrowFunctions: true,\n checkFunctionDeclarations: true,\n checkFunctionExpressions: true,\n checkMethodDeclarations: true,\n },\n ],\n \"typescript/use-unknown-in-catch-callback-variable\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_TYPESCRIPT_STYLE = {\n \"typescript/consistent-type-assertions\": [\n \"error\",\n {\n assertionStyle: \"as\",\n },\n ],\n \"typescript/consistent-type-definitions\": [\n \"error\",\n \"type\",\n ],\n \"typescript/consistent-type-imports\": [\n \"error\",\n {\n disallowTypeImports: true,\n fixStyle: \"separate-type-imports\",\n prefer: \"type-imports\",\n },\n ],\n \"typescript/no-empty-interface\": [\n \"error\",\n {\n allowSingleExtends: true,\n },\n ],\n \"typescript/parameter-properties\": [\n \"error\",\n {\n prefer: \"class-property\",\n },\n ],\n \"typescript/prefer-function-type\": \"error\",\n \"typescript/prefer-reduce-type-parametertypescript/prefer-reduce-type-parameter\":\n \"error\",\n \"typescript/prefer-return-this-type\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_TYPESCRIPT_SUSPICIOUS = {\n \"typescript/no-confusing-non-null-assertion\": \"error\",\n \"typescript/no-unnecessary-template-expression\": \"error\",\n \"typescript/no-unnecessary-type-constraint\": \"error\",\n \"typescript/no-unsafe-enum-comparison\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_TYPESCRIPT = {\n ...RULES_TYPESCRIPT_NURSERY,\n ...RULES_TYPESCRIPT_PEDANTIC,\n ...RULES_TYPESCRIPT_RESTRICTION,\n ...RULES_TYPESCRIPT_STYLE,\n ...RULES_TYPESCRIPT_SUSPICIOUS,\n} as const satisfies LintRules;\n\nexport {\n RULES_TYPESCRIPT,\n RULES_TYPESCRIPT_NURSERY,\n RULES_TYPESCRIPT_PEDANTIC,\n RULES_TYPESCRIPT_RESTRICTION,\n RULES_TYPESCRIPT_STYLE,\n RULES_TYPESCRIPT_SUSPICIOUS,\n};\n"],"mappings":"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"}
1
+ {"version":3,"file":"typescript.js","names":[],"sources":["../../../../src/presets/common/rules/typescript.ts"],"sourcesContent":["import type { LintRules } from \"#/@types/oxlint\";\n\nconst RULES_TYPESCRIPT_NURSERY = {\n \"typescript/no-unnecessary-condition\": [\n \"error\",\n {\n allowConstantLoopConditions: true,\n checkTypePredicates: true,\n },\n ],\n \"typescript/prefer-optional-chain\": [\n \"error\",\n {\n allowPotentiallyUnsafeFixesThatModifyTheReturnTypeIKnowWhatImDoing: false,\n checkAny: true,\n checkBigInt: true,\n checkBoolean: true,\n checkNumber: true,\n checkString: true,\n checkUnknown: true,\n requireNullish: false,\n },\n ],\n} as const satisfies LintRules;\n\nconst RULES_TYPESCRIPT_PEDANTIC = {\n \"typescript/no-misused-promises\": [\n \"error\",\n {\n checksConditionals: true,\n checksSpreads: true,\n checksVoidReturn: {\n arguments: true,\n attributes: true,\n inheritedMethods: true,\n properties: true,\n returns: true,\n variables: true,\n },\n },\n ],\n \"typescript/no-mixed-enums\": \"error\",\n \"typescript/no-unsafe-argument\": \"error\",\n \"typescript/no-unsafe-assignment\": \"error\",\n \"typescript/no-unsafe-call\": \"error\",\n \"typescript/no-unsafe-function-type\": \"error\",\n \"typescript/no-unsafe-member-access\": \"error\",\n \"typescript/no-unsafe-return\": \"error\",\n \"typescript/only-throw-error\": \"error\",\n \"typescript/prefer-includes\": \"error\",\n \"typescript/prefer-nullish-coalescing\": [\n \"error\",\n {\n ignoreBooleanCoercion: false,\n ignoreConditionalTests: false,\n ignoreIfStatements: false,\n ignoreMixedLogicalExpressions: false,\n ignorePrimitives: {\n bigint: false,\n boolean: false,\n number: false,\n string: false,\n },\n ignoreTernaryTests: false,\n },\n ],\n \"typescript/prefer-promise-reject-errors\": [\n \"error\",\n {\n allowEmptyReject: false,\n allowThrowingAny: false,\n allowThrowingUnknown: false,\n },\n ],\n \"typescript/prefer-ts-expect-error\": \"error\",\n \"typescript/restrict-plus-operands\": [\n \"error\",\n {\n allowAny: true,\n allowBoolean: true,\n allowNullish: true,\n allowNumberAndString: true,\n allowRegExp: true,\n skipCompoundAssignments: false,\n },\n ],\n \"typescript/return-await\": [\n \"error\",\n \"always\",\n ],\n \"typescript/strict-boolean-expressions\": [\n \"error\",\n {\n allowAny: true,\n allowNullableBoolean: false,\n allowNullableEnum: false,\n allowNullableNumber: false,\n allowNullableObject: true,\n allowNullableString: false,\n allowNumber: true,\n allowString: true,\n },\n ],\n \"typescript/strict-void-return\": [\n \"error\",\n {\n allowReturnAny: false,\n },\n ],\n \"typescript/switch-exhaustiveness-check\": [\n \"error\",\n {\n allowDefaultCaseForExhaustiveSwitch: true,\n considerDefaultExhaustiveForUnions: true,\n requireDefaultForNonUnion: false,\n },\n ],\n} as const satisfies LintRules;\n\nconst RULES_TYPESCRIPT_RESTRICTION = {\n \"typescript/explicit-member-accessibility\": [\n \"error\",\n {\n accessibility: \"explicit\",\n },\n ],\n \"typescript/no-empty-object-type\": [\n \"error\",\n {\n allowInterfaces: \"with-single-extends\",\n allowObjectTypes: \"never\",\n },\n ],\n \"typescript/no-import-type-side-effects\": \"error\",\n \"typescript/no-namespace\": [\n \"error\",\n {\n allowDeclarations: false,\n allowDefinitionFiles: true,\n },\n ],\n \"typescript/no-non-null-asserted-nullish-coalescing\": \"error\",\n \"typescript/no-non-null-assertion\": \"error\",\n \"typescript/promise-function-async\": [\n \"error\",\n {\n allowAny: true,\n checkArrowFunctions: true,\n checkFunctionDeclarations: true,\n checkFunctionExpressions: true,\n checkMethodDeclarations: true,\n },\n ],\n \"typescript/use-unknown-in-catch-callback-variable\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_TYPESCRIPT_STYLE = {\n \"typescript/consistent-type-assertions\": [\n \"error\",\n {\n assertionStyle: \"as\",\n },\n ],\n \"typescript/consistent-type-definitions\": [\n \"error\",\n \"type\",\n ],\n \"typescript/consistent-type-exports\": [\n \"error\",\n {\n fixMixedExportsWithInlineTypeSpecifier: false,\n },\n ],\n \"typescript/consistent-type-imports\": [\n \"error\",\n {\n disallowTypeAnnotations: true,\n fixStyle: \"separate-type-imports\",\n prefer: \"type-imports\",\n },\n ],\n \"typescript/dot-notation\": [\n \"error\",\n {\n allowIndexSignaturePropertyAccess: false,\n allowKeywords: true,\n allowPrivateClassPropertyAccess: false,\n allowProtectedClassPropertyAccess: false,\n },\n ],\n \"typescript/method-signature-style\": [\n \"error\",\n \"property\",\n ],\n \"typescript/no-empty-interface\": [\n \"error\",\n {\n allowSingleExtends: true,\n },\n ],\n \"typescript/parameter-properties\": [\n \"error\",\n {\n prefer: \"class-property\",\n },\n ],\n \"typescript/prefer-function-type\": \"error\",\n \"typescript/prefer-reduce-type-parameter\": \"error\",\n \"typescript/prefer-readonly\": [\n \"error\",\n {\n onlyInlineLambdas: false,\n },\n ],\n \"typescript/prefer-regexp-exec\": \"error\",\n \"typescript/prefer-return-this-type\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_TYPESCRIPT_SUSPICIOUS = {\n \"typescript/consistent-return\": [\n \"error\",\n {\n treatUndefinedAsUnspecified: false,\n },\n ],\n \"typescript/no-confusing-non-null-assertion\": \"error\",\n \"typescript/no-unnecessary-template-expression\": \"error\",\n \"typescript/no-unnecessary-type-constraint\": \"error\",\n \"typescript/no-unnecessary-type-conversion\": \"error\",\n \"typescript/no-unnecessary-type-parameters\": \"error\",\n \"typescript/no-unsafe-enum-comparison\": \"error\",\n} as const satisfies LintRules;\n\nconst RULES_TYPESCRIPT = {\n ...RULES_TYPESCRIPT_NURSERY,\n ...RULES_TYPESCRIPT_PEDANTIC,\n ...RULES_TYPESCRIPT_RESTRICTION,\n ...RULES_TYPESCRIPT_STYLE,\n ...RULES_TYPESCRIPT_SUSPICIOUS,\n} as const satisfies LintRules;\n\nexport {\n RULES_TYPESCRIPT,\n RULES_TYPESCRIPT_NURSERY,\n RULES_TYPESCRIPT_PEDANTIC,\n RULES_TYPESCRIPT_RESTRICTION,\n RULES_TYPESCRIPT_STYLE,\n RULES_TYPESCRIPT_SUSPICIOUS,\n};\n"],"mappings":"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"}