
Security News
rv Is a New Rust-Powered Ruby Version Manager Inspired by Python's uv
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
eslint-config-tongdun
Advanced tools
npm install eslint-config-tongdun --save-dev
npm install eslint@^8.13.0 --save-dev
{
// react工程使用["tongdun/react"] vue工程使用["tongdun/vue"]
// typescript项目可以在后面添加typescript规则
// "extends":["tongdun/react", "tongdun/typescript"],
"extends":["tongdun/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
npm install eslint-plugin-td-rules-plugin --save-dev
{
"extends": ["tongdun/react"],
"plugins": ["td-rules-plugin"],
"rules": {
// import 超过3个..建议使用别名
"td-rules-plugin/js-use-alias-path": 1,
// interface 名称大写字母开头
"td-rules-plugin/ts-interface-caps": 1
}
}
FAQs
同盾eslit规范
We found that eslint-config-tongdun 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
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.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.