我创建了@scope/eslint-config
包含内容的范围包
{
"name": "@scope/eslint-config",
"version": "1.0.3",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git"
},
"author": "",
"license": "ISC",
"dependencies": {
"babel-eslint": "8.2.5",
"eslint": "5.1.0",
"eslint-config-airbnb": "17.0.0",
"eslint-config-prettier": "2.9.0",
"eslint-plugin-css-modules": "2.7.5",
"eslint-plugin-flowtype": "2.50.0",
"eslint-plugin-import": "2.13.0",
"eslint-plugin-jsx-a11y": "6.1.0",
"eslint-plugin-prettier": "2.6.2",
"eslint-plugin-react": "7.10.0",
"eslint-plugin-require-jsdoc-except": "1.1.0"
}
}
并在我的项目中将其添加为"@scoped/eslint-config": "1.0.2",
但是,在运行之后,yarn install
我只看到没有任何依赖关系的那个包。但它适用于 npm
我都试过了yarn
v1.8.0
,v1.7.0
而且v1.6.0
你遇到过烦恼吗?有什么解决办法吗?