@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 +7 -0
- package/index.js +25 -3
- package/package.json +1 -1
- package/test/lint-playground.ts +2 -2
- package/tsconfig.json +3 -0
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.
|
|
24
|
+
...globals.es2025,
|
|
25
25
|
Atomics: 'readonly',
|
|
26
26
|
SharedArrayBuffer: 'readonly',
|
|
27
27
|
},
|
|
28
|
-
ecmaVersion:
|
|
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':
|
|
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
package/test/lint-playground.ts
CHANGED