@sister.software/oxlint-config 10.0.0 → 12.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (82) hide show
  1. package/README.md +169 -0
  2. package/out/acronym-case-plugin.d.ts +80 -0
  3. package/out/acronym-case-plugin.d.ts.map +1 -0
  4. package/out/acronym-case-plugin.js +272 -0
  5. package/out/acronym-case-plugin.js.map +1 -0
  6. package/out/browser-globals.d.ts +15 -0
  7. package/out/browser-globals.d.ts.map +1 -0
  8. package/out/browser-globals.js +76 -0
  9. package/out/browser-globals.js.map +1 -0
  10. package/out/console-padding-plugin.d.ts +16 -0
  11. package/out/console-padding-plugin.d.ts.map +1 -0
  12. package/out/console-padding-plugin.js +68 -0
  13. package/out/console-padding-plugin.js.map +1 -0
  14. package/out/constant-doc-plugin.d.ts +9 -3
  15. package/out/constant-doc-plugin.d.ts.map +1 -1
  16. package/out/constant-doc-plugin.js +6 -2
  17. package/out/constant-doc-plugin.js.map +1 -1
  18. package/out/headers-plugin.d.ts +6 -2
  19. package/out/headers-plugin.d.ts.map +1 -1
  20. package/out/headers-plugin.js +3 -1
  21. package/out/headers-plugin.js.map +1 -1
  22. package/out/index.d.ts +123 -27
  23. package/out/index.d.ts.map +1 -1
  24. package/out/index.js +63 -5
  25. package/out/index.js.map +1 -1
  26. package/out/jsdoc-plugin.d.ts +16 -0
  27. package/out/jsdoc-plugin.d.ts.map +1 -0
  28. package/out/jsdoc-plugin.js +68 -0
  29. package/out/jsdoc-plugin.js.map +1 -0
  30. package/out/length-truthiness-plugin.d.ts.map +1 -1
  31. package/out/length-truthiness-plugin.js +15 -5
  32. package/out/length-truthiness-plugin.js.map +1 -1
  33. package/out/multiline-statement-plugin.d.ts +18 -0
  34. package/out/multiline-statement-plugin.d.ts.map +1 -0
  35. package/out/multiline-statement-plugin.js +93 -0
  36. package/out/multiline-statement-plugin.js.map +1 -0
  37. package/out/padding-plugin.d.ts +4 -3
  38. package/out/padding-plugin.d.ts.map +1 -1
  39. package/out/padding-plugin.js +44 -27
  40. package/out/padding-plugin.js.map +1 -1
  41. package/out/padding-utils.d.ts +34 -0
  42. package/out/padding-utils.d.ts.map +1 -0
  43. package/out/padding-utils.js +50 -0
  44. package/out/padding-utils.js.map +1 -0
  45. package/out/plugin-types.d.ts +75 -13
  46. package/out/plugin-types.d.ts.map +1 -1
  47. package/out/plugin.d.ts.map +1 -1
  48. package/out/plugin.js +13 -0
  49. package/out/plugin.js.map +1 -1
  50. package/out/process-globals-plugin.d.ts.map +1 -1
  51. package/out/process-globals-plugin.js +6 -2
  52. package/out/process-globals-plugin.js.map +1 -1
  53. package/out/restrictions.d.ts +9 -3
  54. package/out/restrictions.d.ts.map +1 -1
  55. package/out/restrictions.js +4 -70
  56. package/out/restrictions.js.map +1 -1
  57. package/out/section-marker-plugin.d.ts +25 -0
  58. package/out/section-marker-plugin.d.ts.map +1 -0
  59. package/out/section-marker-plugin.js +234 -0
  60. package/out/section-marker-plugin.js.map +1 -0
  61. package/out/threshold-plugin.d.ts +9 -3
  62. package/out/threshold-plugin.d.ts.map +1 -1
  63. package/out/threshold-plugin.js +9 -3
  64. package/out/threshold-plugin.js.map +1 -1
  65. package/package.json +3 -3
  66. package/src/acronym-case-plugin.ts +370 -0
  67. package/src/browser-globals.ts +77 -0
  68. package/src/console-padding-plugin.ts +76 -0
  69. package/src/constant-doc-plugin.ts +15 -5
  70. package/src/headers-plugin.ts +6 -2
  71. package/src/index.ts +183 -29
  72. package/src/jsdoc-plugin.ts +75 -0
  73. package/src/length-truthiness-plugin.ts +15 -5
  74. package/src/multiline-statement-plugin.ts +104 -0
  75. package/src/padding-plugin.ts +44 -29
  76. package/src/padding-utils.ts +70 -0
  77. package/src/plugin-types.ts +75 -13
  78. package/src/plugin.ts +18 -0
  79. package/src/process-globals-plugin.ts +6 -2
  80. package/src/restrictions.ts +16 -77
  81. package/src/section-marker-plugin.ts +306 -0
  82. package/src/threshold-plugin.ts +18 -6
@@ -11,20 +11,32 @@
11
11
 
12
12
  import type { AstNode, Rule } from "./plugin-types.js"
13
13
 
14
- /** Operators whose operands read as thresholds. */
14
+ /**
15
+ * Operators whose operands read as thresholds.
16
+ */
15
17
  const COMPARISON_OPERATORS = new Set(["<", ">", "<=", ">=", "===", "!==", "==", "!="])
16
18
 
17
- /** Numbers so conventional that naming them costs more clarity than it buys. */
19
+ /**
20
+ * Numbers so conventional that naming them costs more clarity than it buys.
21
+ */
18
22
  const DEFAULT_IGNORE = [-1, 0, 1, 2, 0.5, 10, 100, 1000]
19
23
 
20
- /** Radix-prefixed literals: `0x1f`, `0b1010`, `0o777`. */
24
+ /**
25
+ * Radix-prefixed literals: `0x1f`, `0b1010`, `0o777`.
26
+ */
21
27
  const RADIX_PREFIXED = /^0[xXbBoO]/
22
28
 
23
- /** Options accepted by {@link noUnnamedThresholdRule}. */
29
+ /**
30
+ * Options accepted by {@link noUnnamedThresholdRule}.
31
+ */
24
32
  export interface ThresholdOptions {
25
- /** Values that may appear unnamed. Replaces the default list rather than extending it. */
33
+ /**
34
+ * Values that may appear unnamed. Replaces the default list rather than extending it.
35
+ */
26
36
  ignore?: number[]
27
- /** Exempt radix-prefixed literals, which already read as codepoints or bit masks. */
37
+ /**
38
+ * Exempt radix-prefixed literals, which already read as codepoints or bit masks.
39
+ */
28
40
  allowHex?: boolean
29
41
  }
30
42