ESLint plugin providing comprehensive linting rules for ES2015+ import/export syntax with static analysis and module system enforcement.
80
Create a lint helper that blocks consumption of exports documented with @deprecated JSDoc tags while letting current APIs pass.
@deprecated reason, running lintFiles on a consumer that imports that name returns an error mentioning the identifier and the deprecation reason. @test@deprecated, lintFiles run on a file importing that default reports an error tied to the default import location. @testlintFiles returns two distinct errors with source locations matching each import statement. @testlintFiles. @test@generates
export async function lintFiles(paths: string[]): Promise<
{ filePath: string; errors: { message: string; line: number; column: number }[] }[]
>;Enforces import hygiene and detects usage of exports documented as deprecated.
Install with Tessl CLI
npx tessl i tessl/npm-eslint-plugin-import-xdocs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10