From df7e35f7d89989c9658ec2ab48bb2a980215cc34 Mon Sep 17 00:00:00 2001 From: Masafumi Koba <473530+ybiquitous@users.noreply.github.com> Date: Fri, 1 Feb 2019 08:42:50 +0900 Subject: [PATCH] feat(editorconfig): increase `max_line_length` (#335) * feat(editorconfig): increase `max_line_length` * fixup! feat(editorconfig): increase `max_line_length` --- .editorconfig | 2 +- lib/init.js | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) 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] 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");