Skip to content

Commit

Permalink
chore: 添加eslint html解析插件
Browse files Browse the repository at this point in the history
  • Loading branch information
haokejie committed Jul 12, 2023
1 parent c790a60 commit 9b9a8a3
Show file tree
Hide file tree
Showing 4 changed files with 152 additions and 9 deletions.
1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
*.html
*.md
electron/config.json
2 changes: 1 addition & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"plugin:node/recommended",
".eslintrc-auto-import.json" // 自动引入
],
"plugins": ["vue", "@typescript-eslint", "import", "promise", "node"], // 插件
"plugins": ["vue", "@typescript-eslint", "import", "promise", "node", "html"], // 插件
"rules": {
// 单独配置规则,会覆盖extends的规则
"@typescript-eslint/no-var-requires": "off",
Expand Down
144 changes: 144 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions src/index.html
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<title>It's Title</title>
</head>
<body>
<div id="app"></div>
</body>
<head>
<meta charset="UTF-8" />
<title>It's Title</title>
</head>
<body>
<div id="app"></div>
</body>
</html>

0 comments on commit 9b9a8a3

Please sign in to comment.