Skip to content

Instantly share code, notes, and snippets.

@imzhi
Created January 11, 2021 07:59
Show Gist options
  • Save imzhi/53d03ea1a1bc9a3141dffc48db4c887f to your computer and use it in GitHub Desktop.
Save imzhi/53d03ea1a1bc9a3141dffc48db4c887f to your computer and use it in GitHub Desktop.
vscode eslint配置文件
{
"env": {
"browser": true,
"es2021": true
},
"extends": [
"airbnb-base"
],
"parserOptions": {
"sourceType": "module",
"ecmaVersion": 12
},
"rules": {
},
"plugins": [
"html"
]
}
@imzhi
Copy link
Author

imzhi commented Jan 11, 2021

cnpm 全局安装软件包:

cnpm install -g eslint eslint-config-airbnb-base eslint-plugin-import eslint-plugin-html

关于 VSCode ESLint 的配置,参考:https://b.imzhi.me/d/23-vscode-eslint

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment