From 5be9c7e4c4ac291cebd79c56d4b2daa52fd99c30 Mon Sep 17 00:00:00 2001 From: iapyang Date: Thu, 4 Jul 2019 14:13:06 +0800 Subject: [PATCH] =?UTF-8?q?KERNEL-801=20feat:=20=E8=BE=93=E5=87=BABI?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .eslintrc | 9 +++++++++ typescript/index.ts | 11 +++++++++++ 2 files changed, 20 insertions(+) diff --git a/.eslintrc b/.eslintrc index a9a557ccb..29c0b0a97 100644 --- a/.eslintrc +++ b/.eslintrc @@ -16,6 +16,15 @@ }, "plugins": ["@typescript-eslint"], "rules": { + "no-unused-vars": "off", + "@typescript-eslint/no-unused-vars": [ + "error", + { + "vars": "all", + "args": "none", + "ignoreRestSiblings": true + } + ], // 声明 "no-use-before-define": "error", //禁止定义前使用 diff --git a/typescript/index.ts b/typescript/index.ts index e69de29bb..ec8222707 100644 --- a/typescript/index.ts +++ b/typescript/index.ts @@ -0,0 +1,11 @@ +import { _addI18n, _i18nText } from "./core/i18n"; +import { _OB } from "./core/ob"; + +export declare module BI { + namespace i18n { + const addI18n: _addI18n; + const i18nText: _i18nText; + } + + const OB: _OB; +}