Skip to content

Commit 45225bc

Browse files
committed
init
1 parent d154d4c commit 45225bc

29 files changed

+21260
-0
lines changed

.eslintrc.js

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
module.exports = {
2+
env: {
3+
node: true,
4+
browser: true,
5+
es2021: true,
6+
},
7+
8+
extends: [
9+
// add more generic rulesets here, such as:
10+
"eslint:recommended",
11+
"plugin:vue/vue3-recommended",
12+
// 'plugin:vue/recommended' // Use this if you are using Vue.js 2.x.
13+
// "plugin:vue/vue3-essential",
14+
//"plugin:@typescript-eslint/eslint-recommended",
15+
//"plugin:@typescript-eslint/recommended",
16+
"prettier",
17+
"plugin:prettier/recommended", // Enables eslint-plugin-prettier and eslint-config-prettier. This will display prettier errors as ESLint errors. Make sure this is always the last configuration in the extends array.
18+
],
19+
20+
plugins: ["@typescript-eslint", "prettier"],
21+
22+
rules: {
23+
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
24+
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
25+
"prettier/prettier": ["error"],
26+
"vue/no-v-html": "off",
27+
"vue/require-default-prop": "off",
28+
},
29+
30+
root: true,
31+
32+
// https://www.npmjs.com/package/vue-eslint-parser
33+
parser: "vue-eslint-parser",
34+
parserOptions: {
35+
parser: "@typescript-eslint/parser",
36+
// project: "tsconfig.json",
37+
sourceType: "module",
38+
ecmaVersion: 2020,
39+
ecmaFeatures: {
40+
globalReturn: false,
41+
impliedStrict: false,
42+
jsx: false,
43+
},
44+
},
45+
};

.gitignore

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# Logs
2+
logs
3+
*.log
4+
npm-debug.log*
5+
yarn-debug.log*
6+
yarn-error.log*
7+
pnpm-debug.log*
8+
lerna-debug.log*
9+
10+
node_modules
11+
dist
12+
dist-ssr
13+
*.local
14+
15+
# Editor directories and files
16+
.vscode/*
17+
!.vscode/extensions.json
18+
!.vscode/settings.json
19+
.idea
20+
.DS_Store
21+
*.suo
22+
*.ntvs*
23+
*.njsproj
24+
*.sln
25+
*.sw?

.prettierrc

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

.vscode/extensions.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"recommendations": [
3+
"vue.vscode-typescript-vue-plugin",
4+
"Vue.volar"
5+
]
6+
}

.vscode/settings.json

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"editor.codeActionsOnSave": {
3+
"source.fixAll.eslint": true
4+
},
5+
"editor.formatOnSave": true,
6+
"eslint.validate": ["javascript", "javascriptreact", "ts", "vue"],
7+
"[javascript]": {
8+
"editor.defaultFormatter": "esbenp.prettier-vscode",
9+
"editor.formatOnSave": true
10+
},
11+
"[typescript]": {
12+
"editor.defaultFormatter": "esbenp.prettier-vscode",
13+
"editor.formatOnSave": true
14+
},
15+
"[vue]": {
16+
"editor.defaultFormatter": "esbenp.prettier-vscode",
17+
"editor.formatOnSave": true
18+
}
19+
}

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
# web-labctl
22
Labctl web frontend
3+
4+
Local testing: `npx vue serve`

index.html

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<link rel="icon" href="/favicon.ico" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1" />
7+
<title>Labctl</title>
8+
</head>
9+
10+
<body>
11+
<div id="app"></div>
12+
<script type="module" src="/src/main.js"></script>
13+
</body>
14+
</html>

labctl-js.code-workspace

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"folders": [
3+
{
4+
"path": "."
5+
}
6+
]
7+
}

0 commit comments

Comments
 (0)