Lint and typecheck TypeScript (#1276)
Summary: Pull Request resolved: https://github.com/facebook/yoga/pull/1276 This change starts to enlighten linting and other repo configuration to TypeScript. This was previously special-cased out of linting, and meant we were not linting everything. It is also a precondition to do real typechecking and linting our definitions with type information. 1. Add TypeScript dependencies 1. Configure ESLint, Babel, tsc for TypeScript 1. Run tsc as part of linting (OSS only for now) This is continued in another change with adding types to scripts and config files, but more importantly converting hand-written tests and test generation to TypeScript, so we get real-world usage to typecheck against for testing. Differential Revision: D45508576 fbshipit-source-id: ef5344b52c851d075194645d01d40b7507392a3c
This commit is contained in:
committed by
Facebook GitHub Bot
parent
d1e7ad4b3a
commit
0d2a3a92ac
@@ -8,7 +8,8 @@
|
||||
*/
|
||||
|
||||
module.exports = {
|
||||
"presets": [
|
||||
["@babel/preset-env", {"targets": "defaults"}]
|
||||
presets: [
|
||||
["@babel/preset-env", { targets: "defaults" }],
|
||||
"@babel/preset-typescript",
|
||||
],
|
||||
};
|
||||
|
Reference in New Issue
Block a user