[ui] add eslint

feat/vaults
Tomáš Mládek 2022-01-28 16:39:22 +01:00
parent 52e1532f78
commit cee678760d
No known key found for this signature in database
GPG Key ID: ED21612889E75EC5
3 changed files with 989 additions and 432 deletions

23
webui/.eslintrc.json Normal file
View File

@ -0,0 +1,23 @@
{
"env": {
"browser": true,
"es2021": true
},
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"parser": "@typescript-eslint/parser",
"parserOptions": {
"ecmaVersion": "latest",
"sourceType": "module"
},
"plugins": ["svelte3", "@typescript-eslint"],
"overrides": [
{
"files": ["*.svelte"],
"processor": "svelte3/svelte3"
}
],
"rules": {},
"settings": {
"svelte3/typescript": true // load TypeScript as peer dependency
}
}

View File

@ -5,8 +5,8 @@
"scripts": {
"build": "rollup -c",
"dev": "rollup -c -w",
"start": "sirv public --no-clear",
"check": "svelte-check --tsconfig ./tsconfig.json",
"lint": "eslint src",
"clean": "rm -frv public/vendor public/build"
},
"devDependencies": {
@ -19,8 +19,12 @@
"@types/lodash": "^4.14.178",
"@types/lru-cache": "^5.1.1",
"@types/three": "^0.135.0",
"@typescript-eslint/eslint-plugin": "^5.10.1",
"@typescript-eslint/parser": "^5.10.1",
"@yarnpkg/fslib": "^2.6.0",
"@yarnpkg/libzip": "^2.2.2",
"eslint": "^8.7.0",
"eslint-plugin-svelte3": "^3.4.0",
"postcss": "^8.3.11",
"rollup": "^2.59.0",
"rollup-plugin-copy": "^3.4.0",

File diff suppressed because it is too large Load Diff