Skip to content

Commit 7e85624

Browse files
authored
Update ts-eslint (#108)
* Update ts-eslint * Update * update
1 parent 154a0fb commit 7e85624

File tree

5 files changed

+27
-24
lines changed

5 files changed

+27
-24
lines changed

.github/workflows/GHPages.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ jobs:
1414
node-version: 14
1515
- name: Install And Build
1616
run: |+
17-
npm install
17+
npm install --legacy-peer-deps
1818
npm run build
1919
cd explorer-v2
20-
npm install
20+
npm install --legacy-peer-deps
2121
npm run pre-build
2222
npm run build
2323
- name: Deploy

.github/workflows/NodeCI.yml

+5-5
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
with:
1616
node-version: 14
1717
- name: Install Packages
18-
run: npm install
18+
run: npm install --legacy-peer-deps
1919
- name: Lint
2020
run: npm run lint
2121
test:
@@ -30,7 +30,7 @@ jobs:
3030
with:
3131
node-version: ${{ matrix.node-version }}
3232
- name: Install Packages
33-
run: npm install
33+
run: npm install --legacy-peer-deps
3434
- name: Test
3535
run: npm test
3636
test-for-ts-eslint-v4:
@@ -49,7 +49,7 @@ jobs:
4949
npm i -D @typescript-eslint/parser@4 @typescript-eslint/eslint-plugin@4 --legacy-peer-deps
5050
npx rimraf node_modules
5151
- name: Install Packages
52-
run: npm install
52+
run: npm install --legacy-peer-deps
5353
- name: Test
5454
run: npm test
5555
test-for-eslint-v7:
@@ -68,7 +68,7 @@ jobs:
6868
npm i -D eslint@7 --legacy-peer-deps
6969
npx rimraf node_modules
7070
- name: Install Packages
71-
run: npm install
71+
run: npm install --legacy-peer-deps
7272
- name: Test
7373
run: npm test
7474
test-and-coverage:
@@ -77,7 +77,7 @@ jobs:
7777
- uses: actions/checkout@v2
7878
- uses: actions/setup-node@v2
7979
- name: Install Packages
80-
run: npm install
80+
run: npm install --legacy-peer-deps
8181
- name: Test
8282
run: npm run cover
8383
- name: Coveralls GitHub Action

.github/workflows/NpmPublish.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
with:
1616
registry-url: 'https://registry.npmjs.org'
1717
- name: Install Packages
18-
run: npm install
18+
run: npm install --legacy-peer-deps
1919
- name: test and build
2020
run: |
2121
npm run build

package.json

+16-16
Original file line numberDiff line numberDiff line change
@@ -54,31 +54,31 @@
5454
"@types/eslint-visitor-keys": "^1.0.0",
5555
"@types/mocha": "^9.0.0",
5656
"@types/node": "^16.0.0",
57-
"@typescript-eslint/eslint-plugin": "^5.0.0",
58-
"@typescript-eslint/parser": "^5.0.0",
59-
"code-red": "^0.2.0",
60-
"eslint": "^8.0.0",
61-
"eslint-config-prettier": "^8.0.0",
57+
"@typescript-eslint/eslint-plugin": "^5.4.0",
58+
"@typescript-eslint/parser": "^5.4.0",
59+
"code-red": "^0.2.3",
60+
"eslint": "^8.2.0",
61+
"eslint-config-prettier": "^8.3.0",
6262
"eslint-plugin-eslint-comments": "^3.2.0",
63-
"eslint-plugin-json-schema-validator": "^2.0.0",
63+
"eslint-plugin-json-schema-validator": "^2.1.6",
6464
"eslint-plugin-jsonc": "^2.0.0",
6565
"eslint-plugin-node": "^11.1.0",
6666
"eslint-plugin-node-dependencies": "^0.6.0",
6767
"eslint-plugin-prettier": "^4.0.0",
68-
"eslint-plugin-regexp": "^1.0.0",
69-
"eslint-plugin-svelte3": "^3.2.0",
70-
"eslint-plugin-vue": "^8.0.0",
68+
"eslint-plugin-regexp": "^1.5.0",
69+
"eslint-plugin-svelte3": "^3.2.1",
70+
"eslint-plugin-vue": "^8.0.3",
7171
"estree-walker": "^3.0.0",
7272
"locate-character": "^2.0.5",
7373
"magic-string": "^0.25.7",
74-
"mocha": "^9.0.0",
74+
"mocha": "^9.1.3",
7575
"nyc": "^15.1.0",
7676
"prettier": "^2.0.5",
77-
"prettier-plugin-svelte": "^2.3.0",
78-
"string-replace-loader": "^3.0.1",
79-
"svelte": "^3.37.0",
80-
"ts-node": "^10.0.0",
81-
"typescript": "^4.0.0",
82-
"vue-eslint-parser": "^8.0.0"
77+
"prettier-plugin-svelte": "^2.5.0",
78+
"string-replace-loader": "^3.0.3",
79+
"svelte": "^3.44.1",
80+
"ts-node": "^10.4.0",
81+
"typescript": "~4.5.0-0",
82+
"vue-eslint-parser": "^8.0.1"
8383
}
8484
}

tests/src/parser/test-utils.ts

+3
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,9 @@ export function nodeReplacer(key: string, value: any): any {
164164
if (key === "parent") {
165165
return undefined
166166
}
167+
if (key === "assertions" && Array.isArray(value) && value.length === 0) {
168+
return undefined
169+
}
167170
if (value instanceof RegExp) {
168171
return String(value)
169172
}

0 commit comments

Comments
 (0)