-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(FEC-13371): Refactor: Migrate to TypeScript (from Flow) (#254)
Refactor: Migrate to TypeScript (from Flow) Related PRs kaltura/kaltura-player-js#661 kaltura/playkit-js#726 kaltura/playkit-js-providers#225 kaltura/playkit-js-ui#815 kaltura/playkit-js-hls#213 kaltura/playkit-js-browserslist-config#1 solves FEC-13371 --------- Co-authored-by: JonathanTGold <[email protected]>
- Loading branch information
1 parent
cfa429b
commit 3020710
Showing
48 changed files
with
5,997 additions
and
6,591 deletions.
There are no files selected for viewing
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,26 +1,69 @@ | ||
{ | ||
"parser": "babel-eslint", | ||
"extends": ["eslint:recommended", "plugin:flowtype/recommended"], | ||
"plugins": ["prettier", "import", "flowtype", "mocha-no-only"], | ||
"env": { | ||
"browser": true, | ||
"es6": true, | ||
"mocha": true, | ||
"amd": true, | ||
"commonjs": true | ||
"root": true, | ||
"parser": "@typescript-eslint/parser", | ||
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"], | ||
"plugins": ["@typescript-eslint"], | ||
"rules": { | ||
"indent": ["error", 2], | ||
"react/prefer-stateless-function": "off", | ||
"max-len": ["warn", {"code": 500}], | ||
"eol-last": "off", | ||
"prettier/prettier": "off", | ||
"@typescript-eslint/explicit-function-return-type": "warn", | ||
"@typescript-eslint/no-non-null-assertion": "off", | ||
"@typescript-eslint/no-unused-vars": "error", | ||
"@typescript-eslint/no-explicit-any": "off", | ||
"@typescript-eslint/explicit-member-accessibility": [ | ||
"error", | ||
{ | ||
"accessibility": "explicit", | ||
"overrides": { | ||
"accessors": "explicit", | ||
"constructors": "no-public", | ||
"methods": "explicit", | ||
"properties": "explicit", | ||
"parameterProperties": "explicit" | ||
} | ||
} | ||
], | ||
"@typescript-eslint/ban-types": [ | ||
"error", | ||
{ | ||
"extendDefaults": true, | ||
"types": { | ||
"Function": false // Overrides the rule for "Function" type only | ||
} | ||
} | ||
], | ||
"block-scoped-var": "error", | ||
"eqeqeq": "error", | ||
"no-var": "error", | ||
"no-console": "error", | ||
"prefer-const": "error", | ||
"prefer-arrow-callback": "error", | ||
"no-trailing-spaces": "error", | ||
"quotes": ["warn", "single", {"avoidEscape": true}], | ||
"no-restricted-properties": [ | ||
"error", | ||
{ | ||
"object": "describe", | ||
"property": "only" | ||
}, | ||
{ | ||
"object": "it", | ||
"property": "only" | ||
} | ||
] | ||
}, | ||
"globals": { | ||
"should": true, | ||
"sinon": true, | ||
"__VERSION__": true, | ||
"__NAME__": true, | ||
"process": true, | ||
"__dirname": true | ||
"overrides": [], | ||
"settings": { | ||
"jest": { | ||
"version": 26 | ||
} | ||
}, | ||
"rules": { | ||
"prettier/prettier": "error", | ||
"mocha-no-only/mocha-no-only": "off", | ||
"require-jsdoc": ["error"], | ||
"valid-jsdoc": ["error"] | ||
"env": { | ||
"browser": true, | ||
"commonjs": true, | ||
"es6": true | ||
} | ||
} |
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 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
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 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,37 @@ | ||
{ | ||
"$schema": "https://developer.microsoft.com/json-schemas/api-extractor/v7/api-extractor.schema.json", | ||
"mainEntryPointFilePath": "<projectFolder>/lib/index.d.ts", | ||
"bundledPackages": [], | ||
"compiler": {}, | ||
"apiReport": { | ||
"enabled": true, | ||
"reportFolder": "<projectFolder>/api-extractor/report", | ||
"reportTempFolder": "<projectFolder>/api-extractor/report-temp" | ||
}, | ||
"docModel": { | ||
"enabled": true, | ||
"apiJsonFilePath": "<projectFolder>/api-extractor/<unscopedPackageName>.api.json" | ||
}, | ||
"dtsRollup": { | ||
"enabled": true, | ||
"untrimmedFilePath": "<projectFolder>/dist/<unscopedPackageName>.d.ts" | ||
}, | ||
"tsdocMetadata": {}, | ||
"messages": { | ||
"compilerMessageReporting": { | ||
"default": { | ||
"logLevel": "warning" | ||
} | ||
}, | ||
"extractorMessageReporting": { | ||
"default": { | ||
"logLevel": "warning" | ||
} | ||
}, | ||
"tsdocMessageReporting": { | ||
"default": { | ||
"logLevel": "warning" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.