Security News
Node.js EOL Versions CVE Dubbed the "Worst CVE of the Year" by Security Experts
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
@mokahr/eslint-plugin-moka
Advanced tools
Eslint Plugin of Moka
You'll first need to install ESLint:
$ npm i eslint --save-dev
Next, install eslint-plugin-moka
:
$ npm install eslint-plugin-moka --save-dev
Note: If you installed ESLint globally (using the -g
flag) then you must also install eslint-plugin-moka
globally.
Add moka
to the plugins section of your .eslintrc
configuration file. You can omit the eslint-plugin-
prefix:
{
"plugins": [
"moka"
]
}
Then configure the rules you want to use under the rules section.
{
"rules": {
"moka/rule-name": 2
}
}
promise-return - Remind you to return something defined when the next promise chain needs parameters.
.then(() => {
// not allowed (forget to return a value)
})
.then((result)) => {
})
no-jsx-spread-attribute - Forbid spread attribute in jsx element for better static anslysis.
<MyComponent {...this.props}/> // not allowed (using spread attribute)
lingui-mark - Non-i18n string detector
const message = '你好世界' // Non-i18n string is detected
no-global-assign - Forbid assigning variable to window/global.
window.userId = 123; // You may not want to assign variable to window/global
FAQs
Eslint Plugin of Moka
We found that @mokahr/eslint-plugin-moka demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 5 open source maintainers 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
Critics call the Node.js EOL CVE a misuse of the system, sparking debate over CVE standards and the growing noise in vulnerability databases.
Security News
cURL and Go security teams are publicly rejecting CVSS as flawed for assessing vulnerabilities and are calling for more accurate, context-aware approaches.
Security News
Bun 1.2 enhances its JavaScript runtime with 90% Node.js compatibility, built-in S3 and Postgres support, HTML Imports, and faster, cloud-first performance.