@skilbjo/config-rc 1.0.49 → 1.0.51

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/CHANGELOG.md CHANGED
@@ -1,3 +1,17 @@
1
+ ## [1.0.51](https://github.com/skilbjo/config-rc/compare/v1.0.50...v1.0.51) (2026-04-12)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * no floating promise dropped on test dir ([5f5904c](https://github.com/skilbjo/config-rc/commit/5f5904c672060f937b84f015fe545de34e3dcdc0))
7
+
8
+ ## [1.0.50](https://github.com/skilbjo/config-rc/compare/v1.0.49...v1.0.50) (2026-04-12)
9
+
10
+
11
+ ### Bug Fixes
12
+
13
+ * more ts@7 prep ([7abe1c7](https://github.com/skilbjo/config-rc/commit/7abe1c727c94db205abe345b70df10546b6844a1))
14
+
1
15
  ## [1.0.49](https://github.com/skilbjo/config-rc/compare/v1.0.48...v1.0.49) (2026-04-12)
2
16
 
3
17
 
package/index.js CHANGED
@@ -21,11 +21,11 @@ const config = tseslint.config(
21
21
  globals: {
22
22
  ...globals.node,
23
23
  ...globals.jest,
24
- ...globals.es2021,
24
+ ...globals.es2025,
25
25
  Atomics: 'readonly',
26
26
  SharedArrayBuffer: 'readonly',
27
27
  },
28
- ecmaVersion: 2022,
28
+ ecmaVersion: 2025,
29
29
  sourceType: 'module',
30
30
  },
31
31
  plugins: {
@@ -59,8 +59,29 @@ const config = tseslint.config(
59
59
  'n/no-extraneous-import': 'off',
60
60
  'n/no-missing-import': 'off', // conflicts with typescript absolute imports
61
61
  'n/no-process-exit': 'off',
62
- 'n/no-unsupported-features/es-syntax': 'off',
62
+ 'n/no-unsupported-features/es-syntax': [
63
+ 'error',
64
+ { version: '>=24.14.1' },
65
+ ],
66
+ 'n/no-unsupported-features/node-builtins': [
67
+ 'error',
68
+ { version: '>=24.14.1' },
69
+ ],
70
+ 'n/prefer-node-protocol': 'error',
63
71
  'n/shebang': 'off',
72
+ 'no-restricted-syntax': [
73
+ 'error',
74
+ {
75
+ selector: 'TSEnumDeclaration',
76
+ message:
77
+ 'Use const object + as const instead of enum. Required for erasableSyntaxOnly / TS@7 compatibility.',
78
+ },
79
+ {
80
+ selector: 'TSModuleDeclaration[declare!=true]',
81
+ message:
82
+ 'Avoid namespace/module declarations; use ES modules instead.',
83
+ },
84
+ ],
64
85
  'no-multiple-empty-lines': [2, { max: 1, maxEOF: 0 }],
65
86
  '@stylistic/eol-last': ['error', 'always'],
66
87
  '@stylistic/no-trailing-spaces': 'error',
@@ -113,12 +134,19 @@ const config = tseslint.config(
113
134
  fixStyle: 'inline-type-imports',
114
135
  },
115
136
  ],
137
+ '@typescript-eslint/no-deprecated': 'warn',
116
138
  '@typescript-eslint/no-floating-promises': 'error',
117
139
  '@typescript-eslint/no-misused-promises': 'error',
118
140
  '@typescript-eslint/no-unsafe-function-type': 'off',
119
141
  '@typescript-eslint/no-wrapper-object-types': 'off',
120
142
  },
121
143
  },
144
+ {
145
+ files: ['**/*.test.ts', '**/*.test.js', 'test/**/*.ts', 'test/**/*.js'],
146
+ rules: {
147
+ '@typescript-eslint/no-floating-promises': 'off',
148
+ },
149
+ },
122
150
  {
123
151
  files: ['**/*.js', '**/*.cjs', '**/*.mjs'],
124
152
  ...tseslint.configs.disableTypeChecked,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://json.schemastore.org/package",
3
3
  "name": "@skilbjo/config-rc",
4
- "version": "1.0.49",
4
+ "version": "1.0.51",
5
5
  "type": "module",
6
6
  "main": "index.js",
7
7
  "private": false,
@@ -1,5 +1,5 @@
1
- import * as fs from 'fs';
2
- import * as path from 'path';
1
+ import * as fs from 'node:fs';
2
+ import * as path from 'node:path';
3
3
 
4
4
  import * as a from './a';
5
5
  import { one } from './a';
package/tsconfig.json CHANGED
@@ -21,6 +21,9 @@
21
21
  "inlineSources": true,
22
22
  "inlineSourceMap": true,
23
23
  "strict": true,
24
+ "isolatedDeclarations": true,
25
+ "noUncheckedIndexedAccess": true,
26
+ "exactOptionalPropertyTypes": true,
24
27
  "types": [
25
28
  "node"
26
29
  ]