
Research
Malicious npm Packages Impersonate Flashbots SDKs, Targeting Ethereum Wallet Credentials
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
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.
The npm package textlint-rule-date-weekday-mismatch receives a total of 820 weekly downloads. As such, textlint-rule-date-weekday-mismatch popularity was classified as not popular.
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.
Research
Four npm packages disguised as cryptographic tools steal developer credentials and send them to attacker-controlled Telegram infrastructure.
Security News
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.