Re-implement MD044/proper-names for better accuracy (range and fixInfo are now always valid) (fixes #402, fixes #403).

This commit is contained in:
David Anson 2021-06-12 17:10:59 -07:00
parent fb5f647368
commit 4db40256d9
7 changed files with 135 additions and 150 deletions

View file

@ -29,6 +29,7 @@ function createTestForFile(file) {
.then(
function configFileExists() {
return fs.promises.readFile(configFile, "utf8")
// @ts-ignore
.then(JSON.parse);
},
function noConfigFile() {

View file

@ -22,4 +22,22 @@ node.js is runtime
A short paragraph
about node.js and {MD044}
javascript. {MD044}
also javascript. {MD044}
`javascript`
`code
javascript`
`code
javascript
code`
`javascript
code`
text JavaScript text `javascript` text JavaScript text
text `javascript` text JavaScript text `javascript` text
text javascript text `javascript` text {MD044}
text `javascript` text javascript text {MD044}

View file

@ -6,7 +6,6 @@
"github.com",
"github.com/about",
"npm",
"NPM",
"Vue",
"Vuex",
"vue-router"

View file

@ -32,14 +32,16 @@ The library vue-router
Not Vue-router {MD044}
Or vue-router-extra {MD044}
But vue-router-extra is different
Or extra-vue-router {MD044}
As is extra-vue-router
Quoted "Vue" and "vue-router"
Emphasized *Vue* and *vue-router*
Underscored _Vue_ and _vue-router_
Call it npm
Or NPM
But not Npm {MD044}
Or NPM {MD044}

View file

@ -72,12 +72,12 @@ javascript. {MD044}
{MD044} `javascript`
{MD044} `code
javascript`
`code
javascript` {MD044}
{MD044} `code
javascript
`code
javascript {MD044}
code`
{MD044} `javascript
`javascript {MD044}
code`