File tree 9 files changed +1542
-1589
lines changed
9 files changed +1542
-1589
lines changed Original file line number Diff line number Diff line change
1
+ /* eslint-env node */
2
+ module . exports = {
3
+ extends : [
4
+ "eslint:recommended" ,
5
+ "plugin:@typescript-eslint/recommended" ,
6
+ "prettier"
7
+ ] ,
8
+ parser : "@typescript-eslint/parser" ,
9
+ plugins : [ "@typescript-eslint" ] ,
10
+ root : true ,
11
+ rules : {
12
+ "@typescript-eslint/no-unnecessary-type-constraint" : "warn" ,
13
+ // Svelte doesn't correctly compile if imports of the generated /modules
14
+ // aren't imported as 'import type' in other parts of the generated
15
+ // querybuilder, so set this option to ensure we always do that
16
+ "@typescript-eslint/consistent-type-imports" : "error"
17
+ }
18
+ } ;
Original file line number Diff line number Diff line change 72
72
run : |
73
73
yarn lint
74
74
75
+ - name : ESLint (ignore failures for now)
76
+ run : |
77
+ yarn eslint || echo "ESLint still failing... Fine for now!"
78
+
75
79
- name : Build
76
80
run : |
77
81
yarn workspaces run build
Original file line number Diff line number Diff line change 6
6
],
7
7
"packageManager" :
" [email protected] " ,
8
8
"devDependencies" : {
9
- "@types/jest" : " ^24.0.11" ,
10
- "@types/node" : " ^18.11.17" ,
11
- "jest" : " ^29.0.0" ,
12
- "nodemon" : " ^2.0.13" ,
13
- "prettier" : " ^2.3.2" ,
14
- "ts-jest" : " ^29.0.0" ,
15
- "tslint" : " ^5.20.1" ,
9
+ "@typescript-eslint/eslint-plugin" : " ^5.59.1" ,
10
+ "@typescript-eslint/parser" : " ^5.59.1" ,
11
+ "eslint" : " ^8.39.0" ,
12
+ "eslint-config-prettier" : " ^8.8.0" ,
13
+ "prettier" : " ^2.8.8" ,
14
+ "tslint" : " ^6.1.3" ,
16
15
"tslint-config-prettier" : " ^1.18.0" ,
17
16
"tslint-plugin-prettier" : " ^2.3.0" ,
18
- "tsx " : " ^3.8.0 "
17
+ "typescript " : " ^5.0.4 "
19
18
},
20
19
"scripts" : {
21
20
"lint" : " tslint 'packages/*/src/**/*.ts'" ,
21
+ "eslint" : " eslint 'packages/*/src/**/*.ts'" ,
22
22
"format" : " prettier --write 'src/**/*.ts' 'test/**/*.ts'" ,
23
23
"generate" : " yarn workspace @edgedb/generate generate"
24
24
}
Original file line number Diff line number Diff line change 26
26
},
27
27
"devDependencies" : {
28
28
"@js-temporal/polyfill" : " ^0.4.1" ,
29
+ "@types/jest" : " ^29.5.1" ,
29
30
"get-stdin" : " ^7.0.0" ,
30
31
"globby" : " ^13.1.2" ,
31
- "jest" : " * " ,
32
- "jest-environment-jsdom" : " ^29.1.2 " ,
32
+ "jest" : " 29.5.0 " ,
33
+ "jest-environment-jsdom" : " ^29.5.0 " ,
33
34
"node-fetch" : " 2.6.7" ,
34
- "ts-jest" : " * " ,
35
- "tsx" : " * " ,
36
- "typescript" : " ^4.9 "
35
+ "ts-jest" : " 29.1.0 " ,
36
+ "tsx" : " 3.12.6 " ,
37
+ "typescript" : " ^5.0 "
37
38
},
38
39
"scripts" : {
39
40
"build" : " echo 'Building edgedb-js...' && rm -rf dist && yarn build:cjs && yarn build:deno" ,
Original file line number Diff line number Diff line change @@ -233,10 +233,10 @@ export class LocalDate {
233
233
234
234
toString ( ) : string {
235
235
const year =
236
- this . year < 1000 || this . year > 9999
236
+ this . year < 0 || this . year > 9999
237
237
? ( this . year < 0 ? "-" : "+" ) +
238
238
Math . abs ( this . year ) . toString ( ) . padStart ( 6 , "0" )
239
- : this . year . toString ( ) ;
239
+ : this . year . toString ( ) . padStart ( 4 , "0" ) ;
240
240
const month = this . month . toString ( ) . padStart ( 2 , "0" ) ;
241
241
const day = this . day . toString ( ) . padStart ( 2 , "0" ) ;
242
242
return `${ year } -${ month } -${ day } ` ;
Original file line number Diff line number Diff line change 21
21
"edgedb" : " ^1.1.0"
22
22
},
23
23
"devDependencies" : {
24
+ "@types/jest" : " ^29.5.1" ,
24
25
"conditional-type-checks" : " ^1.0.5" ,
25
26
"edgedb" : " ^1.1.0" ,
26
27
"esbuild" : " ^0.15.7" ,
27
28
"globby" : " ^13.1.2" ,
29
+ "jest" : " ^29.5.0" ,
28
30
"superjson" : " ^1.7.5" ,
29
- "typescript" : " ^4.9" ,
30
- "jest" : " *" ,
31
- "ts-jest" : " *"
31
+ "ts-jest" : " ^29.1.0" ,
32
+ "typescript" : " ^5.0"
32
33
},
33
34
"dependencies" : {
34
35
"chokidar" : " ^3.5.3"
Original file line number Diff line number Diff line change 4
4
"outDir" : " dist" ,
5
5
"module" : " NodeNext" ,
6
6
"moduleResolution" : " NodeNext" ,
7
- "importsNotUsedAsValues" : " error" ,
8
7
},
9
8
"include" : [
10
9
" edgeql-js" ,
Original file line number Diff line number Diff line change 1
1
{
2
2
"extends" : " ../../tsconfig.json" ,
3
3
"compilerOptions" : {
4
- // "target": "es2017",
5
- // "strictPropertyInitialization": false,
6
- // "baseUrl": ".",
7
4
"declaration" : true ,
8
5
"preserveSymlinks" : true ,
9
- "noUnusedLocals" : false ,
10
- // Svelte doesn't correctly compile if imports of the generated /modules
11
- // aren't imported as 'import type' in other parts of the generated
12
- // querybuilder, so set this option to ensure we always do that
13
- "importsNotUsedAsValues" : " error" ,
14
- // "paths": {
15
- // "./*": [
16
- // "./src/syntax/genMock/*"
17
- // ],
18
- // }
6
+ "noUnusedLocals" : false
19
7
},
20
8
"include" : [
21
9
" src" ,
You can’t perform that action at this time.
0 commit comments