Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
retext-textlint
Advanced tools
retext plugin to use textlint.
npm:
npm install retext-textlint
Install textlint plugins.
npm:
npm install textlint-plugin-jtf-style
var retext = require('retext')
var japanese = require('retext-japanese')
var textlint = require('retext-textlint')
var compact = require('eslint/lib/formatters/compact')
var text = 'タイトル「ABC」\n' +
'\n' +
'1 これは前段です。これは中段(2文の場合は後段という。)です。これは後段です。'
var options = {
plugins: [
'textlint-plugin-jtf-style'
]
}
retext().use(japanese).use(textlint, options).process(text, (err, file, doc) => {
if (err) {
console.log(err)
}
console.log('\n=== doc ===')
console.log(doc)
console.log('\n=== file ===')
console.log(compact([file]))
})
/**
* === doc ===
* タイトル「ABC」
*
* 1 これは前段です。これは中段(2文の場合は後段という。)です。これは後段です。
*
*
* === file ===
* : line 1, col 5, Warning - "jtf-style/2.1.9.アルファベット" アルファベットは「半角」で表記します。
* : line 3, col 16, Warning - "jtf-style/2.1.8.算用数字" 算用数字は「半角」で表記します。
*
* 2 problems
*/
{
"plugins": [
"jtf-style"
],
"rules": {
"jtf-style/4.1.1.句点(。)": false,
"jtf-style/3.1.1.全角文字と半角文字の間": false
}
}
Parameters
textlint
— This plugin.
options
(Object
, optional)
plugins
(Array.<string>
) - textlint plugin name array.FAQs
retext plugin to use textlint
We found that retext-textlint demonstrated a not healthy version release cadence and project activity because the last version was released 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
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.