
Security News
MCP Steering Committee Launches Official MCP Registry in Preview
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
eslint-config-tntd
Advanced tools
npm install eslint@8.x --save-dev
npm install eslint-config-tntd --save-dev
{
// react工程使用["tntd/react"] vue工程使用["tntd/vue"]
// typescript项目可以在后面添加typescript规则
// "extends":["tntd/react", "tntd/typescript"],
"extends":["tntd/react"],
// 这里可以覆盖规则包里面的规则,比如默认每个函数最长不超过200,如果老项目超过了,就可以自定义修改
"rules": {
// 函数最长是300行
"max-lines-per-function": ["error", { "max": 300, "skipBlankLines": true, "skipComments": true }],
}
}
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true,
"source.fixAll": true
}
// --max-warnings 0 这个0可以改为其他数字,但是最好还是将问题修复掉
"eslint-fixed": "npx eslint --max-warnings 0 --fix --ext .js,.jsx,.ts,.tsx,.vue ./src"
npm run eslint-fixed
FAQs
tntd eslint规范
We found that eslint-config-tntd 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
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.