eslint error for lib provided tslib
yea, comes from
in
populateGlobalsFromLib(globalScope) {
for (const lib of __classPrivateFieldGet(this, _Referencer_lib, "f")) {
const variables = lib_1.lib[lib];
/* istanbul ignore if */ if (!variables) {
throw new Error(`Invalid value for lib provided: ${lib}`);
}
for (const [name, variable] of Object.entries(variables)) {
globalScope.defineImplicitVariable(name, variable);
}
}
// for const assertions (`{} as const` / `<const>{}`)
globalScope.defineImplicitVariable('const', {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
});
} populateGlobalsFromLib(globalScope) {
for (const lib of __classPrivateFieldGet(this, _Referencer_lib, "f")) {
const variables = lib_1.lib[lib];
/* istanbul ignore if */ if (!variables) {
throw new Error(`Invalid value for lib provided: ${lib}`);
}
for (const [name, variable] of Object.entries(variables)) {
globalScope.defineImplicitVariable(name, variable);
}
}
// for const assertions (`{} as const` / `<const>{}`)
globalScope.defineImplicitVariable('const', {
eslintImplicitGlobalSetting: 'readonly',
isTypeVariable: true,
isValueVariable: false,
});
}node_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.jsnode_modules/@typescript-eslint/scope-manager/dist/referencer/Referencer.js (and all other non-hoisted instances)