Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Suppress certain warnings for JavaScript #144

Open
@jbrew138

Description

@jbrew138

After updating to 0.8.0 I'm really happy with the new language server and expanded diagnostics, but I'm getting a type of warning while working in JavaScript specific to TypeScript.

For example:

const nodemailer = require('nodemailer');

The base package for Nodemailer doesn't have an implementation for TypeScript, which I assume triggers this warning:

Could not find a declaration file for module 'nodemailer'. 'c:/###/node_modules/nodemailer/lib/nodemailer.js' implicitly has an 'any' type.
Try npm install @types/nodemailer if it exists or add a new declaration (.d.ts) file containing `declare module 'nodemailer';

This occurs with several packages including ffmpeg-static, child-process-promise, and others.

I'm not aware of any way to set up configuration for the new language server, but adding a way to suppress specific warnings like these would be really helpful, similar to eslint's config. Or at the very least, maybe a simple filter before the linter warnings are consumed?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions