
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@tuia/base-config-common
Advanced tools
yarn add @tuia/base-config-common -D
// 安装对应的依赖
# stylelint
yarn add stylelint stylelint-config-standard -D
#commmit-lint
yarn add @commitlint/cli @commitlint/config-conventional husky@4.3.8 -D
#lintstaged
yarn add lint-staged husky@4.3.8 -D
.stylelintrc.jsmodule.exports = {
extends: ['@tuia/base-config-common/stylelintrc'],
rules: {
// 其他自定义规则
},
}
.lintstagedrc.jsmodule.exports = {
// 允许eslint报警告
// ...require('@tuia/base-config-common/lintstaged'),
// 不允许eslint报警告
...require('@tuia/base-config-common/lintstaged-strict'),
// 其他自定义操作 eg:
// "*.{css,md,html,json}": [
// "prettier --write",
// "git add"
// ]
}
commitlint.config.jsmodule.exports = {
...require('@tuia/base-config-common/commitlint.config'),
// 其他属性需要全量覆盖
}
“husky run“ not foundrm -rf .git/hooks
yarn install
如果仍然不生效,请查看项目中 husky 的版本,推荐使用husky@4.3.8
{
"husky": {
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS",
"pre-commit": "lint-staged"
}
}
}
.lintstagedrc.js后,需要在 package.json 中移除对应操作,配置文件的优先级是package.json最高的。
eg
package.json{
// ...
- "lint-staged": {
- "*.{js,jsx,vue,ts}": [
- "eslint",
- "git add"
- ],
- // ...
}
}
"editor.codeActionsOnSave": {
// ...
/* 是否需要自动保存修复stylelint格式 */
"source.fixAll.stylelint": true
},
"stylelint.validate": [
"css",
"less",
"postcss",
"scss",
"vue",
"sass"
],
FAQs
- stylelint - commit-lint - lint-staged
The npm package @tuia/base-config-common receives a total of 4 weekly downloads. As such, @tuia/base-config-common popularity was classified as not popular.
We found that @tuia/base-config-common demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 15 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.