We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Reproduce like this:
vue init webpack project Choose eslint with airbnb preset choose vue-router
after npm install && npm run dev, router/index.js will look like this:
npm install && npm run dev
router/index.js
import Vue from 'vue'; import Router from 'vue-router'; Vue.use(Router); import Hello from 'components/Hello'; // <-- eslint error export default new Router({ routes: [ { path: '/', name: 'Hello', component: Hello, }, ], });
ESLint will throw an error as import Hello from 'components/Hello'; needs to be above Vue.use(Router);.
import Hello from 'components/Hello';
Vue.use(Router);
I would've created a PR (guess the fix is simple) but to be honest: I have not the slightest clue how vue-cli works 😊. Sorry.
The text was updated successfully, but these errors were encountered:
This should be open on the relevant template repository. But there's already a fix for it at vuejs-templates/webpack#478
Sorry, something went wrong.
No branches or pull requests
Reproduce like this:
vue init webpack project
Choose eslint with airbnb preset
choose vue-router
after
npm install && npm run dev
,router/index.js
will look like this:ESLint will throw an error as
import Hello from 'components/Hello';
needs to be aboveVue.use(Router);
.I would've created a PR (guess the fix is simple) but to be honest: I have not the slightest clue how vue-cli works 😊. Sorry.
The text was updated successfully, but these errors were encountered: