@projectwallace/preset-oxlint 0.0.7 → 0.0.10
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.
- package/index.json +16 -8
- 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,12 @@
|
|
|
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
|
+
|
|
85
92
|
// ============================================================
|
|
86
93
|
// Unicorn plugin rules
|
|
87
94
|
// ============================================================
|
|
@@ -89,18 +96,19 @@
|
|
|
89
96
|
"unicorn/no-null": "error",
|
|
90
97
|
// Don't enforce Set.has() over Array.includes()
|
|
91
98
|
"unicorn/prefer-set-has": "off",
|
|
99
|
+
// Allow lonely if for readability (prevent long if-statements)
|
|
100
|
+
"unicorn/no-lonely-if": "off",
|
|
92
101
|
|
|
93
102
|
// ============================================================
|
|
94
103
|
// Vitest plugin rules
|
|
95
104
|
// ============================================================
|
|
96
105
|
// Always use `test()` instead of `it()` for consistency
|
|
97
|
-
|
|
98
|
-
"jest/consistent-test-it": [
|
|
106
|
+
"vitest/consistent-test-it": [
|
|
99
107
|
"error",
|
|
100
108
|
{
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
109
|
+
"fn": "test",
|
|
110
|
+
"withinDescribe": "test"
|
|
111
|
+
}
|
|
104
112
|
]
|
|
105
113
|
}
|
|
106
|
-
}
|
|
114
|
+
}
|