
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
textlint-rule-no-bracket-nightly
Advanced tools
textlint rule for no bracket
This rule checks whether the disallowed brackets are present in the sentences.
For example, if full-width parenthesis and lenticular brackets are not allowed, the following are NG and OK:
They are coming to our house after work(around six o'clock).
【重要】これは(秘密)です。
They are coming to our house after work (around six o'clock).
[重要] これは(秘密)です。
Install with npm:
npm install textlint-rule-no-bracket
.textlintrcIt’s recommended that this rule is used in .textlintrc.js.
This rule allows all brackets by default. So you need to put to disallowBrackets option which brackets you do not allow.
Below is an example of using full-width parenthesis and lenticular brackets:
const { FullWidthParenthesis, LenticularBrackets } =
require('textlint-rule-no-bracket').brackes
module.exports = {
rules: {
'no-bracket': {
disallowBrackets: [FullWidthParenthesis, LenticularBrackets]
}
}
}
If you would like to use other brackets, you can put the bracket scheme.
You must define the bracket scheme, which is an object with following the properties:
name: the name of the bracketstart: the opening bracket characterend: the closing bracket charactermodule.exports = {
rules: {
'no-bracket': {
disallowBrackets: [
{
name: 'Double Angle Quotation Mark',
start: '«',
end: '»'
}
]
}
}
}
( and )[ and ]{ and }( and )[ and ]{ and }「 and 」『 and 』< and >【 and 】〖 and 〗〚 and 〛If you would like to use these built-in brackets and custom brackets, you can use spread syntax (...) as follows:
const { defaultBrackets } = require('textlint-rule-no-bracket')
module.exports = {
rules: {
'no-bracket': {
disallowBrackets: [
{
name: 'Double Angle Quotation Mark',
start: '«',
end: '»'
},
...defaultBrackets
]
}
}
}
If you are interested in contributing to textlint-rule-no-bracket, I highly recommend checking out the contributing guidelines here. You'll find all the relevant information such as how to make a PR, how to setup development) etc., there.
MIT ©️ 2024 kazupon
FAQs
textlint rule for no bracket
We found that textlint-rule-no-bracket-nightly 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.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.