[ui] add eslint
parent
52e1532f78
commit
cee678760d
|
@ -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
|
||||
}
|
||||
}
|
|
@ -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",
|
||||
|
|
1392
webui/yarn.lock
1392
webui/yarn.lock
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue