Vue.js files missing some rules
See original GitHub issueI’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:
- Created 6 years ago
- Comments:12
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@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.
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?