Skip to content

Commit 51347c1

Browse files
committed
Replace Prettier config with the one provided by sv add
1 parent e57b214 commit 51347c1

19 files changed

+728
-650
lines changed

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Package Managers
2+
package-lock.json
3+
pnpm-lock.yaml
4+
yarn.lock

.prettierrc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"useTabs": true,
3+
"singleQuote": true,
4+
"trailingComma": "none",
5+
"printWidth": 100,
6+
"plugins": ["prettier-plugin-svelte"],
7+
"overrides": [
8+
{
9+
"files": "*.svelte",
10+
"options": {
11+
"parser": "svelte"
12+
}
13+
}
14+
]
15+
}

.vscode/extensions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"recommendations": ["svelte.svelte-vscode"]
2+
"recommendations": ["svelte.svelte-vscode"]
33
}

index.html

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
11
<!doctype html>
22
<html lang="en">
3-
<head>
4-
<meta charset="UTF-8" />
5-
<link rel="icon" href="/favicon.ico" />
6-
<link rel="preconnect" href="https://fonts.gstatic.com" />
7-
<link rel="preload" href="/icons/remixicon.woff2?t=1607859683539" />
8-
<link rel="stylesheet" href="/global.css" />
9-
<link rel="stylesheet" href="/icons/remixicon.css" />
10-
<link
11-
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap"
12-
rel="stylesheet"
13-
/>
14-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
15-
<title>Obliviate</title>
16-
</head>
17-
<body>
18-
<div id="app"></div>
19-
<script type="module" src="/src/main.js"></script>
20-
</body>
3+
<head>
4+
<meta charset="UTF-8" />
5+
<link rel="icon" href="/favicon.ico" />
6+
<link rel="preconnect" href="https://fonts.gstatic.com" />
7+
<link rel="preload" href="/icons/remixicon.woff2?t=1607859683539" />
8+
<link rel="stylesheet" href="/global.css" />
9+
<link rel="stylesheet" href="/icons/remixicon.css" />
10+
<link
11+
href="https://fonts.googleapis.com/css2?family=Inter:wght@400;700&display=swap"
12+
rel="stylesheet"
13+
/>
14+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
15+
<title>Obliviate</title>
16+
</head>
17+
<body>
18+
<div id="app"></div>
19+
<script type="module" src="/src/main.js"></script>
20+
</body>
2121
</html>

jsconfig.json

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
11
{
2-
"compilerOptions": {
3-
"moduleResolution": "node",
4-
"target": "esnext",
5-
"module": "esnext",
6-
/**
7-
* svelte-preprocess cannot figure out whether you have
8-
* a value or a type, so tell TypeScript to enforce using
9-
* `import type` instead of `import` for Types.
10-
*/
11-
"importsNotUsedAsValues": "error",
12-
"isolatedModules": true,
13-
"resolveJsonModule": true,
14-
/**
15-
* To have warnings / errors of the Svelte compiler at the
16-
* correct position, enable source maps by default.
17-
*/
18-
"sourceMap": true,
19-
"esModuleInterop": true,
20-
"skipLibCheck": true,
21-
"forceConsistentCasingInFileNames": true,
22-
"baseUrl": ".",
23-
/**
24-
* Typecheck JS in `.svelte` and `.js` files by default.
25-
* Disable this if you'd like to use dynamic types.
26-
*/
27-
"checkJs": true
28-
},
29-
/**
30-
* Use global.d.ts instead of compilerOptions.types
31-
* to avoid limiting type declarations.
32-
*/
33-
"include": ["src/**/*.d.ts", "src/**/*.js", "src/**/*.svelte"]
2+
"compilerOptions": {
3+
"moduleResolution": "node",
4+
"target": "esnext",
5+
"module": "esnext",
6+
/**
7+
* svelte-preprocess cannot figure out whether you have
8+
* a value or a type, so tell TypeScript to enforce using
9+
* `import type` instead of `import` for Types.
10+
*/
11+
"importsNotUsedAsValues": "error",
12+
"isolatedModules": true,
13+
"resolveJsonModule": true,
14+
/**
15+
* To have warnings / errors of the Svelte compiler at the
16+
* correct position, enable source maps by default.
17+
*/
18+
"sourceMap": true,
19+
"esModuleInterop": true,
20+
"skipLibCheck": true,
21+
"forceConsistentCasingInFileNames": true,
22+
"baseUrl": ".",
23+
/**
24+
* Typecheck JS in `.svelte` and `.js` files by default.
25+
* Disable this if you'd like to use dynamic types.
26+
*/
27+
"checkJs": true
28+
},
29+
/**
30+
* Use global.d.ts instead of compilerOptions.types
31+
* to avoid limiting type declarations.
32+
*/
33+
"include": ["src/**/*.d.ts", "src/**/*.js", "src/**/*.svelte"]
3434
}

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,24 @@
11
{
2-
"name": "obliviate-web",
3-
"private": true,
4-
"version": "1.0.0",
5-
"type": "module",
6-
"scripts": {
7-
"dev": "vite",
8-
"build": "vite build",
9-
"preview": "vite preview"
10-
},
11-
"devDependencies": {
12-
"@sveltejs/vite-plugin-svelte": "^4.0.0",
13-
"prettier": "^3.1.0",
14-
"prettier-plugin-svelte": "^3.2.6",
15-
"svelte": "^5.0.0",
16-
"vite": "^5.4.4"
17-
},
18-
"dependencies": {
19-
"copy-text-to-clipboard": "^3.0.1",
20-
"pbkdf2-hmac": "^1.0.4"
21-
}
2+
"name": "obliviate-web",
3+
"private": true,
4+
"version": "1.0.0",
5+
"type": "module",
6+
"scripts": {
7+
"dev": "vite",
8+
"build": "vite build",
9+
"preview": "vite preview",
10+
"format": "prettier --write .",
11+
"lint": "prettier --check ."
12+
},
13+
"devDependencies": {
14+
"@sveltejs/vite-plugin-svelte": "^4.0.0",
15+
"prettier": "^3.3.2",
16+
"prettier-plugin-svelte": "^3.2.6",
17+
"svelte": "^5.0.0",
18+
"vite": "^5.4.4"
19+
},
20+
"dependencies": {
21+
"copy-text-to-clipboard": "^3.0.1",
22+
"pbkdf2-hmac": "^1.0.4"
23+
}
2224
}

0 commit comments

Comments
 (0)