
Security News
Socket Integrates With Bun 1.3’s Security Scanner API
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
@ecomfe/eslint-config
Advanced tools
EFE 团队使用的 ESLint 配置。
npm i -D eslint @ecomfe/eslint-config
仅支持Flat Config格式的配置。
在 eslint.config.js
中使用:
import {configure, Options} from './dist/index.js';
const options = {
strict: true,
typeScript: {
typeCheck: true,
},
import: {
node: false,
webpack: false,
},
react: {},
};
export default configure(options);
除strict
外,其余选项均控制特写场景的规则,无该配置即完全禁用相关规则,你可以使用一个空对象({}
)表示按默认配置启用这一场景。
strict
:开启严格模式,会提升部分规则的约束。typeScript
:配置TS相关规则。
typeCheck
:是否启用需要类型的规则,这些规则速度较慢但能提高代码质量,默认为true
。import
:配置模块引入、导出相关规则。
node
:是否Node项目,默认为false
,即不允许使用Node原生模块。webpack
:是否为Webpack项目,默认为false
,当打开时会检查动态import
需要配置webpckChunkName
等规则。react
:是否启用React的相关规则。FAQs
ESLint config for Baidu EFE.
The npm package @ecomfe/eslint-config receives a total of 337 weekly downloads. As such, @ecomfe/eslint-config popularity was classified as not popular.
We found that @ecomfe/eslint-config demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 11 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
Socket now integrates with Bun 1.3’s Security Scanner API to block risky packages at install time and enforce your organization’s policies in local dev and CI.
Research
The Socket Threat Research Team is tracking weekly intrusions into the npm registry that follow a repeatable adversarial playbook used by North Korean state-sponsored actors.
Security News
A data handling bug in OSV.dev caused disputed CVEs to disappear from vulnerability feeds until a recent fix restored over 500 advisories.