Skip to content

Commit 9469581

Browse files
committed
rename and format
1 parent 96536b3 commit 9469581

12 files changed

+133
-133
lines changed

.eslintrc.cjs

+19-19
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
module.exports = {
2-
root: true,
3-
parser: '@typescript-eslint/parser',
4-
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],
5-
plugins: ['svelte3', '@typescript-eslint'],
6-
ignorePatterns: ['*.cjs'],
7-
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
8-
settings: {
9-
'svelte3/typescript': () => require('typescript')
10-
},
11-
parserOptions: {
12-
sourceType: 'module',
13-
ecmaVersion: 2020
14-
},
15-
env: {
16-
browser: true,
17-
es2017: true,
18-
node: true
19-
}
20-
};
2+
root: true,
3+
parser: '@typescript-eslint/parser',
4+
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],
5+
plugins: ['svelte3', '@typescript-eslint'],
6+
ignorePatterns: ['*.cjs'],
7+
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
8+
settings: {
9+
'svelte3/typescript': () => require('typescript')
10+
},
11+
parserOptions: {
12+
sourceType: 'module',
13+
ecmaVersion: 2020
14+
},
15+
env: {
16+
browser: true,
17+
es2017: true,
18+
node: true
19+
}
20+
}

.prettierrc

+11-11
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
2-
"semi": false,
3-
"useTabs": false,
4-
"singleQuote": true,
5-
"trailingComma": "none",
6-
"tabWidth": 2,
7-
"printWidth": 120,
2+
"semi": false,
3+
"useTabs": false,
4+
"singleQuote": true,
5+
"trailingComma": "none",
6+
"tabWidth": 2,
7+
"printWidth": 120,
88

9-
"svelteSortOrder": "options-scripts-styles-markup",
10-
"svelteAllowShorthand": true,
9+
"svelteSortOrder": "options-scripts-styles-markup",
10+
"svelteAllowShorthand": true,
1111

12-
"plugins": ["prettier-plugin-svelte"],
13-
"pluginSearchDirs": ["."],
14-
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
12+
"plugins": ["prettier-plugin-svelte"],
13+
"pluginSearchDirs": ["."],
14+
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
1515
}

.vscode/extensions.json

+2-5
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
{
2-
"recommendations": [
3-
"esbenp.prettier-vscode",
4-
"dbaeumer.vscode-eslint"
5-
]
6-
}
2+
"recommendations": ["esbenp.prettier-vscode", "dbaeumer.vscode-eslint"]
3+
}

.vscode/settings.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
"[typescript]": {
77
"editor.formatOnSave": true,
8-
"editor.formatOnPaste": true,
8+
"editor.formatOnPaste": true
99
},
1010

1111
"[svelte]": {

package.json

+35-32
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,37 @@
11
{
2-
"name": "sil-jobs-board",
3-
"version": "0.0.1",
4-
"scripts": {
5-
"dev": "vite dev",
6-
"build": "svelte-kit sync && svelte-package",
7-
"prepublishOnly": "echo 'Did you mean to publish `./package/`, instead of `./`?' && exit 1",
8-
"test": "playwright test",
9-
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
10-
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
11-
"lint": "prettier --plugin-search-dir . --check . && eslint .",
12-
"format": "prettier --plugin-search-dir . --write ."
13-
},
14-
"devDependencies": {
15-
"@playwright/test": "^1.28.1",
16-
"@silintl/ui-components": "^8.1.0",
17-
"@sveltejs/adapter-auto": "^1.0.0",
18-
"@sveltejs/kit": "^1.0.0",
19-
"@sveltejs/package": "^1.0.0",
20-
"@typescript-eslint/eslint-plugin": "^5.45.0",
21-
"@typescript-eslint/parser": "^5.45.0",
22-
"eslint": "^8.28.0",
23-
"eslint-config-prettier": "^8.5.0",
24-
"eslint-plugin-svelte3": "^4.0.0",
25-
"prettier": "^2.8.0",
26-
"prettier-plugin-svelte": "^2.8.1",
27-
"svelte": "^3.54.0",
28-
"svelte-check": "^3.0.1",
29-
"tslib": "^2.4.1",
30-
"typescript": "^4.9.3",
31-
"vite": "^4.0.0"
32-
},
33-
"type": "module"
2+
"name": "sveltekit-ui-components",
3+
"version": "0.0.1",
4+
"author": {
5+
"name": "Michael Wilson"
6+
},
7+
"scripts": {
8+
"dev": "vite dev",
9+
"build": "svelte-kit sync && svelte-package",
10+
"prepublishOnly": "echo 'Did you mean to publish `./package/`, instead of `./`?' && exit 1",
11+
"test": "playwright test",
12+
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
13+
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
14+
"lint": "prettier --plugin-search-dir . --check . && eslint .",
15+
"format": "prettier --plugin-search-dir . --write ."
16+
},
17+
"devDependencies": {
18+
"@playwright/test": "^1.28.1",
19+
"@silintl/ui-components": "^8.1.0",
20+
"@sveltejs/adapter-auto": "^1.0.0",
21+
"@sveltejs/kit": "^1.0.0",
22+
"@sveltejs/package": "^1.0.0",
23+
"@typescript-eslint/eslint-plugin": "^5.45.0",
24+
"@typescript-eslint/parser": "^5.45.0",
25+
"eslint": "^8.28.0",
26+
"eslint-config-prettier": "^8.5.0",
27+
"eslint-plugin-svelte3": "^4.0.0",
28+
"prettier": "^2.8.0",
29+
"prettier-plugin-svelte": "^2.8.1",
30+
"svelte": "^3.54.0",
31+
"svelte-check": "^3.0.1",
32+
"tslib": "^2.4.1",
33+
"typescript": "^4.9.3",
34+
"vite": "^4.0.0"
35+
},
36+
"type": "module"
3437
}

playwright.config.ts

+8-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import type { PlaywrightTestConfig } from '@playwright/test';
1+
import type { PlaywrightTestConfig } from '@playwright/test'
22

33
const config: PlaywrightTestConfig = {
4-
webServer: {
5-
command: 'npm run build && npm run preview',
6-
port: 4173
7-
},
8-
testDir: 'tests'
9-
};
4+
webServer: {
5+
command: 'npm run build && npm run preview',
6+
port: 4173
7+
},
8+
testDir: 'tests'
9+
}
1010

