-
-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add ts-standard linter for ts standard
Signed-off-by: Josef Andersson <[email protected]>
- Loading branch information
1 parent
983cd46
commit bae6bbd
Showing
50 changed files
with
18,790 additions
and
18,636 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
8 changes: 0 additions & 8 deletions
8
.automation/test/typescript/reports/ERROR-TYPESCRIPT_STANDARD.txt
This file was deleted.
Oops, something went wrong.
7 changes: 0 additions & 7 deletions
7
.automation/test/typescript/reports/expected-TYPESCRIPT_STANDARD.tap
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"compilerOptions": { | ||
"noImplicitAny": true, | ||
"strictNullChecks": true | ||
}, | ||
"files": [ | ||
"typescript_bad_1.ts", | ||
"typescript_good_1.ts", | ||
"typescript_fix_1.ts", | ||
] | ||
} |
2 changes: 1 addition & 1 deletion
2
.automation/test/typescript/typescript_fix_1.ts
100644 → 100755
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
const str: String = 'foo'; | ||
console.log(str) | ||
console.log(str) |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
const spiderman = (person) => { | ||
const spiderman = (person: string): string => { | ||
return 'Hello, ' + person | ||
} | ||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"name": "test", | ||
"version": "1.0.0", | ||
"description": "This folder holds the test cases for **Typescript**.", | ||
"main": "index.js", | ||
"scripts": { | ||
"test": "echo \"Error: no test specified\" && exit 1" | ||
}, | ||
"author": "", | ||
"license": "ISC" | ||
} |
8 changes: 8 additions & 0 deletions
8
.automation/test/typescript_ts_standard/reports/ERROR-TYPESCRIPT_TS_STANDARD.txt
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
Results of standard linter (version 15.0.1) | ||
See documentation on https://megalinter.io/descriptors/typescript_ts_standard/ | ||
----------------------------------------------- | ||
|
||
[ERROR] .automation/test/typescript_ts_standard/typescript_bad_1.ts | ||
ts-standard: Use TypeScript Standard Style (https://standardjs.com) | ||
.automation/test/typescript_ts_standard/typescript_bad_1.ts:5:39: Parsing error: Unterminated regular expression literal. | ||
|
4 changes: 2 additions & 2 deletions
4
...t/reports/SUCCESS-TYPESCRIPT_STANDARD.txt → ...eports/SUCCESS-TYPESCRIPT_TS_STANDARD.txt
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Results of standard linter (version 15.0.1) | ||
See documentation on https://megalinter.io/descriptors/typescript_standard/ | ||
See documentation on https://megalinter.io/descriptors/typescript_ts_standard/ | ||
----------------------------------------------- | ||
|
||
[SUCCESS] .automation/test/typescript/typescript_good_1.ts | ||
[SUCCESS] .automation/test/typescript_ts_standard/typescript_good_1.ts | ||
|
||
|
Empty file.
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 |
---|---|---|
@@ -0,0 +1,11 @@ | ||
{ | ||
"compilerOptions": { | ||
"noImplicitAny": true, | ||
"strictNullChecks": true | ||
}, | ||
"files": [ | ||
"typescript_bad_1.ts", | ||
"typescript_good_1.ts", | ||
"typescript_fix_1.ts", | ||
] | ||
} |
File renamed without changes.
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
const str: String = 'foo'; | ||
console.log(str) |
2 changes: 1 addition & 1 deletion
2
...tion/test/typescript/typescript_good_2.ts → ...pescript_ts_standard/typescript_good_1.ts
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
const spiderman = (person) => { | ||
const spiderman = (person: string): string => { | ||
return 'Hello, ' + person | ||
} | ||
|
||
|
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
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
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
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
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
Oops, something went wrong.