File tree Expand file tree Collapse file tree 9 files changed +25
-21
lines changed Expand file tree Collapse file tree 9 files changed +25
-21
lines changed Original file line number Diff line number Diff line change 1
- parser : " @typescript-eslint/parser"
1
+ parser : ' @typescript-eslint/parser'
2
2
extends :
3
3
- airbnb-base
4
+ - prettier
4
5
parserOptions :
5
6
ecmaVersion : 2018
6
7
project : ./tsconfig.lint.json
10
11
node : true
11
12
browser : true
12
13
rules :
13
- " @typescript-eslint/lines-between-class-members " : off
14
+ ' @typescript-eslint/lines-between-class-members ' : off
14
15
arrow-parens :
15
16
- error
16
17
- as-needed
37
38
padding-line-between-statements :
38
39
- error
39
40
- blankLine : always
40
- prev : " * "
41
+ prev : ' * '
41
42
next :
42
43
- block
43
44
- block-like
59
60
- import
60
61
- let
61
62
- var
62
- next : " * "
63
+ next : ' * '
63
64
- blankLine : any
64
65
prev :
65
66
- const
86
87
- export
87
88
settings :
88
89
import/parsers :
89
- " @typescript-eslint/parser " :
90
+ ' @typescript-eslint/parser ' :
90
91
- .ts
Original file line number Diff line number Diff line change 5
5
docs /
6
6
coverage /
7
7
8
+ pnpm-lock.yaml
8
9
yarn.lock
9
10
yarn-error.log
10
11
.DS_Store
Original file line number Diff line number Diff line change 18
18
},
19
19
"dependencies" : {
20
20
"jira.js" : " latest"
21
- }
21
+ },
22
+ "type" : " module"
22
23
}
Original file line number Diff line number Diff line change 1
1
import { Version3Client } from 'jira.js' ;
2
- import { createIssue } from './utils' ;
3
- import { apiToken , email , host } from './credentials' ;
2
+ import { createIssue } from './utils/index.js ' ;
3
+ import { apiToken , email , host } from './credentials.js ' ;
4
4
5
5
async function addFixVersion ( ) {
6
6
const client = new Version3Client ( {
Original file line number Diff line number Diff line change 1
1
import { Version3Client } from 'jira.js' ;
2
- import { createIssue } from './utils' ;
3
- import { apiToken , email , host } from './credentials' ;
2
+ import { createIssue } from './utils/index.js ' ;
3
+ import { apiToken , email , host } from './credentials.js ' ;
4
4
5
5
async function addWorklog ( ) {
6
6
const client = new Version3Client ( {
Original file line number Diff line number Diff line change 1
1
import { Version3Client } from 'jira.js' ;
2
- import { apiToken , email , host } from './credentials' ;
2
+ import { apiToken , email , host } from './credentials.js ' ;
3
3
4
4
const client = new Version3Client ( {
5
5
host,
@@ -45,9 +45,8 @@ async function main() {
45
45
}
46
46
}
47
47
48
- main ( )
49
- . catch ( e => {
50
- console . error ( e ) ;
48
+ main ( ) . catch ( e => {
49
+ console . error ( e ) ;
51
50
52
- throw new Error ( JSON . stringify ( e ) ) ;
53
- } ) ;
51
+ throw new Error ( JSON . stringify ( e ) ) ;
52
+ } ) ;
Original file line number Diff line number Diff line change 1
1
import { Version3Client } from 'jira.js' ;
2
- import { addWorklog , createIssue } from './utils' ;
3
- import { apiToken , email , host } from './credentials' ;
2
+ import type { Worklog } from 'jira.js/out/version3/models' ;
3
+ import { apiToken , email , host } from './credentials.js' ;
4
+ import { addWorklog , createIssue } from './utils/index.js' ;
4
5
5
6
async function getAllWorklogs ( ) {
6
7
const client = new Version3Client ( {
@@ -19,7 +20,7 @@ async function getAllWorklogs() {
19
20
await addWorklog ( client , issue ) ;
20
21
21
22
// The main part responsible for getting the worklogs
22
- const worklogs = [ ] ;
23
+ const worklogs : Worklog [ ] = [ ] ;
23
24
24
25
let offset = 0 ;
25
26
let total = 0 ;
Original file line number Diff line number Diff line change 1
- export * from './addWorklog' ;
2
- export * from './createIssue' ;
1
+ export * from './addWorklog.js ' ;
2
+ export * from './createIssue.js ' ;
Original file line number Diff line number Diff line change 2
2
"extends" : " ./tsconfig.json" ,
3
3
"include" : [
4
4
" examples" ,
5
+ " rollup.config.ts" ,
5
6
" src" ,
6
7
" tests" ,
7
8
" vitest.config.mts"
You can’t perform that action at this time.
0 commit comments