-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix minor TypeScript issues and add ESLint TypeScript support (#418)
* Fix "Cannot find module" errors in TypeScript test files * Add "../../types/" as type package to **/test/typescript/tsconfig.json * Add ESLint TypeScript support * Remove directory tsconfig.json files * Add project root tsconfig.json files * Add eslint dev dependencies to fabric-shim-api project * Modify lint script in package.json files to check TypeScript files * Fix fabric-content-api project code format * Set max-len rule to warning for index.d.ts files * Fix fabric-shim-api project code format * Suppress some TypeScript ESLint rules globally * Fix fabric-shim project code format Signed-off-by: Jerrylum <[email protected]>
- Loading branch information
Showing
20 changed files
with
230 additions
and
273 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
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 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,26 @@ | ||
/* | ||
* Copyright 2020 IBM All Rights Reserved. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
{ | ||
"compilerOptions": { | ||
"types": ["./types/"], | ||
"alwaysStrict": true, | ||
"module": "commonjs", | ||
"declaration": true, | ||
"sourceMap": true, | ||
"strict": true, | ||
"target": "es2017", | ||
"lib": [ | ||
"esnext", | ||
] | ||
}, | ||
"include": [ | ||
"lib/**/*", | ||
"test/**/*" | ||
], | ||
"exclude": [ | ||
"node_modules/**/*" | ||
] | ||
} |
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 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
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,25 @@ | ||
/* | ||
* Copyright 2020 IBM All Rights Reserved. | ||
* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
*/ | ||
{ | ||
"compilerOptions": { | ||
"types": ["./types/"], | ||
"alwaysStrict": true, | ||
"module": "commonjs", | ||
"declaration": true, | ||
"sourceMap": true, | ||
"strict": true, | ||
"target": "es2017", | ||
"lib": [ | ||
"esnext", | ||
] | ||
}, | ||
"files": [ | ||
"types/index.d.ts" | ||
], | ||
"exclude": [ | ||
"node_modules/**/*" | ||
] | ||
} |
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 was deleted.
Oops, something went wrong.
Oops, something went wrong.