From 899d4c41ecf936e3edbf43c53642fe9650f5b8a4 Mon Sep 17 00:00:00 2001 From: ybiquitous Date: Fri, 22 Dec 2017 17:14:28 +0900 Subject: [PATCH] feat(package): update `eslint-config-ybiquitous` to version 4.2.1 --- package.json | 2 +- src/init.js | 4 ++-- test/init.test.js | 8 ++++---- yarn.lock | 24 +++++++++++++++++++----- 4 files changed, 26 insertions(+), 12 deletions(-) diff --git a/package.json b/package.json index 9935d636..7897eefa 100644 --- a/package.json +++ b/package.json @@ -33,7 +33,7 @@ "@commitlint/cli": "^5.2.6", "@commitlint/config-conventional": "^5.2.3", "eslint": "^4.13.1", - "eslint-config-ybiquitous": "^4.0.0", + "eslint-config-ybiquitous": "^4.2.1", "fs-extra": "^5.0.0", "husky": "^0.14.3", "lint-staged": "^6.0.0", diff --git a/src/init.js b/src/init.js index 6221565e..c1531189 100644 --- a/src/init.js +++ b/src/init.js @@ -72,7 +72,7 @@ class Init { `module.exports = { root: true, extends: ['ybiquitous'], -}`, +}` ) } @@ -81,7 +81,7 @@ class Init { 'commitlint.config.js', `module.exports = { extends: ['@commitlint/config-conventional'], -}`, +}` ) } } diff --git a/test/init.test.js b/test/init.test.js index ed004aca..1ab98c4b 100644 --- a/test/init.test.js +++ b/test/init.test.js @@ -79,7 +79,7 @@ suite('init', () => { const original = await fs.readFile( path.join(originalDir, '.editorconfig'), - 'utf8', + 'utf8' ) const copy = await fs.readFile(path.join(workDir, '.editorconfig'), 'utf8') assert(original === copy) @@ -95,7 +95,7 @@ suite('init', () => { root: true, extends: ['ybiquitous'], } -`, +` ) }) @@ -104,14 +104,14 @@ suite('init', () => { const wrote = await fs.readFile( path.join(workDir, 'commitlint.config.js'), - 'utf8', + 'utf8' ) assert( wrote === `module.exports = { extends: ['@commitlint/config-conventional'], } -`, +` ) }) diff --git a/yarn.lock b/yarn.lock index 7a500740..3c85fd05 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1472,9 +1472,9 @@ eslint-config-prettier@^2.9.0: dependencies: get-stdin "^5.0.1" -eslint-config-ybiquitous@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/eslint-config-ybiquitous/-/eslint-config-ybiquitous-4.0.0.tgz#d55c93bd91ce87ceaed4b12f1bd30dbe7444f1ab" +eslint-config-ybiquitous@^4.2.1: + version "4.2.1" + resolved "https://registry.yarnpkg.com/eslint-config-ybiquitous/-/eslint-config-ybiquitous-4.2.1.tgz#b86df8fbfab83e260c28e215b5a9d1df245796f8" dependencies: eslint-config-airbnb "^16.0.0" eslint-config-prettier "^2.9.0" @@ -1482,6 +1482,7 @@ eslint-config-ybiquitous@^4.0.0: eslint-plugin-eslint-comments "^2.0.1" eslint-plugin-import "^2.7.0" eslint-plugin-jsx-a11y "^6.0.2" + eslint-plugin-node "^5.2.1" eslint-plugin-prettier "^2.3.1" eslint-plugin-react "^7.4.0" @@ -1542,6 +1543,15 @@ eslint-plugin-jsx-a11y@^6.0.2: emoji-regex "^6.1.0" jsx-ast-utils "^1.4.0" +eslint-plugin-node@^5.2.1: + version "5.2.1" + resolved "https://registry.yarnpkg.com/eslint-plugin-node/-/eslint-plugin-node-5.2.1.tgz#80df3253c4d7901045ec87fa660a284e32bdca29" + dependencies: + ignore "^3.3.6" + minimatch "^3.0.4" + resolve "^1.3.3" + semver "5.3.0" + eslint-plugin-prettier@^2.3.1: version "2.3.1" resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-2.3.1.tgz#e7a746c67e716f335274b88295a9ead9f544e44d" @@ -2152,7 +2162,7 @@ iconv-lite@^0.4.17, iconv-lite@~0.4.13: version "0.4.19" resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.19.tgz#f7468f60135f5e5dad3399c0a81be9a1603a082b" -ignore@^3.3.3, ignore@^3.3.7: +ignore@^3.3.3, ignore@^3.3.6, ignore@^3.3.7: version "3.3.7" resolved "https://registry.yarnpkg.com/ignore/-/ignore-3.3.7.tgz#612289bfb3c220e186a58118618d5be8c1bab021" @@ -3624,7 +3634,7 @@ resolve-global@^0.1.0: dependencies: global-dirs "^0.1.0" -resolve@^1.2.0: +resolve@^1.2.0, resolve@^1.3.3: version "1.5.0" resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.5.0.tgz#1f09acce796c9a762579f31b2c1cc4c3cddf9f36" dependencies: @@ -3686,6 +3696,10 @@ safe-buffer@^5.0.1, safe-buffer@~5.1.0, safe-buffer@~5.1.1: version "5.4.1" resolved "https://registry.yarnpkg.com/semver/-/semver-5.4.1.tgz#e059c09d8571f0540823733433505d3a2f00b18e" +semver@5.3.0: + version "5.3.0" + resolved "https://registry.yarnpkg.com/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f" + set-blocking@^2.0.0, set-blocking@~2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7"