1.0.1 • Published 3 years ago
danger-plugin-git-spellcheck v1.0.1
danger-plugin-git-spellcheck
This plugin checks the spelling in code and reports any error as markdown PR comment.
Usage
Install:
yarn add danger-plugin-git-spellcheck --dev
At a glance:
// dangerfile.js
import gitSpellcheck from "danger-plugin-git-spellcheck";
gitSpellcheck();
Configuration:
This plugin use the cspell library under the hood to perform spellchecking, which can be configured using a cspell.json
configuration file. Please see here for more details on cspell configuration.
// cSpell Settings
{
// Version of the setting file. Always 0.1
"version": "0.1",
// language - current active spelling language
"language": "en",
// words - list of words to be always considered correct
"words": [
"mkdirp",
"tsmerge",
"githubusercontent",
"streetsidesoftware",
"vsmarketplacebadge",
"visualstudio"
],
// flagWords - list of words to be always considered incorrect
// This is useful for offensive words and common spelling errors.
// For example "hte" should be "the"
"flagWords": ["hte"]
}
Changelog
See the GitHub release history.
Contributing
See CONTRIBUTING.md.
1.0.1
3 years ago
1.0.0
3 years ago
0.0.5-development
3 years ago
0.0.4-development
3 years ago
0.0.3-development
3 years ago
0.0.2-development
3 years ago
0.0.1-development
3 years ago
0.0.0-development
3 years ago