@skilbjo/config-rc 1.0.49 → 1.0.50

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,10 @@
1
+ ## [1.0.50](https://github.com/skilbjo/config-rc/compare/v1.0.49...v1.0.50) (2026-04-12)
2
+
3
+
4
+ ### Bug Fixes
5
+
6
+ * more ts@7 prep ([7abe1c7](https://github.com/skilbjo/config-rc/commit/7abe1c727c94db205abe345b70df10546b6844a1))
7
+
1
8
  ## [1.0.49](https://github.com/skilbjo/config-rc/compare/v1.0.48...v1.0.49) (2026-04-12)
2
9
 
3
10
 
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,6 +134,7 @@ 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',
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.50",
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
  ]