File tree Expand file tree Collapse file tree 9 files changed +3668
-4992
lines changed
Expand file tree Collapse file tree 9 files changed +3668
-4992
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -15,10 +15,10 @@ jobs:
1515 strategy :
1616 matrix :
1717 node-version :
18- - 16.x
1918 - 18.x
19+ - 20.x
2020 steps :
21- - uses : actions/checkout@v2
21+ - uses : actions/checkout@v4
2222 - name : Use Node.js ${{ matrix.node-version }}
2323 uses : actions/setup-node@v1
2424 with :
2727 - run : npm run build
2828 - run : npm run bundlesize
2929 - name : Save build
30- if : matrix.node-version == '16 .x'
31- uses : actions/upload-artifact@v2
30+ if : matrix.node-version == '18 .x'
31+ uses : actions/upload-artifact@v4
3232 with :
3333 name : build
3434 path : |
4141 runs-on : ubuntu-latest
4242 if : github.ref == 'refs/heads/main'
4343 steps :
44- - uses : actions/download-artifact@v2
44+ - uses : actions/download-artifact@v4
4545 with :
4646 name : build
4747 - run : rm .gitignore
5454 needs : build
5555 runs-on : ubuntu-latest
5656 steps :
57- - uses : actions/download-artifact@v2
57+ - uses : actions/download-artifact@v4
5858 with :
5959 name : build
6060 - uses : actions/setup-node@v1
7575 runs-on : ubuntu-latest
7676 if : github.ref == 'refs/heads/main'
7777 steps :
78- - uses : actions/download-artifact@v2
78+ - uses : actions/download-artifact@v4
7979 with :
8080 name : build
8181 - uses : actions/setup-node@v1
Original file line number Diff line number Diff line change 1+ import typescriptEslint from "@typescript-eslint/eslint-plugin" ;
2+ import globals from "globals" ;
3+ import tsParser from "@typescript-eslint/parser" ;
4+
5+ export default [ {
6+ ignores : [ "**/dist" ] ,
7+ } , {
8+ plugins : {
9+ "@typescript-eslint" : typescriptEslint ,
10+ } ,
11+
12+ languageOptions : {
13+ globals : {
14+ ...globals . browser ,
15+ ...globals . node ,
16+ Atomics : "readonly" ,
17+ SharedArrayBuffer : "readonly" ,
18+ } ,
19+
20+ parser : tsParser ,
21+ } ,
22+ files : [ "src/**/*.ts" ] ,
23+ rules : {
24+ "no-unused-vars" : [ "warn" , {
25+ argsIgnorePattern : "^_" ,
26+ varsIgnorePattern : "^_" ,
27+ } ] ,
28+
29+ "@typescript-eslint/no-unused-vars" : [ "warn" , {
30+ argsIgnorePattern : "^_" ,
31+ varsIgnorePattern : "^_" ,
32+ } ] ,
33+ } ,
34+ } ] ;
You can’t perform that action at this time.
0 commit comments