From 5e462d53e7687a21271e23afe8d02f55129ea873 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristj=C3=A1n=20Oddsson?= Date: Wed, 6 Nov 2019 16:55:17 +0000 Subject: [PATCH 1/8] replace the babel compiler with the typscript compiler --- .eslintrc.json | 10 +- examples/index.html | 2 +- package-lock.json | 4779 ++++------------- package.json | 27 +- rollup.config.js | 23 - .../textarea-autosize.js | 0 index.d.ts => textarea-autosize.d.ts | 4 +- tsconfig.json | 15 + 8 files changed, 938 insertions(+), 3922 deletions(-) delete mode 100644 rollup.config.js rename textarea-autosize.js => src/textarea-autosize.js (100%) rename index.d.ts => textarea-autosize.d.ts (70%) create mode 100644 tsconfig.json diff --git a/.eslintrc.json b/.eslintrc.json index 5720e75..cedbbe1 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -1,4 +1,8 @@ { - "extends": ["plugin:github/es6", "plugin:github/browser"], - "parser": "babel-eslint" -} + "extends": [ + "plugin:github/es6", + "plugin:github/browser", + "plugin:github/typescript" + ], + "parser": "@typescript-eslint/parser" +} \ No newline at end of file diff --git a/examples/index.html b/examples/index.html index f525fa0..570811b 100644 --- a/examples/index.html +++ b/examples/index.html @@ -44,7 +44,7 @@