Skip to content

Commit

Permalink
refactor: ♻️ update for latest packages
Browse files Browse the repository at this point in the history
  • Loading branch information
spences10 committed Jun 30, 2024
1 parent c7b39c9 commit 1bf316a
Show file tree
Hide file tree
Showing 37 changed files with 533 additions and 557 deletions.
13 changes: 0 additions & 13 deletions .eslintignore

This file was deleted.

31 changes: 0 additions & 31 deletions .eslintrc.cjs

This file was deleted.

20 changes: 14 additions & 6 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,13 +1,21 @@
.DS_Store
node_modules
/build

# Output
.output
.vercel
/.svelte-kit
/package
/build

# OS
.DS_Store
Thumbs.db

# Env
.env
.env.*
!.env.example
!.env.test

# Vite
vite.config.js.timestamp-*
vite.config.ts.timestamp-*
.vercel_build_output
.vercel
.env*.local
4 changes: 2 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Ignore files for PNPM, NPM and YARN
pnpm-lock.yaml
# Package Managers
package-lock.json
pnpm-lock.yaml
yarn.lock
1 change: 0 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
{
"useTabs": true,
"singleQuote": true,
"semi": false,
"trailingComma": "all",
"printWidth": 70,
"arrowParens": "avoid",
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
[![Renovate enabled](https://img.shields.io/badge/renovate-enabled-brightgreen.svg)](https://renovatebot.com/)
[![styled with prettier](https://img.shields.io/badge/styled_with-prettier-ff69b4.svg)](https://github.com/prettier/prettier)

## CV using SvelteKit and MDSveX
## CV using SvelteKit and MDSveX
33 changes: 33 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
import js from '@eslint/js';
import prettier from 'eslint-config-prettier';
import svelte from 'eslint-plugin-svelte';
import globals from 'globals';
import ts from 'typescript-eslint';

/** @type {import('eslint').Linter.FlatConfig[]} */
export default [
js.configs.recommended,
...ts.configs.recommended,
...svelte.configs['flat/recommended'],
prettier,
...svelte.configs['flat/prettier'],
{
languageOptions: {
globals: {
...globals.browser,
...globals.node,
},
},
},
{
files: ['**/*.svelte'],
languageOptions: {
parserOptions: {
parser: ts.parser,
},
},
},
{
ignores: ['build/', '.svelte-kit/', 'dist/'],
},
];
8 changes: 4 additions & 4 deletions mdsvex.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { defineMDSveXConfig as defineConfig } from 'mdsvex'
import remarkExternalLinks from 'remark-external-links'
import { defineMDSveXConfig as defineConfig } from 'mdsvex';
import remarkExternalLinks from 'remark-external-links';

const config = defineConfig({
extensions: ['.svelte.md', '.md', '.svx'],
Expand All @@ -15,6 +15,6 @@ const config = defineConfig({
],
],
rehypePlugins: [],
})
});

export default config
export default config;
47 changes: 23 additions & 24 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "cv",
"version": "0.2.0",
"version": "0.3.0",
"private": true,
"scripts": {
"dev": "vite dev",
Expand All @@ -17,40 +17,39 @@
"cspell": "cspell '**/*.md' --config cspell.json --wordsOnly"
},
"devDependencies": {
"@playwright/test": "^1.44.1",
"@sveltejs/adapter-auto": "^3.2.1",
"@sveltejs/kit": "^2.5.10",
"@sveltejs/vite-plugin-svelte": "^3.1.1",
"@playwright/test": "^1.28.1",
"@sveltejs/adapter-auto": "^3.0.0",
"@sveltejs/kit": "^2.0.0",
"@sveltejs/vite-plugin-svelte": "^3.0.0",
"@tailwindcss/typography": "^0.5.13",
"@testing-library/svelte": "^5.1.0",
"@types/eslint": "8.56.10",
"@typescript-eslint/eslint-plugin": "^7.12.0",
"@typescript-eslint/parser": "^7.12.0",
"@testing-library/svelte": "^5.2.0",
"@types/eslint": "^8.56.7",
"autoprefixer": "^10.4.19",
"cspell": "^8.8.4",
"daisyui": "^4.12.2",
"cspell": "^8.9.1",
"daisyui": "^4.12.10",
"date-fns": "^3.6.0",
"eslint": "^9.4.0",
"eslint": "^9.0.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-svelte": "^2.39.0",
"fathom-client": "^3.6.0",
"eslint-plugin-svelte": "^2.36.0",
"fathom-client": "^3.7.0",
"globals": "^15.0.0",
"jsdom": "^24.1.0",
"mdsvex": "^0.11.2",
"postcss": "^8.4.38",
"postcss-load-config": "^6.0.1",
"prettier": "^3.3.1",
"prettier-plugin-svelte": "^3.2.4",
"prettier-plugin-tailwindcss": "^0.6.2",
"prettier": "^3.1.1",
"prettier-plugin-svelte": "^3.1.2",
"prettier-plugin-tailwindcss": "^0.6.4",
"remark-external-links": "^9.0.1",
"svead": "^0.0.4",
"svelte": "^5.0.0-next.1",
"svelte-check": "^3.8.0",
"svelte-check": "^3.6.0",
"tailwindcss": "^3.4.4",
"theme-change": "^2.5.0",
"tslib": "^2.6.3",
"typescript": "^5.4.5",
"vite": "^5.2.13",
"vitest": "^1.6.0"
"tslib": "^2.4.1",
"typescript": "^5.0.0",
"typescript-eslint": "^8.0.0-alpha.20",
"vite": "^5.0.3",
"vitest": "^1.2.0"
},
"type": "module"
}
}
8 changes: 4 additions & 4 deletions playwright.config.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import type { PlaywrightTestConfig } from '@playwright/test'
import type { PlaywrightTestConfig } from '@playwright/test';

const config: PlaywrightTestConfig = {
webServer: {
command: 'pnpm run build && pnpm run preview',
command: 'npm run build && npm run preview',
port: 4173,
},
testDir: 'tests',
testMatch: /(.+\.)?(test|spec)\.[jt]s/,
}
};

export default config
export default config;
Loading

0 comments on commit 1bf316a

Please sign in to comment.