From da8ddd03f3de7f0408c429ebca2c0dbb086b5dfc Mon Sep 17 00:00:00 2001 From: EGOIST <0x142857@gmail.com> Date: Sat, 18 Jan 2020 21:43:20 +0800 Subject: [PATCH] fix: disable eslint in the file that requires es5 --- lib/index.js | 2 +- package.json | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/index.js b/lib/index.js index c93fd28..5e52e86 100644 --- a/lib/index.js +++ b/lib/index.js @@ -1,3 +1,4 @@ +/* eslint-disable */ Object.defineProperty(exports, '__esModule', { value: true }) function css(_) { @@ -11,7 +12,6 @@ function StyledVue(Vue) { render(h) { const globalStyle = this.$parent.$options.globalStyle(this.$parent) let css = '' - // eslint-disable-next-line guard-for-in for (const key in globalStyle) { css += key + ':' + globalStyle[key] + ';' } diff --git a/package.json b/package.json index ee01ef4..4075332 100644 --- a/package.json +++ b/package.json @@ -59,7 +59,8 @@ "jest" ], "rules": { - "unicorn/filename-case": "off" + "unicorn/filename-case": "off", + "unicorn/no-abusive-eslint-disable": "off" } }, "husky": {