Skip to content

Commit

Permalink
feat(editorconfig): increase max_line_length (#335)
Browse files Browse the repository at this point in the history
* feat(editorconfig): increase `max_line_length`

* fixup! feat(editorconfig): increase `max_line_length`
  • Loading branch information
ybiquitous committed Jan 31, 2019
1 parent bd0ff2b commit df7e35f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
8 changes: 2 additions & 6 deletions lib/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down Expand Up @@ -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");
Expand Down

0 comments on commit df7e35f

Please sign in to comment.