This repository has been archived by the owner on Oct 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #41 from gund/fix-eslint-bc
[Fix] ESlint backwards compatibility support
- Loading branch information
Showing
2 changed files
with
36 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,12 +5,45 @@ notifications: | |
node_js: lts/* | ||
stages: | ||
- test | ||
- build | ||
jobs: | ||
include: | ||
- stage: test | ||
name: 'Test ESLint Current' | ||
script: | ||
- npm run format:check | ||
- npm run test | ||
- stage: test | ||
name: 'Test ESLint v7' | ||
script: | ||
- npm i eslint@^7 @typescript-eslint/parser@^4 @typescript-eslint/eslint-plugin@^4 | ||
- | | ||
cat package-lock.json | grep -A 1 \ | ||
-e "\"eslint\": {" \ | ||
-e "\"@typescript-eslint/parser\": {" \ | ||
-e "\"@typescript-eslint/eslint-plugin\": {" | ||
- npm run test | ||
- stage: test | ||
name: 'Test ESLint v6' | ||
script: | ||
- npm i eslint@^6 @typescript-eslint/parser@^3 @typescript-eslint/eslint-plugin@^3 | ||
- | | ||
cat package-lock.json | grep -A 1 \ | ||
-e "\"eslint\": {" \ | ||
-e "\"@typescript-eslint/parser\": {" \ | ||
-e "\"@typescript-eslint/eslint-plugin\": {" | ||
- npm run test | ||
- stage: test | ||
name: 'Test Typescript v3.7.5' | ||
script: | ||
- npm i [email protected] | ||
- | | ||
cat package-lock.json | grep -A 1 \ | ||
-e "\"typescript\": {" | ||
- npm run test | ||
- stage: build | ||
name: 'Build and Release' | ||
script: | ||
- npm run build | ||
deploy: | ||
provider: script | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters