@skilbjo/config-rc 1.0.48 → 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 +14 -0
- package/index.js +32 -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,17 @@
|
|
|
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
|
+
|
|
8
|
+
## [1.0.49](https://github.com/skilbjo/config-rc/compare/v1.0.48...v1.0.49) (2026-04-12)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Bug Fixes
|
|
12
|
+
|
|
13
|
+
* add consistent type imports ([c5030b1](https://github.com/skilbjo/config-rc/commit/c5030b132d3bb08f4c9933f29d790934f128486b))
|
|
14
|
+
|
|
1
15
|
## [1.0.48](https://github.com/skilbjo/config-rc/compare/v1.0.47...v1.0.48) (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.
|
|
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',
|
|
@@ -106,6 +127,14 @@ const config = tseslint.config(
|
|
|
106
127
|
],
|
|
107
128
|
rules: {
|
|
108
129
|
'@typescript-eslint/consistent-type-definitions': ['error', 'type'],
|
|
130
|
+
'@typescript-eslint/consistent-type-imports': [
|
|
131
|
+
'error',
|
|
132
|
+
{
|
|
133
|
+
prefer: 'type-imports',
|
|
134
|
+
fixStyle: 'inline-type-imports',
|
|
135
|
+
},
|
|
136
|
+
],
|
|
137
|
+
'@typescript-eslint/no-deprecated': 'warn',
|
|
109
138
|
'@typescript-eslint/no-floating-promises': 'error',
|
|
110
139
|
'@typescript-eslint/no-misused-promises': 'error',
|
|
111
140
|
'@typescript-eslint/no-unsafe-function-type': 'off',
|
package/package.json
CHANGED
package/test/lint-playground.ts
CHANGED