From c7d0536ffd5c8bc160a42afa08d0f920ca8d5c1b Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Mon, 22 Mar 2021 12:12:34 +0000 Subject: [PATCH 1/2] Update dependency @ota-meshi/eslint-plugin to ^0.5.0 --- package-lock.json | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2d679e3c..916754e4 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2594,9 +2594,9 @@ } }, "@ota-meshi/eslint-plugin": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/@ota-meshi/eslint-plugin/-/eslint-plugin-0.4.0.tgz", - "integrity": "sha512-l08ImbTXOKOcxdi8Tt2bXVA2TQK5oOwEGHp7Be6nPeyzknPzqoWubOrPRklMmtqlAJRtljXnqEFbR0aw/D6uoA==", + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/@ota-meshi/eslint-plugin/-/eslint-plugin-0.5.0.tgz", + "integrity": "sha512-rZ8X+tLxhKrRX0P9ibZOTrKMEqEZCOqbfvNNiHmLpqkFDeQ0mWcKpeiMVcgTXYCqFbkuThA1yzFUFMCkgTL7PQ==", "dev": true, "requires": { "semver": "^7.3.4" diff --git a/package.json b/package.json index 969b4974..394c822d 100644 --- a/package.json +++ b/package.json @@ -46,7 +46,7 @@ "dist" ], "devDependencies": { - "@ota-meshi/eslint-plugin": "^0.4.0", + "@ota-meshi/eslint-plugin": "^0.5.0", "@types/eslint": "^7.2.0", "@types/eslint-visitor-keys": "^1.0.0", "@types/estree": "^0.0.46", From fd70887c4007f24255e1f0e9a7e609e044a31bdf Mon Sep 17 00:00:00 2001 From: yosuke ota Date: Mon, 22 Mar 2021 23:51:29 +0900 Subject: [PATCH 2/2] fix --- lib/rules/no-unused-keyframes.ts | 4 ++-- lib/styles/template/scss/util.ts | 2 +- tools/update-docs.ts | 2 +- tools/update-readme.ts | 5 +---- 4 files changed, 5 insertions(+), 8 deletions(-) diff --git a/lib/rules/no-unused-keyframes.ts b/lib/rules/no-unused-keyframes.ts index 5ae45de5..5d1d27d5 100644 --- a/lib/rules/no-unused-keyframes.ts +++ b/lib/rules/no-unused-keyframes.ts @@ -88,11 +88,11 @@ module.exports = { } } else if (node.type === "VCSSDeclarationProperty") { // individual animation-name declaration - if (/^(-\w+-)?animation-name$/u.test(node.property)) { + if (/^(?:-\w+-)?animation-name$/u.test(node.property)) { animationNames.push(node) } // shorthand - if (/^(-\w+-)?animation$/u.test(node.property)) { + if (/^(?:-\w+-)?animation$/u.test(node.property)) { animations.push(node) } } diff --git a/lib/styles/template/scss/util.ts b/lib/styles/template/scss/util.ts index a6fc9032..c91a5659 100644 --- a/lib/styles/template/scss/util.ts +++ b/lib/styles/template/scss/util.ts @@ -26,7 +26,7 @@ export function processValue(text: string): (Interpolation | string)[] { const elements = [] const value = text let start = 0 - const reg = /(#\{[\s\S]*?\})|\$[\w\d-]+/gu + const reg = /#\{[\s\S]*?\}|\$[\w\d-]+/gu let re = null while ((re = reg.exec(value))) { elements.push(value.slice(start, re.index)) diff --git a/tools/update-docs.ts b/tools/update-docs.ts index 57181ef4..cb699a5e 100644 --- a/tools/update-docs.ts +++ b/tools/update-docs.ts @@ -159,7 +159,7 @@ class DocFile { public adjustCodeBlocks() { // Adjust the necessary blank lines before and after the code block so that GitHub can recognize `.md`. this.content = this.content.replace( - /()\n+```/gmu, + /()\n+```/gmu, "$1\n\n```", ) this.content = this.content.replace( diff --git a/tools/update-readme.ts b/tools/update-readme.ts index dc24bd53..4af252ad 100644 --- a/tools/update-readme.ts +++ b/tools/update-readme.ts @@ -38,10 +38,7 @@ fs.writeFileSync( /[\s\S]*/u, "See [User Guide](./user-guide/README.md).", ) - .replace( - /([\s\S]*?)/gu, - "", - ) + .replace(/[\s\S]*?/gu, "") .replace( /\(https:\/\/future-architect.github.io\/eslint-plugin-vue-scoped-css/gu, "(.",