Skip to content

Commit

Permalink
Babel 7 and TypeScript support (not-an-aardvark#200)
Browse files Browse the repository at this point in the history
* Added TS entrypoint in `package.json`
* Added JS script for copying over d.ts files
* Added npm script for type-checking TS files
* Added npm script for generating .d.ts files from .ts files
* Added TS-ESLint plugin and parser
* Added TS definition files from DefinitelyTyped

* Updated to Babel 7 - including plugins
* Updated compile script to type-check, compile, and copy d.ts files
* Updated ESLint to work with TS
  • Loading branch information
Eric authored Aug 2, 2019
1 parent 957964c commit 0ca7de3
Show file tree
Hide file tree
Showing 27 changed files with 9,847 additions and 123 deletions.
21 changes: 11 additions & 10 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
{
"ignore": ["**/*.d.ts"],
"plugins": [
"lodash",
"transform-async-to-generator",
"transform-es2015-arrow-functions",
"transform-es2015-block-scoping",
"transform-es2015-destructuring",
"transform-es2015-modules-commonjs",
"transform-es2015-parameters",
"transform-es2015-spread",
"transform-es2015-template-literals",
"transform-object-rest-spread"
"@babel/plugin-transform-typescript",
"@babel/plugin-transform-async-to-generator",
"@babel/plugin-transform-arrow-functions",
"@babel/plugin-transform-block-scoping",
"@babel/plugin-transform-destructuring",
"@babel/plugin-transform-modules-commonjs",
"@babel/plugin-transform-parameters",
"@babel/plugin-transform-spread",
"@babel/plugin-transform-template-literals",
"@babel/plugin-proposal-object-rest-spread"
]
}
3 changes: 3 additions & 0 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,9 +108,12 @@ extends:
plugins:
- import
- promise
- '@typescript-eslint'

root: true

parser: "@typescript-eslint/parser"

parserOptions:
ecmaVersion: 2017
sourceType: module
Expand Down
Loading

0 comments on commit 0ca7de3

Please sign in to comment.