@naturalcycles/dev-lib 15.6.0 → 15.7.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/biome.jsonc +1 -1
- package/cfg/eslint-rules.js +6 -5
- package/cfg/eslint.config.js +1 -1
- package/dist/lint.util.js +4 -3
- package/package.json +1 -2
package/cfg/biome.jsonc
CHANGED
package/cfg/eslint-rules.js
CHANGED
|
@@ -324,11 +324,12 @@ module.exports = {
|
|
|
324
324
|
argsIgnorePattern: '^_',
|
|
325
325
|
},
|
|
326
326
|
],
|
|
327
|
-
|
|
328
|
-
'unused-imports/no-unused-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
327
|
+
// unused-imports/* rules are replaced by biome
|
|
328
|
+
// 'unused-imports/no-unused-imports': 2,
|
|
329
|
+
// 'unused-imports/no-unused-vars': [
|
|
330
|
+
// 2,
|
|
331
|
+
// { vars: 'all', varsIgnorePattern: '^_', args: 'after-used', argsIgnorePattern: '^_' },
|
|
332
|
+
// ],
|
|
332
333
|
'@typescript-eslint/no-duplicate-enum-values': 2,
|
|
333
334
|
'@typescript-eslint/no-redundant-type-constituents': 0, // `'a' | string` is still useful for DX
|
|
334
335
|
'@typescript-eslint/no-empty-function': 0,
|
package/cfg/eslint.config.js
CHANGED
|
@@ -54,7 +54,7 @@ function getConfig() {
|
|
|
54
54
|
plugins: {
|
|
55
55
|
'@typescript-eslint': tseslint.plugin,
|
|
56
56
|
'import-x': require('eslint-plugin-import-x'),
|
|
57
|
-
'unused-imports': require('eslint-plugin-unused-imports'),
|
|
57
|
+
// 'unused-imports': require('eslint-plugin-unused-imports'), // disabled in favor of biome rules
|
|
58
58
|
'simple-import-sort': require('eslint-plugin-simple-import-sort'),
|
|
59
59
|
jsdoc: require('eslint-plugin-jsdoc'),
|
|
60
60
|
...(hasJest ? { jest: require('eslint-plugin-jest') } : {}),
|
package/dist/lint.util.js
CHANGED
|
@@ -231,8 +231,9 @@ function runActionLint() {
|
|
|
231
231
|
}
|
|
232
232
|
function runBiome(verbose = false, fix = true) {
|
|
233
233
|
if (!node_fs_1.default.existsSync(`node_modules/@biomejs/biome`)) {
|
|
234
|
-
if (verbose)
|
|
235
|
-
console.log(`biome is not installed (checked in node_modules/@biomejs), skipping`);
|
|
234
|
+
if (verbose) {
|
|
235
|
+
console.log(`biome is not installed (checked in node_modules/@biomejs/biome), skipping`);
|
|
236
|
+
}
|
|
236
237
|
return;
|
|
237
238
|
}
|
|
238
239
|
const configPath = `biome.jsonc`;
|
|
@@ -246,7 +247,7 @@ function runBiome(verbose = false, fix = true) {
|
|
|
246
247
|
}
|
|
247
248
|
function canRunBinary(name) {
|
|
248
249
|
try {
|
|
249
|
-
execSync(`which ${name}`);
|
|
250
|
+
node_child_process_1.default.execSync(`which ${name}`);
|
|
250
251
|
return true;
|
|
251
252
|
}
|
|
252
253
|
catch {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@naturalcycles/dev-lib",
|
|
3
|
-
"version": "15.
|
|
3
|
+
"version": "15.7.1",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"prepare": "husky",
|
|
6
6
|
"tsn-debug": "tsn testScript.ts",
|
|
@@ -34,7 +34,6 @@
|
|
|
34
34
|
"eslint-plugin-jsdoc": "^50.0.0",
|
|
35
35
|
"eslint-plugin-simple-import-sort": "^12.1.1",
|
|
36
36
|
"eslint-plugin-unicorn": "^55.0.0",
|
|
37
|
-
"eslint-plugin-unused-imports": "4.0.1",
|
|
38
37
|
"eslint-plugin-vue": "^9.0.0",
|
|
39
38
|
"expect-type": "^0.19.0",
|
|
40
39
|
"globals": "^15.8.0",
|