Skip to content

Commit

Permalink
Add message url
Browse files Browse the repository at this point in the history
Closes GH-8.

Reviewed-by: Christian Murphy <[email protected]>
Reviewed-by: Titus Wormer <[email protected]>
  • Loading branch information
remcohaszing authored Dec 20, 2021
1 parent ac7d0de commit d5a6820
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import {list} from './list.js'

// Rules.
const source = 'retext-contractions'
const url = 'https://github.com/retextjs/retext-contractions#readme'

const own = {}.hasOwnProperty

Expand Down Expand Up @@ -78,7 +79,7 @@ export default function retextContractions(options = {}) {
(straight ? 'straight-apostrophe' : 'smart-apostrophe')
].join(':')
),
{actual, expected: [expected]}
{actual, expected: [expected], url}
)
}
})
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"rimraf": "^3.0.0",
"tape": "^5.0.0",
"type-coverage": "^2.0.0",
"typescript": "^4.0.0",
"typescript": "~4.4.0",
"xo": "^0.44.0"
},
"scripts": {
Expand Down
3 changes: 2 additions & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ test('retext-contractions', (t) => {
},
fatal: false,
actual: 'Yall',
expected: ['Y’all']
expected: ['Y’all'],
url: 'https://github.com/retextjs/retext-contractions#readme'
}
],
'should message for missing smart apostrophes'
Expand Down

0 comments on commit d5a6820

Please sign in to comment.