
Company News
Socket Joins New OpenJS Program to Fund Node.js Security Work
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.
@ghlandy/eslint-config-prettier
Advanced tools
pnpm i -D @ghlandy/eslint-config-prettier eslint@8 prettier@2
pnpm i -D eslint-config-prettier@8 eslint-plugin-prettier@4
在 eslint 配置文件 (
.eslintrc.cjs或.eslintrc.js) 中引入使用
module.exports = {
// ... 其他配置
extends: [
'eslint:recommended'
// ... 其他配置
'@ghlandy/eslint-config-prettier', // 放在最后
],
// ... 其他配置
};
module.exports = {
extends: ['plugin:prettier/recommended'],
rules: {
'prettier/prettier': 'warn',
},
};
plugin:prettier/recommended 的实际作用如下:
module.exports = {
extends: ['prettier'],
plugins: ['prettier'],
rules: {
'prettier/prettier': 'error',
'arrow-body-style': 'off',
'prefer-arrow-callback': 'off',
},
};
设置规则 prettier/prettier': 'warn',另外去设置保存自动 prettier 格式化或者 pre-commit 钩子去格式化即可
FAQs
eslint-config-prettier
The npm package @ghlandy/eslint-config-prettier receives a total of 1 weekly downloads. As such, @ghlandy/eslint-config-prettier popularity was classified as not popular.
We found that @ghlandy/eslint-config-prettier 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.

Company News
Socket is joining the OpenJS Security Stewardship Program to fund Node.js vulnerability research, maintainer remediation, and security releases.

Security News
Two compromised GitHub Actions were re-enabled with malicious tags intact, exposing thousands of downstream repositories to Mini Shai-Hulud.

Research
/Security News
A malicious Firefox extension fetches its payload after installation to evade detection, steal Google session cookies, and automate account takeover.