eslint-config-vanwei
v0.0.1
Published
This is the configurable eslint standard of vanwei in Chengdu R & D center
Downloads
1
Readme
@vanwei/eslint-config
vue2使用方法
pagege.json
{
// ...other config
"devDependencies": {
// ...other config
"@babel/eslint-parser": "^7.12.16",
"@vue/eslint-config-standard": "^6.1.0",
"babel-eslint": "^10.1.0",
"eslint-plugin-html": "^6.2.0",
"eslint": "^7.32.0",
"eslint-plugin-import": "^2.25.3",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^5.1.0",
"eslint-plugin-vue": "^8.0.3",
}
}
.eslintrc.js
// config for vue2
module.exports = {
root: true,
env: {node: true},
parser: 'vue-eslint-parser',
plugins: ['html'],
extends: [
'vanwei'
]
};
vue3使用
yarn add
eslint-plugin-vue
eslint-plugin-import
eslint-plugin-node
eslint-plugin-promise
eslint-plugin-html
typescript
eslint
@typescript-eslint/parser
@typescript-eslint/eslint-plugin
babel-eslint
-D