@naturalcycles/dev-lib 20.37.0 → 20.37.1
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/cfg/lint-staged.config.js +1 -10
- package/cfg/oxlint.config.json +3 -0
- package/dist/check.util.js +1 -9
- package/dist/vendor/mitm.js +0 -1
- package/package.json +1 -1
|
@@ -50,16 +50,7 @@ if (eslintConfigPath) {
|
|
|
50
50
|
let oxlintCmd = undefined
|
|
51
51
|
|
|
52
52
|
if (oxlintConfigPath) {
|
|
53
|
-
oxlintCmd = [
|
|
54
|
-
'oxlint',
|
|
55
|
-
// '--report-unused-disable-directives', // wrongly reports disabled eslint (not oxlint) rules
|
|
56
|
-
'--type-aware',
|
|
57
|
-
'--type-check',
|
|
58
|
-
'--fix',
|
|
59
|
-
'--fix-suggestions',
|
|
60
|
-
'--fix-dangerously',
|
|
61
|
-
'--max-warnings=0',
|
|
62
|
-
]
|
|
53
|
+
oxlintCmd = ['oxlint', '--fix', '--fix-suggestions', '--fix-dangerously']
|
|
63
54
|
.filter(Boolean)
|
|
64
55
|
.join(' ')
|
|
65
56
|
}
|
package/cfg/oxlint.config.json
CHANGED
package/dist/check.util.js
CHANGED
|
@@ -202,15 +202,7 @@ export function runOxlint(fix = true) {
|
|
|
202
202
|
const oxlintPath = findPackageBinPath('oxlint', 'oxlint');
|
|
203
203
|
exec2.spawn(oxlintPath, {
|
|
204
204
|
name: ['oxlint', !fix && '--no-fix'].filter(Boolean).join(' '),
|
|
205
|
-
args: [
|
|
206
|
-
// '--report-unused-disable-directives', // wrongly reports disabled eslint (not oxlint) rules
|
|
207
|
-
'--max-warnings=0',
|
|
208
|
-
'--type-aware',
|
|
209
|
-
'--type-check',
|
|
210
|
-
fix && '--fix',
|
|
211
|
-
fix && '--fix-suggestions',
|
|
212
|
-
fix && '--fix-dangerously',
|
|
213
|
-
].filter(_isTruthy),
|
|
205
|
+
args: [fix && '--fix', fix && '--fix-suggestions', fix && '--fix-dangerously'].filter(_isTruthy),
|
|
214
206
|
shell: false,
|
|
215
207
|
});
|
|
216
208
|
return true;
|
package/dist/vendor/mitm.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { createRequire } from 'node:module';
|
|
2
2
|
// Use require() to get mutable module objects (ESM namespace objects are frozen)
|
|
3
3
|
const require = createRequire(import.meta.url);
|
|
4
|
-
/* eslint-disable @typescript-eslint/naming-convention -- vendored code uses PascalCase for modules */
|
|
5
4
|
const Net = require('node:net');
|
|
6
5
|
const Tls = require('node:tls');
|
|
7
6
|
const Http = require('node:http');
|