Skip to content

Update ts-eslint #108

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 17, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/GHPages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
node-version: 14
- name: Install And Build
run: |+
npm install
npm install --legacy-peer-deps
npm run build
cd explorer-v2
npm install
npm install --legacy-peer-deps
npm run pre-build
npm run build
- name: Deploy
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/NodeCI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
with:
node-version: 14
- name: Install Packages
run: npm install
run: npm install --legacy-peer-deps
- name: Lint
run: npm run lint
test:
Expand All @@ -30,7 +30,7 @@ jobs:
with:
node-version: ${{ matrix.node-version }}
- name: Install Packages
run: npm install
run: npm install --legacy-peer-deps
- name: Test
run: npm test
test-for-ts-eslint-v4:
Expand All @@ -49,7 +49,7 @@ jobs:
npm i -D @typescript-eslint/parser@4 @typescript-eslint/eslint-plugin@4 --legacy-peer-deps
npx rimraf node_modules
- name: Install Packages
run: npm install
run: npm install --legacy-peer-deps
- name: Test
run: npm test
test-for-eslint-v7:
Expand All @@ -68,7 +68,7 @@ jobs:
npm i -D eslint@7 --legacy-peer-deps
npx rimraf node_modules
- name: Install Packages
run: npm install
run: npm install --legacy-peer-deps
- name: Test
run: npm test
test-and-coverage:
Expand All @@ -77,7 +77,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- name: Install Packages
run: npm install
run: npm install --legacy-peer-deps
- name: Test
run: npm run cover
- name: Coveralls GitHub Action
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/NpmPublish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
with:
registry-url: 'https://registry.npmjs.org'
- name: Install Packages
run: npm install
run: npm install --legacy-peer-deps
- name: test and build
run: |
npm run build
Expand Down
32 changes: 16 additions & 16 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -54,31 +54,31 @@
"@types/eslint-visitor-keys": "^1.0.0",
"@types/mocha": "^9.0.0",
"@types/node": "^16.0.0",
"@typescript-eslint/eslint-plugin": "^5.0.0",
"@typescript-eslint/parser": "^5.0.0",
"code-red": "^0.2.0",
"eslint": "^8.0.0",
"eslint-config-prettier": "^8.0.0",
"@typescript-eslint/eslint-plugin": "^5.4.0",
"@typescript-eslint/parser": "^5.4.0",
"code-red": "^0.2.3",
"eslint": "^8.2.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-eslint-comments": "^3.2.0",
"eslint-plugin-json-schema-validator": "^2.0.0",
"eslint-plugin-json-schema-validator": "^2.1.6",
"eslint-plugin-jsonc": "^2.0.0",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-node-dependencies": "^0.6.0",
"eslint-plugin-prettier": "^4.0.0",
"eslint-plugin-regexp": "^1.0.0",
"eslint-plugin-svelte3": "^3.2.0",
"eslint-plugin-vue": "^8.0.0",
"eslint-plugin-regexp": "^1.5.0",
"eslint-plugin-svelte3": "^3.2.1",
"eslint-plugin-vue": "^8.0.3",
"estree-walker": "^3.0.0",
"locate-character": "^2.0.5",
"magic-string": "^0.25.7",
"mocha": "^9.0.0",
"mocha": "^9.1.3",
"nyc": "^15.1.0",
"prettier": "^2.0.5",
"prettier-plugin-svelte": "^2.3.0",
"string-replace-loader": "^3.0.1",
"svelte": "^3.37.0",
"ts-node": "^10.0.0",
"typescript": "^4.0.0",
"vue-eslint-parser": "^8.0.0"
"prettier-plugin-svelte": "^2.5.0",
"string-replace-loader": "^3.0.3",
"svelte": "^3.44.1",
"ts-node": "^10.4.0",
"typescript": "~4.5.0-0",
"vue-eslint-parser": "^8.0.1"
}
}
3 changes: 3 additions & 0 deletions tests/src/parser/test-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@ export function nodeReplacer(key: string, value: any): any {
if (key === "parent") {
return undefined
}
if (key === "assertions" && Array.isArray(value) && value.length === 0) {
return undefined
}
if (value instanceof RegExp) {
return String(value)
}
Expand Down