[web] Configure eslint and prettier dev tools

This commit is contained in:
chme 2022-02-19 06:33:31 +01:00
parent de097fcf94
commit d7f1c13585
5 changed files with 1757 additions and 1 deletions

13
web-src/.eslintrc.js Normal file
View File

@ -0,0 +1,13 @@
module.exports = {
env: {
node: true,
},
extends: [
'eslint:recommended',
'plugin:vue/vue3-recommended',
],
rules: {
// override/add rules settings here, such as:
// 'vue/no-unused-vars': 'error'
}
}

5
web-src/.prettierrc.json Normal file
View File

@ -0,0 +1,5 @@
{
"semi": false,
"singleQuote": true,
"trailingComma": "none"
}

3
web-src/jsconfig.json Normal file
View File

@ -0,0 +1,3 @@
{
"include": ["./src/**/*"]
}

1729
web-src/package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -3,9 +3,11 @@
"version": "2.0.0",
"scripts": {
"dev": "vite",
"serve": "vite",
"build": "vite build",
"preview": "vite preview",
"serve": "vite"
"lint": "eslint --ext .js,.vue --ignore-path .gitignore --fix src",
"format": "prettier . --write"
},
"dependencies": {
"@aacassandra/vue3-progressbar": "^1.0.3",
@ -30,6 +32,10 @@
},
"devDependencies": {
"@vitejs/plugin-vue": "^2.2.0",
"eslint": "^8.9.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-vue": "^8.4.1",
"prettier": "2.5.1",
"sass": "^1.49.7",
"vite": "^2.8.1"
}