azu

Results 808 comments of azu

> textlint can support text files encoded as UTF8 only. Yes. it looks good that implement the assertion in config-loader. https://github.com/textlint/textlint/blob/41cae972db08731b797592b24dcd845c0138bec4/packages/textlint/src/config/config-loader.ts#L43

[micnic/uv: Ultrafast UTF-8 data validation](https://github.com/micnic/uv) looks like good. require Node.js 6+. But, we can drop Node.js 4 support in near future #443

[hcodes/isutf8: Quick check if a Node.js Buffer is UTF-8](https://github.com/hcodes/isutf8)

> Fix code to pass linting Maybe, This task require a lots of people power. We welcome to contribute.

It is related with https://github.com/textlint/textlint/issues?q=is%3Aissue+is%3Aclosed ```js var isPluginReturnAnAST = ast_tester_1.isTxtAST(preProcessResult); var textForAST = isPluginReturnAnAST ? text : preProcessResult.text; var ast = isPluginReturnAnAST ? preProcessResult : preProcessResult.ast; ``` is not work...

https://github.com/azu/textlint-rule-no-dead-link-issues-129 reproduce repository

```json { "type": "Document", "children": [ { "type": "List", "ordered": false, "start": null, "loose": true, "children": [ { "type": "ListItem", "loose": true, "checked": null, "children": [ { "type": "Paragraph", "children":...

Assertion Error ``` AssertionError [ERR_ASSERTION]: The expression evaluated to a falsy value: assert.ok(start.column >= 0) at test (/Users/azu/ghq/github.com/azu/textlint-rule-no-dead-link-issues-129/node_modules/@textlint/ast-tester/lib/ast-tester/src/index.js:58:20) at Array.forEach () at test (/Users/azu/ghq/github.com/azu/textlint-rule-no-dead-link-issues-129/node_modules/@textlint/ast-tester/lib/ast-tester/src/index.js:35:23) at Array.forEach () at test (/Users/azu/ghq/github.com/azu/textlint-rule-no-dead-link-issues-129/node_modules/@textlint/ast-tester/lib/ast-tester/src/index.js:35:23)...

```json { "type": "CodeBlock", "lang": null, "value": "\t* Type `String` called `code`\n\t* Type `boolean` called `accepted`", "loc": { "start": { "line": 3, "column": -1 }, "end": { "line": 4, "column":...

Probably, it is old remarked's bug `column` normalize bug