Skip to content

Commit

Permalink
Use babel for typescript compilation with minimal changes (#1738)
Browse files Browse the repository at this point in the history
  • Loading branch information
chuckdries committed Jun 25, 2021
1 parent 4c471b0 commit 66f1152
Show file tree
Hide file tree
Showing 6 changed files with 1,043 additions and 28,111 deletions.
4 changes: 2 additions & 2 deletions .babelrc.js
Expand Up @@ -3,7 +3,7 @@ const cjs = NODE_ENV === 'test' || BABEL_ENV === 'commonjs'
const loose = true

module.exports = {
presets: [['@babel/env', { loose, modules: false }]],
presets: [['@babel/env', { loose, modules: false }], '@babel/preset-typescript'],
plugins: [
['@babel/proposal-decorators', { legacy: true }],
['@babel/proposal-object-rest-spread', { loose }],
Expand All @@ -18,5 +18,5 @@ module.exports = {
].replace(/^[^0-9]*/, '')
}
]
].filter(Boolean)
].filter(Boolean),
}
9 changes: 8 additions & 1 deletion .eslintrc
@@ -1,14 +1,20 @@
{
"parser": "babel-eslint",
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
"plugin:import/recommended",
"plugin:react/recommended",
"plugin:prettier/recommended"
// "plugin:@typescript-eslint/recommended"
],
"settings": {
"react": {
"version": "detect"
},
"import/resolver": {
"node": {
"extensions": [".js", ".ts"]
}
}
},
"parserOptions": {
Expand All @@ -32,6 +38,7 @@
"react/no-string-refs": 0
},
"plugins": [
"@typescript-eslint",
"import",
"react"
]
Expand Down

0 comments on commit 66f1152

Please sign in to comment.