Skip to content

Commit

Permalink
Chore: Update prettier line width to 80 (#139)
Browse files Browse the repository at this point in the history
- Line width of 80 is recommended by prettier for their advanced formatting
- 80 seems to work best across all monitor sizes
  • Loading branch information
tonyjin authored May 24, 2017
1 parent 67b589c commit e7fb14b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"flow.enabled": false,
"javascript.validate.enable": false,
"prettier.eslintIntegration": true,
"prettier.printWidth": 120,
"prettier.printWidth": 80,
"prettier.tabWidth": 4,
"prettier.singleQuote": true
}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@
"lint": "NODE_ENV=dev ./node_modules/.bin/eslint src/lib && ./node_modules/.bin/stylelint 'src/lib/**/*.scss'",
"precommit": "lint-staged",
"prepush": "yarn run lint",
"prettier": "prettier-eslint \"src/lib/**/*.js\" --print-width 120 --single-quote --tab-width 4 --write",
"prettier": "prettier-eslint \"src/lib/**/*.js\" --single-quote --tab-width 4 --write",
"prod": "BABEL_ENV=production NODE_ENV=production node --max_old_space_size=4096 ./node_modules/webpack/bin/webpack.js --progress --colors --config build/webpack.config.js",
"release": "yarn run clean && yarn run build-rb && yarn run lint && yarn run test && yarn run prod",
"test": "NODE_ENV=test ./node_modules/.bin/karma start build/karma.conf.js",
Expand All @@ -119,7 +119,7 @@
},
"lint-staged": {
"src/lib/**/*.js": [
"prettier-eslint --print-width 120 --single-quote --tab-width 4 --write",
"prettier-eslint --single-quote --tab-width 4 --write",
"git add"
]
}
Expand Down

0 comments on commit e7fb14b

Please sign in to comment.