ERROR: Exception while linting with markdownlint-cli2 using ignores in a configuration file
See original GitHub issueAfter the latest update, I’m getting this error in the Output panel:
[10:13:42 PM] ERROR: Exception while linting with markdownlint-cli2:
EntryNotFound (FileSystemError): Unable to resolve non-existing file '/Users/borekb/dev/shoptet/sofa/!**/node_modules/**'
at _handleError (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/services/extensions/node/extensionHostProcess.js:94:160087)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
This is my .markdownlint-cli2.js
(that used to work before):
require('./.pnp.cjs').setup();
const path = require('path');
module.exports = {
config: {
MD007: {
indent: 4,
},
MD013: false,
MD014: false,
MD040: false,
MD029: false,
MD033: false,
MD026: false,
MD009: { br_spaces: 0 },
MD031: { list_items: false },
'graphql-examples': {
schema: path.join(__dirname, 'packages/graphql/schema.graphql'),
globs: [`${__dirname}/docs/docs/**/*.md{,x}`],
},
},
ignores: ['**/node_modules/**', '**/.next/**', '**/dist/**'],
customRules: ['@shoptet-private/markdownlint-graphql-examples'],
};
Issue Analytics
- State:
- Created 2 years ago
- Comments:16 (8 by maintainers)
Top Results From Across the Web
Markdownlint - Visual Studio Marketplace
Extension for Visual Studio Code - Markdown linting and style checking for Visual Studio Code.
Read more >markdownlint - npm
A Node.js style checker and lint tool for Markdown/CommonMark files.. Latest version: 0.26.2, last published: 4 months ago. Start using ...
Read more >markdownlint-cli2 - UNPKG
1, # markdownlint-cli2. 2. 3, > A fast, flexible, configuration-based command-line interface for linting. 4, > Markdown/CommonMark files with the ...
Read more >If one is good, two must be better [markdownlint-cli2 is a new ...
Configuration should be flexible. Command line arguments are never as expressive as data or code, so all configuration for markdownlint-cli2 ...
Read more >Documentation testing | GitLab
The ui-docs-links lint job uses haml-lint to test that all documentation ... Vale configuration and markdownlint configuration is under source control in ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This (the original issue, not the problem with network shares which I hope is an extreme edge case I’ll look into shortly) should be fixed in 0.44.3. There’s no associated fix commit because I did something shady in order to get the fix out sooner. I’m leaving this issue open and will resolve it with the proper commit soon.
@DavidAnson Can confirm that the behavior in VSCode is now correct, thanks!