
Security News
CISA Kills Off RSS Feeds for KEVs and Cyber Alerts
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
textlint-rule-date-weekday-mismatch
Advanced tools
textlint rule that found mismatch between date and weekday.
textlint rule that found mismatch between date and weekday.
OK:
Correct date and weekday.
2016-12-29(Thursday)
2016年12月30日(木曜日)
NG:
Incorrect date and weekday.
2016-12-29(Friday)
// Error:
2016-12-29(Friday) mismatch weekday.
2016-12-29(Friday) => 2016-12-29(Thursday)
Automatically detect language from your text!
This rule depended on following library:
Install with npm:
npm install textlint-rule-date-weekday-mismatch
Via .textlintrc
(Recommended)
{
"rules": {
"date-weekday-mismatch": true
}
}
Via CLI
textlint --rule date-weekday-mismatch README.md
lang
: string
{
"rules": {
"date-weekday-mismatch": {
"lang": "ja"
}
}
}
For example, 2016-12-30
is en
by default.
But, You can specify 2016-12-30
is ja-JP
text by options
{
"rules": {
"date-weekday-mismatch": {
"lang": "ja-JP"
}
}
}
useCurrentYearIfMissing
: boolean
4月23日(月)
), the current year will be automatically added for validation.Example:
{
"rules": {
"date-weekday-mismatch": {
"useCurrentYearIfMissing": true
}
}
}
If the text contains 4月23日(水)
, and the current year is 2025, it will be interpreted as 2025年4月23日(水)
for the weekday check.
currentYear
: number
useCurrentYearIfMissing
is true).Example (using both options):
{
"rules": {
"date-weekday-mismatch": {
"useCurrentYearIfMissing": true,
"currentYear": 2025
}
}
}
If the text contains 4月23日(水)
, it will always be interpreted as 2025年4月23日(水)
for the weekday check, regardless of the actual system year.
language format following ISO 639-1.
e.g.) en-US
, en
, ja
etc..
See Releases page.
Install devDependencies and Run npm test
:
npm i -d && npm test
Pull requests and stars are always welcome.
For bugs and feature requests, please create an issue.
git checkout -b my-new-feature
git commit -am 'Add some feature'
git push origin my-new-feature
MIT © azu
FAQs
textlint rule that found mismatch between date and weekday.
We found that textlint-rule-date-weekday-mismatch demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.
Research
Security News
Socket uncovers an npm Trojan stealing crypto wallets and BullX credentials via obfuscated code and Telegram exfiltration.