Skip to content

"1:1 error Cannot process specified file: it’s ignored" with remark@3 #130

@jeddy3

Description

@jeddy3

Hello.

Given the following lerna directory structure:

packages
  package1 
    node_modules
    package.json
    README.md 
  package2
    node_modules
    package.json
    README.md
.gitignore
.remarkrc
package.json
README.md

Where .remarkrc contains:

{
  "plugins": [
    "preset-lint-recommended",
    "preset-lint-consistent"
  ]
}

And the root package.json contains:

{
  "scripts": {
    "lint:md": "remark '**/*.md' --ignore-path .gitignore --quiet --frail",
  },
  "devDependencies": {
    "remark-cli": "3.0.0",
    "remark-preset-lint-consistent": "2.0.0",
    "remark-preset-lint-recommended": "2.0.0",
  }
}

And .gitignore contains:

.DS_Store
.env
dist
lerna-debug.log
node_modules
npm-debug.log
coverage

Running npm run lint:md returns a few thousand of the same error (I believe one for each markdown files within the node_modules directories, e.g.:

packages/website/node_modules/leveldown/README.md
  1:1  error  Cannot process specified file: it’s ignored

Whereas the same setup (albeit with a remark-cli@2 configuration object) threw no errors.

I've taken a poke around, but I'm struggling to see what might be causing it. Am I missing something obvious?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions