-
Notifications
You must be signed in to change notification settings - Fork 44
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
Question: does it support checking .vue file ? #66
Comments
PR is welcome. |
I could have a go at this. Any clues on where to start adding support for *.vue files? |
@darrenmothersele Some ideas:
|
vue-tsc may help. |
I've done a bit of digging this evening, here is what I've found. Route 1 - using vue-tsc
Something along the lines of: import { createProgramProxy } from "vue-tsc/out/proxy.js";
//...
export async function lint(project: string, options?: Partial<LintOptions>) {
//...
// If Vue project use createProgramProxy, otherwise, use ts.createProgram
const program = createProgramProxy(
{
rootNames: rootNames,
options: compilerOptions,
host: undefined, // Language host??
oldProgram: lintOptions.oldProgram,
},
compilerOptions,
undefined, // Language host??
lintOptions.oldProgram
);
// ...
} However, the The volar package is currently undergoing a big refactor - https://github.com/johnsoncodehk/volar/pull/1050/files - so it might be worth looking at this once the refractor is out. Route 2 - Learnings from |
As the title suggests.
It seems like it doesn't support as I tested it.
Do we have plan adding this feature? if not, I'm considering making a PR
The text was updated successfully, but these errors were encountered: