File tree Expand file tree Collapse file tree 4 files changed +543
-419
lines changed Expand file tree Collapse file tree 4 files changed +543
-419
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"extends": ["./node_modules/@nihalgonsalves/esconfig/.eslintrc"],
3
3
"rules": {
4
- "@typescript-eslint/no-duplicate-enum-values": "off"
5
- }
4
+ "@typescript-eslint/no-duplicate-enum-values": "off",
5
+ "@typescript-eslint/restrict-template-expressions": [
6
+ "error",
7
+ { "allowNumber": true },
8
+ ],
9
+ },
6
10
}
Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ const writeEnum = (enumString: string) => {
112
112
113
113
void getEnum ( )
114
114
. then ( writeEnum )
115
- . catch ( ( e ) => {
115
+ . catch ( ( e : unknown ) => {
116
116
console . error ( e ) ;
117
117
process . exit ( 1 ) ;
118
118
} ) ;
Original file line number Diff line number Diff line change 14
14
"homepage" : " https://github.com/nihalgonsalves/pg-error-enum#readme" ,
15
15
"main" : " dist/index.js" ,
16
16
"types" : " dist/index.d.ts" ,
17
- "packageManager" :
" [email protected] .0 +sha256.81a00df816059803e6b5148acf03ce313cad36b7f6e5af6efa040a15981a6ffb " ,
17
+ "packageManager" :
" [email protected] .1 +sha256.f3cc0eda8e5560e529c7147565b30faa43b4e472d90e8634d7134a37c7f59781 " ,
18
18
"scripts" : {
19
19
"sync" : " tsx bin/sync.ts" ,
20
20
"clean" : " rm -rf ./dist/" ,
30
30
" dist/**/*"
31
31
],
32
32
"devDependencies" : {
33
- "@nihalgonsalves/esconfig" : " ^0.9.1 " ,
33
+ "@nihalgonsalves/esconfig" : " ^0.9.5 " ,
34
34
"@types/node" : " ^18" ,
35
- "@typescript-eslint/eslint-plugin" : " ^7.1 .0" ,
36
- "@typescript-eslint/parser" : " ^7.1 .0" ,
35
+ "@typescript-eslint/eslint-plugin" : " ^7.4 .0" ,
36
+ "@typescript-eslint/parser" : " ^7.4 .0" ,
37
37
"eslint" : " ^8.57.0" ,
38
38
"eslint-plugin-import" : " ^2.29.1" ,
39
- "lefthook" : " ^1.6.4 " ,
39
+ "lefthook" : " ^1.6.7 " ,
40
40
"prettier" : " ^3.2.5" ,
41
41
"tsx" : " ^4.7.1" ,
42
- "typescript" : " ^5.3 .3" ,
42
+ "typescript" : " ^5.4 .3" ,
43
43
"zod" : " ^3.22.4"
44
44
}
45
45
}
You can’t perform that action at this time.
0 commit comments