saber icon indicating copy to clipboard operation
saber copied to clipboard

ESLint and Vetur integration

Open krmax44 opened this issue 4 years ago • 2 comments

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 :eyes:

Are you willing to work on this yourself?

Yes.

krmax44 avatar Nov 18 '19 20:11 krmax44

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

egoist avatar Nov 19 '19 06:11 egoist

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

krmax44 avatar Nov 19 '19 06:11 krmax44