3

When I'm in a workspace and open an external file (from outside of workspace) in VSCode, how can I exclude this file from lint? More specifically from pug-lint but the same applies to ESLint?

MrT77
  • 141

1 Answers1

0

The documentation for pug-lint lists the option of excludeFiles as follows:

excludeFiles

Type: Array

Default: ["node_modules/**"]

Disables style checking for specified paths declared with glob patterns.

From examining the source-code of pug-lint, it seems that these options are specified in a .js file in the rules sub-folder, or specified in the Configuration file.

harrymc
  • 498,455