question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Vue.js files missing some rules

See original GitHub issue

I’m using this plugin with vue.js files.

My code:

export default {
	name: 'CalendarWrapper',
	data(){
		return {
			dialogVisible: true,
			loading: true
		}
	}
}

If I have it inside a .js file it gets formated according to my rules. If I have it inside a vue.js file some changes are applied some are not.

Specifically data() { becomes data(){ if in a .js file and not otherwise.

I think the related rule is:

'space-before-blocks': ['error', 'never']

I’m happy to add a spec/test if you point me out if the problem is in this repo and where I find the tests (didn’t find any tests).

Thanks!

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:12

github_iconTop GitHub Comments

1reaction
robwisecommented, Jul 14, 2018

@tinymachine If it works with just normal prettier and just normal eslint, then you can use eslint-plugin-prettier. This way you can just not use prettier-atom and instead use linter-eslint to have eslint run the prettier formatting.

1reaction
robwisecommented, Jun 29, 2017

I just released 0.35.0 which uses prettier 1.5. Prettier 1.5 has CSS-in-JS support. Could you see if maybe this fixes the problem?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Static files are missing in VueJS application - Stack Overflow
So, when I go to http://localhost/static/data.json or http://localhost/assets/data.json I get this error message: The requested URL /static/data ...
Read more >
service lint break import/no-unresolved for extension .vue #3267
The solution is to disable eslint for all the import statements. /*eslint-disable */ import DashboardLayout from '../layouts/DashboardLayout';.
Read more >
HTML and Static Assets - Vue CLI
When you reference a static asset using relative path (must start with . ) inside JavaScript, CSS or *.vue files, the asset will...
Read more >
Vue.js | PhpStorm Documentation - JetBrains
PhpStorm provides support for the Vue.js building blocks of HTML, CSS, ... configuration file and uses the module resolution rules from it ...
Read more >
VS Code for Vue.js Developers
However, if you copied and pasted the command into your Vue file, this auto code generation feature wouldn't work because the tab requires...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found