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 1/3] 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": { From 536941514441c9b410d400ea2873f00c027b3f04 Mon Sep 17 00:00:00 2001 From: EGOIST <0x142857@gmail.com> Date: Sat, 18 Jan 2020 21:45:37 +0800 Subject: [PATCH 2/3] fix: disable prettier for lib/index.js --- lib/index.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/index.js b/lib/index.js index 5e52e86..a8ba980 100644 --- a/lib/index.js +++ b/lib/index.js @@ -9,10 +9,10 @@ function css(_) { function StyledVue(Vue) { Vue.component('styled-vue-global-css', { - render(h) { - const globalStyle = this.$parent.$options.globalStyle(this.$parent) - let css = '' - for (const key in globalStyle) { + render: function(h) { + var globalStyle = this.$parent.$options.globalStyle(this.$parent) + var css = '' + for (var key in globalStyle) { css += key + ':' + globalStyle[key] + ';' } return h('style', {}, [':root {' + css + '}']) From da70135675d48f015b23a1bdf1e78e3dcc85a3bd Mon Sep 17 00:00:00 2001 From: Kevin Titor <0x142857@gmail.com> Date: Wed, 20 May 2020 18:33:44 +0800 Subject: [PATCH 3/3] chore: add note --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 981edf4..1e48ad5 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +## ATTENTION: this project is not actively maintained for now (I still push some code once in a while), if you want to see improvements or get support, please consider [sponsoring me](https://github.com/sponsors/egoist). + ![styled-vue](https://user-images.githubusercontent.com/8784712/50833110-30b41180-138b-11e9-9ddd-20af6afc1747.png) ---