-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Added stylelint configuration. #842
base: develop
Are you sure you want to change the base?
Conversation
# Conflicts: # docs/structure.md # meta.js # template/.eslintrc.js # template/build/webpack.dev.conf.js # template/package.json # template/src/App.vue # template/src/components/Hello.vue # template/src/main.js
# Conflicts: # template/.eslintrc.js
docs/linter.md
Outdated
"indentation": "tab", | ||
``` | ||
|
||
2. Pick "none" for ESLint preset when generating the project and define your own rules. See [Stylelint documentation](http://stylelint.io/user-guide/rules/) for more details. |
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.
ESLint => stylelint
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.
almost LGTM.
template/package.json
Outdated
@@ -85,6 +90,13 @@ | |||
{{/e2e}} | |||
"semver": "^5.3.0", | |||
"shelljs": "^0.7.6", | |||
{{#stylelint}} | |||
"stylelint": "github:stylelint/stylelint", |
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.
I'm not sure there is a necessary to use github? it has no version control..I think.
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.
I'm waiting for the next release of stylelint that including stylelint/stylelint#2799.
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.
stylelint/stylelint#2838
It's going to be released in couple of days.
meta.js
Outdated
"stylelintConfig": { | ||
"when": "stylelint", | ||
"type": "list", | ||
"message": "Pick an stylelint preset", |
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.
an => a. :(
New bug of stylelint v8.1.0 block this PR: stylelint/stylelint#2853 |
ready to go? |
Not yet. |
docs/linter.md
Outdated
@@ -14,3 +15,16 @@ If you are not happy with the default linting rules, you have several options: | |||
2. Pick a different ESLint preset when generating the project, for example [eslint-config-airbnb](https://github.com/airbnb/javascript/tree/master/packages/eslint-config-airbnb). | |||
|
|||
3. Pick "none" for ESLint preset when generating the project and define your own rules. See [ESLint documentation](http://eslint.org/docs/rules/) for more details. | |||
|
|||
## stylelint | |||
This boilerplate uses [stylelint](http://stylint.io/) as for style linting, and uses the [Standard](https://github.com/stylelint/stylelint-config-standard) preset. |
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.
You have a typo in the stylelint
URL.
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.
Thank you.
fixed.
Stylelint v8.2.0 is out. |
@LinusBorg |
Okay, I'll push this as a separate branch to our repo and we'll see from there. |
5e6bf57
to
47bab50
Compare
circle.yml
Outdated
@@ -11,3 +11,9 @@ dependencies: | |||
test: | |||
override: | |||
- bash test.sh | |||
post: |
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.
Hey @gucong3000 Can you explain to me what this post hook does? I'm horrbile with bash.
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.
@gucong3000 I want to hold off with this PR until #1133 is merged, is that ok? |
@LinusBorg Yes, of course. |
@gucong3000 love the progress you've made on this so far, however, right now it's broken. I cloned the stylelint feature branch of your repo and initialised a new project but it's not working as expected. Running Running I spent quite a bit of time on this in my own project and I havn't been able to debug the cause. It's definitely caused by some dependency but I couldn't figure out which. Have you experience this in your projects? |
8596eeb
to
a3df122
Compare
@maxmilton Thank you for the report.
It's been repaired here. |
Just tested and everything works great. Thank you :) Looking forward to seeing this as part of the template! |
😢 |
ecde369
to
020b0ea
Compare
I know, I know :( All I can say is thank you for being that patient with me so far... These bigger PRs are always a bit problematic for me in terms of finding time to properly testing them. I'm also totally unfamiliar it stylelint, so will have to learn the basics to feel comfort able maintaining it on this template. I will merge this and I won't take a moth t month to do so. |
d4f082d
to
709d922
Compare
709d922
to
4532c2b
Compare
Related: stylelint/stylelint#3148 |
#836