
Product
Introducing Repository Access Permissions and Custom Roles
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.
para-eslint
Advanced tools
旨在统一公司代码风格,减少语法错误,提高开发效率
npm i -g para-eslint
初始化安装
eslint-init
安装成功后,可执行
npm run lint //可查看和自动修复一些lint问题
vscode编辑器保存时根据eslint规则自动格式化
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
},
其他编辑器同理
第一次开启eslint的项目,为避免历史代码报错较多,无法及时修复,影响日常开发进度,建议在当前最新代码分支切出一个分支进行安装,安装成功后,预估修复时间,修复完成后再合并主分支
本工具尽量做到通用,lint命令覆盖范围因项目结构不同可能有覆盖不到,可以在package.json中scripts字段手动修改lint命令。如:
"lint": "eslint --fix --ext .js,.jsx,.ts,.tsx ./src ./config ./scripts ./kernel ./static"
手动添加需要lint的目录或文件
{
"globals": {
"Jquery": 'off' //'off'|'writeable'|'readable'
}
}
如果要忽略检查某些文件,请自行新建修改.eslintignore文件
如果规则有问题,或者比较严格的地方,可以提出来一起讨论是否修改规则或者放宽,原则上不要自己修改。
欢迎对本工具提出建议和意见。
FAQs
统一的初始化eslint
The npm package para-eslint receives a total of 4 weekly downloads. As such, para-eslint popularity was classified as not popular.
We found that para-eslint 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.

Product
Socket now supports Custom Roles and Repository Access Permissions so organizations can control who can access specific repositories and actions.

Product
Socket MCP now lets AI assistants review org alerts, investigate threats using the Socket threat feed, and inspect package files in addition to dependency scoring.

Product
Socket Firewall blocks malicious VS Code and Open VSX extensions before install, protecting developers from compromised editor marketplaces.