-
Notifications
You must be signed in to change notification settings - Fork 109
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Prettier + ESLint Integration #480
Conversation
I'm not sure what additional dependencies I need to add such that the Travis build will work again. I thought |
@@ -42,6 +44,11 @@ | |||
"imports": "always-multiline", | |||
"exports": "always-multiline", | |||
"functions": "never" | |||
}], | |||
"prettier/prettier": ["error", { | |||
"printWidth": 100, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"semi": true,
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
need to add the one rule is eslintrc.json
* master: Add Prettier + ESLint Integration (#480) Adds 0.6.0 final version (#498) adds 060-rc.1 (#497) webpack 2.6.1 (#496) Adds vendor bundling (#487) Adds 0.6.0 alpha (#488) chore: webpack & friends dep refresh (#482) # Conflicts: # package.json # packages/babel-preset-kyt-core/yarn.lock # packages/babel-preset-kyt-react/yarn.lock # packages/kyt-cli/yarn.lock # packages/kyt-core/package.json # packages/kyt-core/yarn.lock # packages/kyt-starter-static/starter-src/yarn.lock # packages/kyt-starter-universal/starter-src/yarn.lock # yarn.lock
fixes #445
This PR adds the following enhancements:
.eslintrc.json
to configure Prettier for 100-character line length, single quotes, and ES5-style trailing commas (which I think is the closest approximation of the existingcomma-dangle
rules)Note:
eslint-config-prettier
disables ESLint rules that might conflict with Prettier, whileeslint-plugin-prettier
runs Prettier (and passes it a config) as part of the linting process.Also, ESLint and its ruleset covers more than just code formatting, so it's appropriate to use both ESLint and Prettier together, rather than replace one with the other.