From 2c3b48ffcdc4fc13107aa171da63fcba1b5eaf56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=99=88=E5=98=89=E6=B6=B5?= Date: Sun, 5 May 2019 10:16:06 +0800 Subject: [PATCH] [bugfix] lint-staged should lint ts files --- package.json | 2 +- packages/overlay/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 706da4d49..c1825d59c 100644 --- a/package.json +++ b/package.json @@ -37,7 +37,7 @@ } }, "lint-staged": { - "*.{js,vue}": [ + "*.{ts,tsx,js,vue}": [ "eslint", "git add" ], diff --git a/packages/overlay/index.tsx b/packages/overlay/index.tsx index bd6323de5..02cedf261 100644 --- a/packages/overlay/index.tsx +++ b/packages/overlay/index.tsx @@ -1,5 +1,5 @@ import { use } from '../utils'; -import { emit, inherit } from '../utils/functional'; +import { inherit } from '../utils/functional'; // Types import { CreateElement, RenderContext } from 'vue/types';