-
-
Notifications
You must be signed in to change notification settings - Fork 44
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 pug aliased options #106
Conversation
Thanks for the fast response |
@SkyaTura Can you provide me a sample My project is heavily TTD :) |
My pain is actually with <template lang="pug">
// intended not to be single quoted
ComponentBar(
foo="bar"
bar="baz"
)
</template>
<script>
export default {
name: 'FooComponent' // intended to be single quote
}
</script> |
Good that I asked 😁 OH WOW! I learned an interesting fact about prettier options :D |
Could you mind to share what you've learn? I'm curious 😂 |
@SkyaTura Sure :) Two things:
|
Isn't possible to get access to the actual config declaration? Before prettier defaults been applied, so that you could check if there are Or make Just wondering here, I don't have any knowledge about prettier plugins yet 😰 |
Nope, nothing of this is possible :/ |
Worked on it almost exactly 3 hours 😁 I'm thinking to release a beta And I also need to update changelog |
@SkyaTura I released 1.6.0-issue-105.1 for you |
Sure I will |
EditTL;DRIt's working perfectly!!! 🎉 For the recordsI was rush, and kinda newbie 😅 It was a problem with my Simply removing
It's ~kinda~ working 😰
I don't know if it's related to this project or I am doing something wrong, but I have this setup:
If I run locally, on the module, as a test, it goes well, detect errors and fixes them as well. The curious thing about it: using Bonus: this happens both on eslint and vim plugin So, basically, this is my files: module/prettier.js module.exports = {
extends: ['plugin:prettier/recommended'],
plugins: ['prettier'],
rules: {
'prettier/prettier': [
'error',
{
trailingComma: 'es5',
printWidth: 80,
tabWidth: 2,
semi: false,
singleQuote: true,
endOfLine: 'lf',
plugins: ['@prettier/plugin-pug'],
pugSingleQuote: false,
attributeSeparator: 'as-needed',
closingBracketPosition: 'new-line',
commentPreserveSpaces: 'trim-all',
},
{
usePrettierrc: false,
},
],
} project/.eslintrc.js module.exports = {
root: true,
extends: [
'@myOrg/eslint-config/prettier',
],
ignorePatterns: ['node_modules', 'lib', 'dist', '.thalamus', '.nuxt'],
rules: {},
} If this isn't related, sorry :P |
I need to fix a little thingy, but this will not affect you :) Cause currently it's not possible to define |
Dafuq? And I also have a bug when using
This produces e.g. |
closes #105