mirror of
https://github.com/sindresorhus/type-fest.git
synced 2026-02-01 15:59:43 +00:00
Fix validate-jsdoc-codeblocks rule to run diagnostics using latest file contents (#1310)
This commit is contained in:
parent
c1dcd875af
commit
931fabac9f
@ -50,6 +50,12 @@ export const validateJSDocCodeblocksRule = /** @type {const} */ ({
|
||||
return {};
|
||||
}
|
||||
|
||||
try {
|
||||
env.updateFile(context.filename, context.sourceCode.getText());
|
||||
} catch {
|
||||
// Ignore
|
||||
}
|
||||
|
||||
return {
|
||||
TSTypeAliasDeclaration(node) {
|
||||
const {parent} = node;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user