Skip to content

Commit 1ff8585

Browse files
committed
code edit 1
1 parent c95e211 commit 1ff8585

File tree

8 files changed

+12713
-158
lines changed

8 files changed

+12713
-158
lines changed

.eslintrc.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
module.exports = {
2+
parser: '@typescript-eslint/parser',
3+
parserOptions: {
4+
project: 'tsconfig.json',
5+
sourceType: 'module',
6+
},
7+
plugins: ['@typescript-eslint/eslint-plugin'],
8+
extends: [
9+
'plugin:@typescript-eslint/recommended',
10+
'plugin:prettier/recommended',
11+
],
12+
root: true,
13+
env: {
14+
node: true,
15+
jest: true,
16+
},
17+
ignorePatterns: ['.eslintrc.js'],
18+
rules: {
19+
'@typescript-eslint/interface-name-prefix': 'off',
20+
'@typescript-eslint/explicit-function-return-type': 'off',
21+
'@typescript-eslint/explicit-module-boundary-types': 'off',
22+
'@typescript-eslint/no-explicit-any': 'off',
23+
'@typescript-eslint/ban-ts-comment': 'off',
24+
'@typescript-eslint/no-namespace': 'off'
25+
},
26+
};

.eslintrc.json

Lines changed: 0 additions & 58 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: "build-test"
1+
name: 'build-test'
22
on: # rebuild any PRs and main branch changes
33
pull_request:
44
push:
@@ -10,7 +10,7 @@ jobs:
1010
build: # make sure build/ci work properly
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v1
13+
- uses: actions/checkout@v2
1414
- run: |
1515
npm install
1616
npm run all
@@ -19,6 +19,5 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@v1
2121
- uses: ./
22-
with:
22+
with:
2323
pattern: '\[(BUGFIX|DOCS|FEATURE|TASK)\] .+$'
24-
error: 'Your first line has to contain a commit type like "[BUGFIX]".'

.prettierrc.json

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
11
{
2-
"printWidth": 80,
3-
"tabWidth": 2,
4-
"useTabs": false,
5-
"semi": false,
6-
"singleQuote": true,
7-
"trailingComma": "none",
8-
"bracketSpacing": false,
9-
"arrowParens": "avoid",
10-
"parser": "typescript"
11-
}
2+
"trailingComma": "all",
3+
"tabWidth": 2,
4+
"singleQuote": true,
5+
"useTabs": false
6+
}

action.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,6 @@ inputs:
1212
description: 'Expression flags change how the expression is interpreted.'
1313
required: false
1414
default: ''
15-
error:
16-
description: 'A error message which will be returned in case of an error.'
17-
required: true
18-
pre_error:
19-
description: 'A error message which will be showed in the begin of errors.'
20-
required: false
21-
default: ''
22-
post_error:
23-
description: 'A error message which will be showed in the end of errors.'
24-
required: false
25-
default: ''
26-
one_pass_all_pass:
27-
description: 'If "true", as long as one commit in the pull-request passes the check, all pass.'
28-
required: false
29-
default: "false"
3015

3116
runs:
3217
using: node12

0 commit comments

Comments
 (0)