Skip to content

Commit

Permalink
fix: 修复 lint 错误
Browse files Browse the repository at this point in the history
  • Loading branch information
LokiSharp committed Oct 9, 2023
1 parent b21f2e2 commit 534fa91
Show file tree
Hide file tree
Showing 16 changed files with 19,058 additions and 15,131 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ extends:
- "plugin:@typescript-eslint/recommended"
- "plugin:@typescript-eslint/recommended-requiring-type-checking"
- "plugin:prettier/recommended"
- "prettier/@typescript-eslint"
- "prettier"
- "plugin:import/errors"
- "plugin:import/warnings"
- "plugin:import/typescript"
Expand All @@ -34,6 +34,7 @@ rules:
"@typescript-eslint/prefer-for-of": "error",
"@typescript-eslint/space-within-parens": ["off", "never"],
"@typescript-eslint/unified-signatures": "error",
"@typescript-eslint/no-unused-vars": "warn",
"arrow-parens": ["off", "as-needed"],
camelcase: "error",
complexity: "off",
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/RCL.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,24 @@ jobs:
strategy:
matrix:
os: [windows-2019]
node-version: [10.x]
node-version: [18.x]
RCL: ["RCL1ToRCL2", "RCL2ToRCL3", "RCL3ToRCL4", "RCL4ToRCL5", "RCL5ToRCL6", "RCL6ToRCL7", "RCL7ToRCL8"]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Get npm cache directory
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
- uses: actions/cache@v2
- uses: actions/cache@v3
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ matrix.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
Expand Down Expand Up @@ -62,7 +62,7 @@ jobs:
working-directory: RCLtest-result

- name: Update Result Artifact
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v3
with:
name: RCLresult
path: RCLtest-result
17 changes: 8 additions & 9 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,30 +7,29 @@ jobs:
strategy:
matrix:
os: [windows-2019]
node-version: [10.x, 12.x]
node-version: [10.x, 12.x, 14.x, 16.x, 18.x]

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}

- name: Get npm cache directory
id: npm-cache
run: |
echo "::set-output name=dir::$(npm config get cache)"
- uses: actions/cache@v2
- uses: actions/cache@v3
with:
path: ${{ steps.npm-cache.outputs.dir }}
key: ${{ matrix.os }}-python-${{ matrix.python-version }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
key: ${{ matrix.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ matrix.os }}-python-${{ matrix.python-version }}-node-${{ matrix.node-version }}
${{ matrix.os }}-python-${{ matrix.python-version }}-node-
${{ matrix.os }}-python-
${{ matrix.os }}-node-${{ matrix.node-version }}
${{ matrix.os }}-node-
${{ matrix.os }}-
- run: npm install
Expand All @@ -40,7 +39,7 @@ jobs:

- name: Update Code Artifact
if: ${{ always() }}
uses: actions/upload-artifact@v1
uses: actions/upload-artifact@v3
with:
name: dist
path: dist
Loading

0 comments on commit 534fa91

Please sign in to comment.