disable white space at end of lines (non-drag-spaces)

0

I have this error in a project vue js , I know it is eslint I checked the tutorial on the site on how to remove the error with / strong>, but it did not work, if anyone knows, I appreciate if I can help.

Error:

link Missing space before value for key 'component'   src \ router \ index.js: 9: 29           {path: '/', component: Home}                                ^

5 problems (5 errors, 0 warnings)

Errors:   3 link   1 link   1 link

@ ./src/main.js 5: 0-30  @ multi ./build/dev-client ./src/main.js

  

Listening at link

Vue js

import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/components/Home'

Vue.use(Router)

export default new Router({
    routes:[
        {path:'/',component:Home}
    ]
})
    
asked by anonymous 02.11.2017 / 18:15

1 answer

1

Uses the file name in the command: eslint ./src/main.js --fix

    
08.11.2017 / 18:16