Skip to content

Commit

Permalink
chore: checkImage: true by default (#4)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: `checkImage` option is enabled by default
  • Loading branch information
azu committed May 1, 2021
1 parent 0bc3d86 commit 6bb750e
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ textlint --rule @textlint-rule/no-invalid-control-character README.md
- Default: `false`
- Check code if it is `true`
- `checkImage`: `boolean`
- Default: `false`
- Default: `true` (v2+)
- Check image title and alt texts if it is `true`

```json
Expand Down
2 changes: 1 addition & 1 deletion src/textlint-rule-no-invalid-control-character.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const DEFAULT_OPTION = {
// Check code if it is true
checkCode: false,
// Check image title and alt text if it is true
checkImage: false
checkImage: true
};

const reporter = (context, options = {}) => {
Expand Down
3 changes: 0 additions & 3 deletions test/textlint-rule-no-invalid-control-character-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,6 @@ var value = "\u0008"
},
{
text: `![textlint logo\u0008](https://textlint.github.io/img/textlint-icon_256x256.png "logo\u0019")`,
options: {
checkImage: true
},
errors: [
{
message: "Found invalid control character(BACKSPACE \\u0008)",
Expand Down

0 comments on commit 6bb750e

Please sign in to comment.