Skip to content
This repository was archived by the owner on Sep 14, 2022. It is now read-only.

Commit e201204

Browse files
committed
add @html-eslint plugin, bump typescript, typescript-eslin
1 parent 78c157c commit e201204

File tree

3 files changed

+87
-50
lines changed

3 files changed

+87
-50
lines changed

.eslintrc.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,16 @@ module.exports = {
1111
rules: {
1212
"@typescript-eslint/ban-ts-comment": "off",
1313
},
14+
overrides: [
15+
{
16+
files: ["*.html"],
17+
plugins: ["@html-eslint"],
18+
parser: "@html-eslint/parser",
19+
rules: {
20+
"@html-eslint/require-lang": "error",
21+
"@html-eslint/require-title": "error",
22+
"@html-eslint/no-multiple-h1": "error"
23+
}
24+
},
25+
],
1426
};

package-lock.json

Lines changed: 70 additions & 47 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@
3535
},
3636
"homepage": "https://github.com/yeonjuan/typescript-eslint-demo#readme",
3737
"dependencies": {
38-
"@typescript-eslint/eslint-plugin": "4.6.0",
39-
"@typescript-eslint/parser": "4.6.0",
38+
"@typescript-eslint/eslint-plugin": "4.9.0",
39+
"@typescript-eslint/parser": "4.9.0",
4040
"bootstrap": "^4.5.2",
4141
"codemirror": "^5.58.1",
4242
"core-js": "^3.6.5",
@@ -47,13 +47,15 @@
4747
"react": "^16.13.1",
4848
"react-bootstrap": "^1.3.0",
4949
"react-dom": "^16.13.1",
50-
"typescript": "4.0.5"
50+
"typescript": "4.1.2"
5151
},
5252
"devDependencies": {
5353
"@babel/core": "^7.11.6",
5454
"@babel/preset-env": "^7.11.5",
5555
"@babel/preset-react": "^7.10.4",
5656
"@babel/preset-typescript": "^7.10.4",
57+
"@html-eslint/eslint-plugin": "^0.6.5",
58+
"@html-eslint/parser": "^0.6.0",
5759
"@types/codemirror": "0.0.98",
5860
"@types/eslint": "^7.2.4",
5961
"@types/jest": "^26.0.14",

0 commit comments

Comments
 (0)