Comments (5)
This will be fixed in https://github.com/textlint/textlint/releases/tag/v13.1.1
Please check it!
from textlint.
$ npx textlint --rule no-todo ./**/*.md
It should be
$ npx textlint --rule no-todo "./**/*.md"
This glob is expanded by your shell.
- Refs: #804
- Docs: https://github.com/textlint/textlint#cli
from textlint.
Sorry, I made a mistake.
However, running the following command does not work as expected.
$ npx textlint --rule no-todo --debug "./**/*.md"
textlint:cli textlint --version: 13.1.0 +0ms
textlint:cli Running on files, stdin-filename: undefined +1ms
textlint:loader:TextlintrcLoader loadTextlintrc failed: { ok: false, error: { message: 'textlint config is not found', errors: [ Error: textlint config is not found textlint require .textlintrc config file. The config file define the use of rules. at loadRawConfig (/home/frozenbonito/textlint-repro/node_modules/@textlint/config-loader/lib/src/config-loader.js:120:25) at loadConfig (/home/frozenbonito/textlint-repro/node_modules/@textlint/config-loader/lib/src/config-loader.js:71:55) at loadTextlintrc (/home/frozenbonito/textlint-repro/node_modules/textlint/lib/src/loader/TextlintrcLoader.js:36:57) at loadDescriptor (/home/frozenbonito/textlint-repro/node_modules/textlint/lib/src/cli.js:26:55) at async Object.executeWithOptions (/home/frozenbonito/textlint-repro/node_modules/textlint/lib/src/cli.js:106:28) ] } } +0ms
textlint:find-util search patterns: [ '**/*.md' ] +0ms
textlint:find-util search ignore patterns: [ '**/.git/**', '**/node_modules/**' ] +0ms
textlint:createTextlint Process files [ '/home/frozenbonito/textlint-repro/file.md' ] +0ms
textlint:createTextlint No Process files that are un-support extensions: [] +0ms
textlint:kernel used plugin {"pluginId":"@textlint/textlint-plugin-markdown","availableExtensions":[".txt",".text",".md",".markdown",".mdown",".mkdn",".mkd",".mdwn",".mkdown",".ron"]} +0ms
textlint:kernel process file /home/frozenbonito/textlint-repro/file.md +9ms
textlint:core-task no-todo report {"message":"Found TODO: '- [ ] Write usage instructions'","index":2} +0ms
textlint:cli lint results: [{"messages":[{"type":"lint","ruleId":"no-todo","message":"Found TODO: '- [ ] Write usage instructions'","index":13,"line":3,"column":3,"range":[13,14],"loc":{"start":{"line":3,"column":3},"end":{"line":3,"column":4}},"severity":2}],"filePath":"/home/frozenbonito/textlint-repro/file.md"}] +30ms
textlint:@textlint/linter-formatter formatterName: stylish +0ms
/home/frozenbonito/textlint-repro/file.md
3:3 error Found TODO: '- [ ] Write usage instructions' no-todo
✖ 1 problem (1 error, 0 warnings)
from textlint.
Thanks for details.
textlint:find-util search ignore patterns: [ '**/.git/**', '**/node_modules/**' ] +0ms
It looks like textlint does not reconized ignore file.
It may be regression on textlint v13.
textlint/packages/textlint/src/cli.ts
Lines 114 to 119 in 5730609
ignorePath
is missing.
from textlint.
Thank you for your fix!
from textlint.
Related Issues (20)
- Validate invalid rule name in .textlintrc HOT 1
- config-loader: add sub id for preset rule HOT 1
- Fixed result is not shown when both `--dry-run` and `--stdin` are given HOT 6
- Suggest API HOT 1
- `textlint-script`: support ESM outputs HOT 2
- Add ability to lint file name and path HOT 1
- Add integration with ChatGPT
- v14 roadmap HOT 4
- Remove CLI from @textlint/linter-formatter HOT 1
- Mis-capitalized word not detected at end of line in markdown file HOT 3
- textlint-scripts: preverse `import()` HOT 1
- Remove `[index:string]: any;` from `TxtNode`.
- Meta: ECMAScript Modules
- Add deprecation message to `TextLintCore`, `TextFixEngine`, `TextLintEngine`, and `textlint` of `textlint` package
- move gulp-textlint to out of monorepo HOT 1
- Recreate --cache flag HOT 5
- Drop Node.js 16 support
- textlint-tester: move to `node:test` from mocha
- Update supported Minimal Node.js version HOT 1
- Update textlint-script default target
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from textlint.