-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: incorrect vfile usage for retext rule (#88)
- Loading branch information
Showing
12 changed files
with
451 additions
and
440 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"eslint-plugin-text": patch | ||
--- | ||
|
||
fix: incorrect vfile usage for retext rule |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,2 @@ | ||
export * from './retext' | ||
export * from './textlint' | ||
export * from './types' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,95 @@ | ||
// Jest Snapshot v1, https://goo.gl/fbAQLP | ||
|
||
exports[`fixtures: basic.md 1`] = `[]`; | ||
exports[`fixtures: basic.md 1`] = ` | ||
[ | ||
{ | ||
"column": 7, | ||
"endColumn": 10, | ||
"endLine": 1, | ||
"line": 1, | ||
"message": "\`ani\` is misspelt; did you mean \`an\`, \`and\`, \`ans\`, \`ant\`, \`anti\`, \`any\`, \`bani\`, \`uni\`, \`Agni\`, \`AI\`, \`Ali\`, \`Ana\`, \`Ann\`, \`ANSI\`, \`API\`, \`AVI\`, \`MANI\`, \`Ni\`? | ||
reference: -", | ||
"nodeType": "Program", | ||
"ruleId": "retext/ani", | ||
"severity": 1, | ||
}, | ||
{ | ||
"column": 4, | ||
"endColumn": 18, | ||
"endLine": 3, | ||
"line": 3, | ||
"message": "\`productentries\` is misspelt | ||
reference: -", | ||
"nodeType": "Program", | ||
"ruleId": "retext/productentries", | ||
"severity": 1, | ||
}, | ||
{ | ||
"column": 4, | ||
"endColumn": 22, | ||
"endLine": 4, | ||
"line": 4, | ||
"message": "\`integrationclasses\` is misspelt | ||
reference: -", | ||
"nodeType": "Program", | ||
"ruleId": "retext/integrationclasses", | ||
"severity": 1, | ||
}, | ||
] | ||
`; | ||
|
||
exports[`fixtures: basic.md 2`] = `undefined`; | ||
exports[`fixtures: basic.md 2`] = ` | ||
"# I'm ani typo. | ||
exports[`fixtures: basic.txt 1`] = `[]`; | ||
## productentries | ||
## integrationclasses | ||
exports[`fixtures: basic.txt 2`] = `undefined`; | ||
![GitHubb](githhub.com) | ||
" | ||
`; | ||
|
||
exports[`fixtures: basic.txt 1`] = ` | ||
[ | ||
{ | ||
"column": 5, | ||
"endColumn": 8, | ||
"endLine": 1, | ||
"line": 1, | ||
"message": "\`ani\` is misspelt; did you mean \`an\`, \`and\`, \`ans\`, \`ant\`, \`anti\`, \`any\`, \`bani\`, \`uni\`, \`Agni\`, \`AI\`, \`Ali\`, \`Ana\`, \`Ann\`, \`ANSI\`, \`API\`, \`AVI\`, \`MANI\`, \`Ni\`? | ||
reference: -", | ||
"nodeType": "Program", | ||
"ruleId": "retext/ani", | ||
"severity": 1, | ||
}, | ||
{ | ||
"column": 1, | ||
"endColumn": 15, | ||
"endLine": 3, | ||
"line": 3, | ||
"message": "\`productentries\` is misspelt; did you mean ? | ||
reference: -", | ||
"nodeType": "Program", | ||
"ruleId": "retext/productentries", | ||
"severity": 1, | ||
}, | ||
{ | ||
"column": 1, | ||
"endColumn": 19, | ||
"endLine": 4, | ||
"line": 4, | ||
"message": "\`integrationclasses\` is misspelt; did you mean ? | ||
reference: -", | ||
"nodeType": "Program", | ||
"ruleId": "retext/integrationclasses", | ||
"severity": 1, | ||
}, | ||
] | ||
`; | ||
|
||
exports[`fixtures: basic.txt 2`] = ` | ||
"I'm ani typo. | ||
productentries | ||
integrationclasses | ||
" | ||
`; |
Oops, something went wrong.