Skip to content

Commit

Permalink
Merge pull request #1 from mstop4/legend
Browse files Browse the repository at this point in the history
Add Legend
  • Loading branch information
mstop4 authored Oct 1, 2023
2 parents 557addb + 0ea50af commit 0b54de7
Show file tree
Hide file tree
Showing 17 changed files with 1,075 additions and 124 deletions.
21 changes: 15 additions & 6 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,23 @@
},
"extends": [
"eslint:recommended",
"plugin:@typescript-eslint/recommended"
"plugin:@typescript-eslint/recommended",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": [
"@typescript-eslint"
"@typescript-eslint",
"prettier"
],
"rules": {
"indent": [
"error",
2
],
// "indent": [
// "error",
// 2
// ],
"linebreak-style": [
"error",
"windows"
Expand All @@ -31,6 +33,13 @@
"semi": [
"error",
"always"
],
"prettier/prettier": [
"error",
{
"endOfLine": "auto",
"tabWidth": 2
}
]
}
}
3 changes: 3 additions & 0 deletions .lintstagedrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@ export default {
'**/*.(js|json)': () => [
`npm run prettier`,
`npm run lint`,
],
'**/*.css': () => [
`npm run prettier`,
]
};
2 changes: 2 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
<html>
<head lang="en">
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Bunny Snek Nether Network Map</title>
<link rel="stylesheet" href="src/style.css" />
</head>
<body>
<script type="module" src="src/main.ts"></script>
<div id="legendContainer"></div>
</body>
</html>
Loading

0 comments on commit 0b54de7

Please sign in to comment.