
Research
/Security News
Miasma Mini Shai-Hulud Hits ImmobiliareLabs npm Packages
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.
eslint-config-tpconfig
Advanced tools
此扩展包是在 eslint:recommended、plugin:vue/recommended、@vue/standard 基础之上配置的一组规则。使用时需要将 'tpconfig' 放在 extends 的末尾。
$ npm install eslint-config-tpconfig -D
// .eslintrc.js
module.exports = {
root: true,
env: {
browser: true,
node: true,
es6: true,
},
extends: [
'eslint:recommended',
'plugin:vue/recommended',
'@vue/standard',
+ 'tpconfig',
],
parser: 'vue-eslint-parser',
parserOptions: {
parser: 'babel-eslint',
sourceType: 'module',
},
globals: {
_: 'readonly',
axios: 'readonly',
},
};
在现有的 Vue 项目中使用,可能需要先升级 eslint 到 6.x。
创建新的项目,可以直接使用 vue-preset 无需额外安装依赖。
$ vue create --preset CDTRSFE/vue-preset <project-name>
此规则单独维护,如果配置有修改会发新的 npm 包,npm update eslint-config-tpconfig -D 升级即可,或者卸载之后重新安装。
FAQs
Vue 项目自定义 eslint 规则
The npm package eslint-config-tpconfig receives a total of 3 weekly downloads. As such, eslint-config-tpconfig popularity was classified as not popular.
We found that eslint-config-tpconfig demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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.

Research
/Security News
Miasma Mini Shai-Hulud hits @immobiliarelabs Backstage plugins, targeting GitLab and LDAP auth packages on npm.

Security News
Rolldown paused Rust React Compiler integration after a 5MB binary size increase raised concerns about shipping React-specific code to all Vite users.

Security News
/Research
Mini Shai-Hulud expands into the Go ecosystem after hitting LeoPlatform npm packages and targeting GitHub Actions workflows.