11-
export default config;
11+
export default config

src/app.d.ts

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
// See https://kit.svelte.dev/docs/types#app
22
// for information about these interfaces
33
declare global {
4-
namespace App {
5-
// interface Error {}
6-
// interface Locals {}
7-
// interface PageData {}
8-
// interface Platform {}
9-
}
4+
namespace App {
5+
// interface Error {}
6+
// interface Locals {}
7+
// interface PageData {}
8+
// interface Platform {}
9+
}
1010
}
1111

12-
export {};
12+
export {}

src/app.html

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
11
<!DOCTYPE html>
22
<html lang="en">
3-
<head>
4-
<meta charset="utf-8" />
5-
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
6-
<!-- Add support for Web Components to older browsers. -->
3+
<head>
4+
<meta charset="utf-8" />
5+
<link rel="icon" href="%sveltekit.assets%/favicon.png" />
6+
<!-- Add support for Web Components to older browsers. -->
77
<script src="./node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
88

99
<!-- Your application must load the Roboto and Material Icons fonts. -->
10-
<link rel="preconnect" href="https://fonts.googleapis.com">
11-
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
12-
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet">
13-
<link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet">
14-
<meta name="viewport" content="width=device-width, initial-scale=1" />
15-
%sveltekit.head%
16-
</head>
17-
<body>
18-
<div>%sveltekit.body%</div>
19-
</body>
10+
<link rel="preconnect" href="https://fonts.googleapis.com" />
11+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
12+
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500" rel="stylesheet" />
13+
<link href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" rel="stylesheet" />
14+
<meta name="viewport" content="width=device-width, initial-scale=1" />
15+
%sveltekit.head%
16+
</head>
17+
<body>
18+
<div>%sveltekit.body%</div>
19+
</body>
2020
</html>

src/lib/Footer.svelte

+20-20
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1+
<style>
2+
.app-footer {
3+
text-align: center;
4+
margin: 8px;
5+
color: hsla(0, 0%, 40%, 1);
6+
/* make footer stick to the bottom */
7+
position: fixed;
8+
bottom: 0;
9+
right: 0;
10+
left: 0;
11+
text-align: center;
12+
}
13+
.app-footer a {
14+
text-decoration: none;
15+
color: hsla(210, 100%, 36%, 1);
16+
}
17+
</style>
18+
119
<footer class="app-footer">
2-
<p>Unauthorized use of this site is prohibited and may be subjected to civil and criminal prosecution.</p>
20+
<p>Unauthorized use of this site is prohibited and may be subjected to civil and criminal prosecution.</p>
321

4-
<a href="/" target="_blank" class="">Want help?</a>
22+
<a href="/" target="_blank" class="">Want help?</a>
523
</footer>
6-
7-
<style>
8-
.app-footer {
9-
text-align: center;
10-
margin: 8px;
11-
color: hsla(0, 0%, 40%, 1);
12-
/* make footer stick to the bottom */
13-
position: fixed;
14-
bottom: 0;
15-
right: 0;
16-
left: 0;
17-
text-align: center;
18-
}
19-
.app-footer a {
20-
text-decoration: none;
21-
color: hsla(210, 100%, 36%, 1);
22-
}
23-
</style>

src/lib/_index.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,4 @@
1313
}
1414
.material-icons.md-48 {
1515
font-size: 48px;
16-
}
16+
}

svelte.config.js

+10-10
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
1-
import adapter from '@sveltejs/adapter-auto';
2-
import { vitePreprocess } from '@sveltejs/kit/vite';
1+
import adapter from '@sveltejs/adapter-auto'
2+
import { vitePreprocess } from '@sveltejs/kit/vite'
33

44
/** @type {import('@sveltejs/kit').Config} */
55
const config = {
6-
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
7-
// for more information about preprocessors
8-
preprocess: vitePreprocess(),
6+
// Consult https://kit.svelte.dev/docs/integrations#preprocessors
7+
// for more information about preprocessors
8+
preprocess: vitePreprocess(),
99

10-
kit: {
11-
adapter: adapter()
12-
}
13-
};
10+
kit: {
11+
adapter: adapter()
12+
}
13+
}
1414

15-
export default config;
15+
export default config

vite.config.ts

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import { sveltekit } from '@sveltejs/kit/vite';
2-
import type { UserConfig } from 'vite';
1+
import { sveltekit } from '@sveltejs/kit/vite'
2+
import type { UserConfig } from 'vite'
33

44
const config: UserConfig = {
5-
plugins: [sveltekit()]
6-
};
5+
plugins: [sveltekit()]
6+
}
77

8-
export default config;
8+
export default config

0 commit comments

Comments
 (0)