Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

给webpack前端工程添加.eslintrc和.editorconfig #1

Open
valleylmh opened this issue Oct 14, 2018 · 0 comments
Open

给webpack前端工程添加.eslintrc和.editorconfig #1

valleylmh opened this issue Oct 14, 2018 · 0 comments

Comments

@valleylmh
Copy link
Owner

1、增加.eslintrc文件,需要安装如下npm包:

"babel-eslint": "^8.2.3",
    "eslint": "^4.19.1",
    "eslint-config-standard": "^11.0.0",
    "eslint-loader": "^2.0.0",
    "eslint-plugin-html": "^4.0.3",
    "eslint-plugin-import": "^2.12.0",
    "eslint-plugin-node": "^6.0.1",
    "eslint-plugin-promise": "^3.7.0",
    "eslint-plugin-standard": "^3.1.0",

2、增加.editorconfig文件,代码编辑器需要按照插件

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant