Skip to content

Commit 6bb750e

Browse files
authored
chore: checkImage: true by default (#4)
BREAKING CHANGE: `checkImage` option is enabled by default
1 parent 0bc3d86 commit 6bb750e

3 files changed

+2
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ textlint --rule @textlint-rule/no-invalid-control-character README.md
5050
- Default: `false`
5151
- Check code if it is `true`
5252
- `checkImage`: `boolean`
53-
- Default: `false`
53+
- Default: `true` (v2+)
5454
- Check image title and alt texts if it is `true`
5555

5656
```json

src/textlint-rule-no-invalid-control-character.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const DEFAULT_OPTION = {
2929
// Check code if it is true
3030
checkCode: false,
3131
// Check image title and alt text if it is true
32-
checkImage: false
32+
checkImage: true
3333
};
3434

3535
const reporter = (context, options = {}) => {

test/textlint-rule-no-invalid-control-character-test.js

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,6 @@ var value = "\u0008"
104104
},
105105
{
106106
text: `![textlint logo\u0008](https://textlint.github.io/img/textlint-icon_256x256.png "logo\u0019")`,
107-
options: {
108-
checkImage: true
109-
},
110107
errors: [
111108
{
112109
message: "Found invalid control character(BACKSPACE \\u0008)",

0 commit comments

Comments
 (0)