
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@ifanrx/eslint-config-standard
Advanced tools
@ifanrx/eslint-config-standard
仅针对 JavaScript 项目。
如果是 TypeScript 项目,请使用 @ifanrx/eslint-config-standard-ts
。
.eslintrc.js
配置文件的 extends
中,@ifanrx/standard
总是放在最后一个。
路径别名依赖 eslint-import-resolver-typescript
,已封装到 @ifanrx/eslint-config-standard/init
和 @ifanrx/eslint-config-standard-ts/init
提供的 init()
函数中。
使用时应先配置 tsconfig.json
的 compilerOptions.paths
,然后将 .eslintrc.js
的配置传入 init()
函数中。
// tsconfig.json
{
"compilerOptions": {
"paths": {
"@/*": "./src/*"
}
}
}
// .eslintrc.js
const {init} = require('@ifanrx/eslint-config-standard/init')
module.exports = init({
root: true,
extends: ['@ifanrx/standard'],
})
pnpm install @ifanrx/eslint-config-standard -D
// .eslintrc.js
module.exports = {
root: true,
extends: ['@ifanrx/standard'],
}
pnpm install @ifanrx/eslint-config-standard @ifanrx/eslint-config-standard-react -D
// .eslintrc.js
module.exports = {
root: true,
extends: ['@ifanrx/standard-react', '@ifanrx/standard'],
}
pnpm install @ifanrx/eslint-config-standard @ifanrx/eslint-config-standard-vue -D
module.exports = {
root: true,
extends: ['@ifanrx/standard-vue', '@ifanrx/standard'],
}
pnpm install @ifanrx/eslint-config-standard @ifanrx/eslint-config-standard-wxml -D
module.exports = {
extends: ['@ifanrx/standard-wxml', '@ifanrx/standard'],
}
FAQs
An ESLint shared standard configuration.
The npm package @ifanrx/eslint-config-standard receives a total of 0 weekly downloads. As such, @ifanrx/eslint-config-standard popularity was classified as not popular.
We found that @ifanrx/eslint-config-standard 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
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.