Skip to content
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

ESLint and Vetur integration #569

Open
2 tasks
krmax44 opened this issue Nov 18, 2019 · 2 comments
Open
2 tasks

ESLint and Vetur integration #569

krmax44 opened this issue Nov 18, 2019 · 2 comments

Comments

@krmax44
Copy link
Contributor

krmax44 commented Nov 18, 2019

Feature request

  • Linting for config files
  • Vetur autocompletions and templates for the customized Vue parts (like export const data = {})

What problem does this feature solve?

Developer experience++

What does the proposed API look like?

How should this be implemented in your opinion?

Let's just look at Gridsome and how they've done it 👀

Are you willing to work on this yourself?

Yes.

@egoist
Copy link
Collaborator

egoist commented Nov 19, 2019

Linting for config files

Do you really need that? Now you can use TypeScript:

// @ts-check

/** @type {import('saber').SaberConfig} */
const config = {
  foo: true // type error
}

module.exports = config

@krmax44
Copy link
Contributor Author

krmax44 commented Nov 19, 2019

@egoist It'd be cool if that would be applied automatically. Necessary? No 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants