@ocavue/eslint-config 2.0.1 → 2.0.2
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/dist/src/typescript.d.ts.map +1 -1
- package/package.json +3 -3
- package/src/typescript.js +12 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../../src/typescript.js"],"names":[],"mappings":"AASA,
|
|
1
|
+
{"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../../src/typescript.js"],"names":[],"mappings":"AASA,oGAyGC;;qBA/GoB,mBAAmB"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ocavue/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "2.0.
|
|
5
|
-
"packageManager": "pnpm@9.
|
|
4
|
+
"version": "2.0.2",
|
|
5
|
+
"packageManager": "pnpm@9.6.0",
|
|
6
6
|
"description": "",
|
|
7
7
|
"author": "ocavue <ocavue@gmail.com>",
|
|
8
8
|
"license": "MIT",
|
|
@@ -54,7 +54,7 @@
|
|
|
54
54
|
"@antfu/ni": "^0.22.0",
|
|
55
55
|
"@types/eslint-config-prettier": "^6.11.3",
|
|
56
56
|
"@types/eslint__js": "^8.42.3",
|
|
57
|
-
"@types/node": "^20.14.
|
|
57
|
+
"@types/node": "^20.14.13",
|
|
58
58
|
"@typescript-eslint/utils": "^8.0.0",
|
|
59
59
|
"eslint": "^9.8.0",
|
|
60
60
|
"prettier": "^3.3.3",
|
package/src/typescript.js
CHANGED
|
@@ -68,6 +68,18 @@ export function typescript() {
|
|
|
68
68
|
],
|
|
69
69
|
'@typescript-eslint/await-thenable': 'error',
|
|
70
70
|
'@typescript-eslint/unbound-method': 'error',
|
|
71
|
+
|
|
72
|
+
// `type T1 = T0` and `interface T2 extends T0 {}` have the same meaning
|
|
73
|
+
// but different behavior in TypeScript type checking. `T1` and `T0` are
|
|
74
|
+
// the same type, while `T2` is different than `T0`. We allow `interface
|
|
75
|
+
// T2 extends T0 {}` explicitly.
|
|
76
|
+
'@typescript-eslint/no-empty-object-type': [
|
|
77
|
+
'error',
|
|
78
|
+
{
|
|
79
|
+
allowInterfaces: 'with-single-extends',
|
|
80
|
+
},
|
|
81
|
+
],
|
|
82
|
+
|
|
71
83
|
// TODO: We should set the rule below to error in the future
|
|
72
84
|
'@typescript-eslint/require-await': 'warn',
|
|
73
85
|
},
|