@naturalcycles/dev-lib 20.1.6 → 20.2.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.
@@ -2,17 +2,7 @@ export default {
2
2
  rules: {
3
3
  '@typescript-eslint/adjacent-overload-signatures': 2,
4
4
  '@typescript-eslint/ban-ts-comment': 0,
5
- 'no-restricted-globals': [
6
- 2,
7
- {
8
- name: '__dirname',
9
- message: '__dirname is not available in ESM. Use import.meta.dirname instead.',
10
- },
11
- {
12
- name: '__filename',
13
- message: '__filename is not available in ESM. Use import.meta.filename instead.',
14
- },
15
- ],
5
+ 'no-restricted-globals': 0, // oxlint
16
6
  '@typescript-eslint/no-restricted-types': [
17
7
  2,
18
8
  {
@@ -208,22 +198,23 @@ export default {
208
198
  // 'import-x/extensions': [2, 'always'], // biome useImportExtensions
209
199
  'no-array-constructor': 0,
210
200
  'no-async-promise-executor': 2,
211
- 'no-bitwise': 2,
212
- 'no-caller': 2,
201
+ 'no-bitwise': 0, // oxlint
202
+ 'no-caller': 0, // oxlint
213
203
  'no-case-declarations': 2,
214
204
  'no-class-assign': 2,
215
205
  'no-compare-neg-zero': 2,
216
206
  'no-cond-assign': 2,
217
207
  'no-const-assign': 2,
218
208
  'no-constant-condition': 2,
219
- 'no-constant-binary-expression': 2,
209
+ 'no-constant-binary-expression': 0, // oxlint
220
210
  'no-control-regex': 2,
221
211
  'no-debugger': 2,
222
212
  'no-delete-var': 2,
223
213
  'no-dupe-args': 2,
224
- 'no-dupe-else-if': 2,
214
+ 'no-dupe-else-if': 0, // oxlint
225
215
  'no-dupe-keys': 2,
226
216
  'no-duplicate-case': 2,
217
+ 'no-empty-static-block': 0, // oxlint
227
218
  'no-empty': [2, { allowEmptyCatch: true }],
228
219
  'no-empty-character-class': 2,
229
220
  'no-empty-function': 0,
@@ -242,9 +233,9 @@ export default {
242
233
  'no-global-assign': 2,
243
234
  'no-import-assign': 0, // used in some unit tests
244
235
  'no-inner-declarations': 2,
245
- 'no-invalid-regexp': 2,
236
+ 'no-invalid-regexp': 0, // oxlint
246
237
  'no-invalid-this': 0, // too many false positives in valid classes
247
- 'no-irregular-whitespace': 2,
238
+ 'no-irregular-whitespace': 0, // oxlint
248
239
  'no-misleading-character-class': 2,
249
240
  'no-new-symbol': 2,
250
241
  'no-obj-calls': 2,
@@ -283,7 +274,7 @@ export default {
283
274
  'no-setter-return': 2,
284
275
  'no-shadow': 0, // it is buggy with TypeScript enums
285
276
  'no-shadow-restricted-names': 2,
286
- 'no-sparse-arrays': 2,
277
+ 'no-sparse-arrays': 0, // oxlint
287
278
  'no-this-before-super': 2,
288
279
  '@typescript-eslint/only-throw-error': 0, // biome
289
280
  'no-undef': 0, // covered by TS, conflicts with typescript-eslint
@@ -292,8 +283,10 @@ export default {
292
283
  'no-unsafe-finally': 2,
293
284
  'no-unsafe-negation': 2,
294
285
  'no-unused-labels': 2,
286
+ 'no-unused-private-class-members': 0, // oxlint
287
+ 'no-useless-backreference': 0, // oxlint
295
288
  'no-useless-catch': 2,
296
- 'no-useless-escape': 2,
289
+ 'no-useless-escape': 0, // oxlint
297
290
  'no-useless-assignment': 2,
298
291
  'no-unneeded-ternary': 0, // oxlint
299
292
  'no-duplicate-imports': 0, // too many false-positives (with e.g import type + import on next line)
@@ -408,6 +401,22 @@ export default {
408
401
  'unicorn/prefer-query-selector': 0,
409
402
  'unicorn/prefer-prototype-methods': 0, // false-positive on node promisify() of callback functions
410
403
  'unicorn/expiring-todo-comments': 1, // warning, instead of error
404
+ 'unicorn/no-await-in-promise-methods': 0, // oxlint
405
+ 'unicorn/no-document-cookie': 0, // oxlint
406
+ 'unicorn/no-empty-file': 0, // oxlint
407
+ 'unicorn/no-invalid-fetch-options': 0, // oxlint
408
+ 'unicorn/no-invalid-remove-event-listener': 0, // oxlint
409
+ 'unicorn/no-magic-array-flat-depth': 0, // oxlint
410
+ 'unicorn/no-new-array': 0, // oxlint
411
+ 'unicorn/no-single-promise-in-promise-methods': 0, // oxlint
412
+ 'unicorn/no-unnecessary-await': 0, // oxlint
413
+ 'unicorn/no-useless-fallback-in-spread': 0, // oxlint
414
+ 'unicorn/no-useless-length-check': 0, // oxlint
415
+ 'unicorn/no-useless-spread': 0, // oxlint
416
+ 'unicorn/prefer-array-find': 0, // oxlint
417
+ 'unicorn/prefer-modern-math-apis': 0, // oxlint
418
+ 'unicorn/prefer-set-size': 0, // oxlint
419
+ 'unicorn/prefer-string-starts-ends-with': 0, // oxlint
411
420
  '@typescript-eslint/return-await': [2, 'always'],
412
421
  '@typescript-eslint/require-await': 0,
413
422
  'unicorn/no-array-reverse': 0, // too early
@@ -30,6 +30,7 @@ export default {
30
30
  'vitest/prefer-to-contain': 2,
31
31
  'vitest/prefer-to-have-length': 2,
32
32
  'vitest/prefer-vi-mocked': 2,
33
+ 'vitest/require-local-test-context-for-concurrent-snapshots': 0, // oxlint
33
34
  'vitest/require-to-throw-message': 2,
34
35
  'vitest/valid-title': 0, // noisy
35
36
  'vitest/valid-expect-in-promise': 2,
@@ -47,9 +47,6 @@ export async function runTSCInFolder(dir, args = []) {
47
47
  export async function runTSCProd(args = []) {
48
48
  const tsconfigPath = [`./tsconfig.prod.json`].find(p => fs2.pathExists(p)) || 'tsconfig.json';
49
49
  const tscPath = findPackageBinPath('typescript', 'tsc');
50
- const cacheLocation = `node_modules/.cache/src.tsbuildinfo`;
51
- const cacheFound = existsSync(cacheLocation);
52
- console.log(dimGrey(` tsc src cache found: ${cacheFound}`));
53
50
  await exec2.spawnAsync(tscPath, {
54
51
  args: ['-P', tsconfigPath, '--noEmit', 'false', '--noCheck', '--incremental', 'false', ...args],
55
52
  shell: false,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@naturalcycles/dev-lib",
3
3
  "type": "module",
4
- "version": "20.1.6",
4
+ "version": "20.2.0",
5
5
  "dependencies": {
6
6
  "@biomejs/biome": "^2",
7
7
  "@commitlint/cli": "^20",