web: add eslint

This commit is contained in:
wukko 2024-06-19 17:55:06 +06:00
parent 068af6a965
commit 21e03a407c
No known key found for this signature in database
GPG key ID: 3E30B3F26C7B4AA2
3 changed files with 1289 additions and 2 deletions

9
web/eslint.config.js Normal file
View file

@ -0,0 +1,9 @@
// @ts-check
import eslint from '@eslint/js';
import tseslint from 'typescript-eslint';
export default tseslint.config(
eslint.configs.recommended,
...tseslint.configs.recommended,
);

1276
web/package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -20,13 +20,17 @@
},
"homepage": "https://cobalt.tools/",
"devDependencies": {
"@eslint/js": "^9.5.0",
"@sveltejs/adapter-static": "^3.0.2",
"@sveltejs/kit": "^2.0.0",
"@sveltejs/vite-plugin-svelte": "^3.0.0",
"@types/eslint__js": "^8.42.3",
"eslint": "^8.57.0",
"svelte": "^4.2.7",
"svelte-check": "^3.6.0",
"tslib": "^2.4.1",
"typescript": "^5.0.0",
"typescript": "^5.4.5",
"typescript-eslint": "^7.13.1",
"vite": "^5.0.3"
},
"dependencies": {