From f14c40d54516970018003cf34d28eb7990176e6c Mon Sep 17 00:00:00 2001 From: Masafumi Koba Date: Fri, 1 Feb 2019 08:35:34 +0900 Subject: [PATCH 1/2] feat(editorconfig): increase `max_line_length` --- .editorconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.editorconfig b/.editorconfig index 2a1ec354..ea1eda9b 100644 --- a/.editorconfig +++ b/.editorconfig @@ -9,7 +9,7 @@ trim_trailing_whitespace = true charset = utf-8 indent_style = space indent_size = 2 -max_line_length = 80 +max_line_length = 100 # trailing spaces in markdown indicate word wrap [*.md] From 7f5925ffc2033c4dce05fbc25e1edc628170d17d Mon Sep 17 00:00:00 2001 From: Masafumi Koba Date: Fri, 1 Feb 2019 08:40:30 +0900 Subject: [PATCH 2/2] fixup! feat(editorconfig): increase `max_line_length` --- lib/init.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/lib/init.js b/lib/init.js index c2e578da..700be095 100644 --- a/lib/init.js +++ b/lib/init.js @@ -8,8 +8,7 @@ const copy = promisify(fs.copyFile); const write = promisify(fs.writeFile); const read = promisify(fs.readFile); -const packagePath = (...pathElements) => - path.join(...[__dirname, "..", ...pathElements]); +const packagePath = (...pathElements) => path.join(...[__dirname, "..", ...pathElements]); // eslint-disable-next-line max-lines-per-function const initCommand = (baseDir, logger) => { @@ -75,10 +74,7 @@ const initCommand = (baseDir, logger) => { const defaultLogger = msg => process.stdout.write(`${msg}${EOL}`); -module.exports = async function init({ - cwd = process.cwd(), - logger = defaultLogger, -} = {}) { +module.exports = async function init({ cwd = process.cwd(), logger = defaultLogger } = {}) { const cmd = initCommand(cwd, logger); await cmd.updatePackageFile(); await cmd.writePackageFile(".editorconfig");