@projectwallace/preset-oxlint 0.0.7 → 0.0.11

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 (2) hide show
  1. package/index.json +17 -8
  2. package/package.json +1 -1
package/index.json CHANGED
@@ -5,8 +5,7 @@
5
5
  "typescript",
6
6
  "oxc",
7
7
  "unicorn",
8
- "vitest",
9
- "jest"
8
+ "vitest"
10
9
  ],
11
10
  "env": {
12
11
  "es2024": true
@@ -20,6 +19,8 @@
20
19
  // ============================================================
21
20
  // Core/ESLint rules
22
21
  // ============================================================
22
+ // Inline comments are actually useful
23
+ "no-inline-comments": "off",
23
24
  // Allow using any TypeScript types without restrictions
24
25
  "ban-types": "off",
25
26
  // Switch statements don't require a default case
@@ -82,6 +83,13 @@
82
83
  // Warn about async functions that don't use await
83
84
  "require-await": "warn",
84
85
 
86
+ // ============================================================
87
+ // Eslint plugin rules
88
+ // ============================================================
89
+ // Allow inline comments, we use them tons
90
+ "no-inline-comments": "off",
91
+ "require-unicode-regexp": "off",
92
+
85
93
  // ============================================================
86
94
  // Unicorn plugin rules
87
95
  // ============================================================
@@ -89,18 +97,19 @@
89
97
  "unicorn/no-null": "error",
90
98
  // Don't enforce Set.has() over Array.includes()
91
99
  "unicorn/prefer-set-has": "off",
100
+ // Allow lonely if for readability (prevent long if-statements)
101
+ "unicorn/no-lonely-if": "off",
92
102
 
93
103
  // ============================================================
94
104
  // Vitest plugin rules
95
105
  // ============================================================
96
106
  // Always use `test()` instead of `it()` for consistency
97
- // Uses 'jest' because they use the same logic, apparently
98
- "jest/consistent-test-it": [
107
+ "vitest/consistent-test-it": [
99
108
  "error",
100
109
  {
101
- "fn": "test",
102
- "withinDescribe": "test"
103
- }
110
+ "fn": "test",
111
+ "withinDescribe": "test"
112
+ }
104
113
  ]
105
114
  }
106
- }
115
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@projectwallace/preset-oxlint",
3
- "version": "0.0.7",
3
+ "version": "0.0.11",
4
4
  "description": "Opinionated Project Wallace preset for Oxlint",
5
5
  "repository": {
6
6
  "type": "git",