Skip to content

Commit 596a7fa

Browse files
committed
typescript
1 parent 5f728c3 commit 596a7fa

File tree

13 files changed

+3430
-5298
lines changed

13 files changed

+3430
-5298
lines changed

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
dist/
2+
lib/
3+
node_modules/

.eslintrc.json

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
{
2-
"env": {
3-
"commonjs": true,
4-
"es6": true,
5-
"node": true
6-
},
7-
"extends": "eslint:recommended",
8-
"globals": {
9-
"Atomics": "readonly",
10-
"SharedArrayBuffer": "readonly"
11-
},
12-
"parserOptions": {
13-
"ecmaVersion": 2018
14-
},
15-
"rules": {
16-
}
17-
}
2+
"env": { "node": true, "jest": true },
3+
"parser": "@typescript-eslint/parser",
4+
"parserOptions": { "ecmaVersion": 9, "sourceType": "module" },
5+
"extends": [
6+
"eslint:recommended",
7+
"plugin:@typescript-eslint/eslint-recommended",
8+
"plugin:@typescript-eslint/recommended",
9+
"plugin:import/errors",
10+
"plugin:import/warnings",
11+
"plugin:import/typescript",
12+
"plugin:prettier/recommended"
13+
],
14+
"plugins": ["@typescript-eslint"],
15+
"rules": {
16+
"@typescript-eslint/camelcase": "off"
17+
}
18+
}

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,10 @@ jobs:
2828
node-version: 16.x
2929
cache: npm
3030
- run: npm ci
31+
- run: npm run build
32+
- run: npm run format-check
33+
- run: npm run lint
3134
- run: npm run test
32-
- run: npm run package
3335
- uses: actions/upload-artifact@v3
3436
with:
3537
name: dist

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
node_modules
1+
lib/
2+
node_modules/

action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ inputs:
66
default: ${{ github.token }}
77
repository:
88
description: 'The full name of the repository in which to create or update a comment.'
9+
default: ${{ github.repository }}
910
issue-number:
1011
description: 'The number of the issue or pull request in which to create a comment.'
1112
comment-id:
@@ -16,10 +17,9 @@ inputs:
1617
description: 'The path to a file containing the comment body. Cannot be used in conjunction with `body`.'
1718
edit-mode:
1819
description: 'The mode when updating a comment, "replace" or "append".'
19-
reaction-type:
20-
description: 'Deprecated in favour of `reactions`'
20+
default: 'append'
2121
reactions:
22-
description: 'A comma separated list of reactions to add to the comment.'
22+
description: 'A comma or newline separated list of reactions to add to the comment.'
2323
outputs:
2424
comment-id:
2525
description: 'The id of the created comment'

0 commit comments

Comments
 (0)