Skip to content

Commit

Permalink
feat: bump up versions
Browse files Browse the repository at this point in the history
  • Loading branch information
jornfranke committed Jul 8, 2023
1 parent f172e91 commit d3d7136
Show file tree
Hide file tree
Showing 5 changed files with 71 additions and 55 deletions.
28 changes: 22 additions & 6 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,13 +1,29 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'prettier'],
plugins: ['svelte3', '@typescript-eslint'],
ignorePatterns: ['*.cjs'],
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
settings: {
'svelte3/typescript': () => require('typescript')
parserOptions: {
// ...
project: 'tsconfig.json',
extraFileExtensions: ['.svelte'] // This is a required setting in `@typescript-eslint/parser` v4.24.0.
},
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:svelte/recommended',
'plugin:svelte/prettier'
],
overrides: [
{
files: ['*.svelte'],
parser: 'svelte-eslint-parser',
// Parse the `<script>` in `.svelte` as TypeScript by adding the following configuration.
parserOptions: {
parser: '@typescript-eslint/parser'
}
}
],
plugins: ['@typescript-eslint'],
ignorePatterns: ['*.cjs'],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020
Expand Down
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,20 +27,20 @@
"@smui/icon-button": "^7.0.0-beta.14",
"@sveltejs/adapter-auto": "^2.1.0",
"@sveltejs/adapter-static": "^2.0.2",
"@sveltejs/kit": "^1.22.1",
"@sveltejs/kit": "^1.20.4",
"@typescript-eslint/eslint-plugin": "^5.61.0",
"@typescript-eslint/parser": "^5.61.0",
"eslint": "^8.44.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-svelte": "^2.32.2",
"eslint-plugin-svelte": "^2.30.0",
"prettier": "^2.8.8",
"prettier-plugin-svelte": "^2.10.1",
"smui-theme": "^7.0.0-beta.14",
"svelte": "^4.0.5",
"svelte-check": "^3.4.5",
"svelte-preprocess": "^5.0.4",
"svelte": "^4.0.0",
"svelte-check": "^3.4.3",
"svelte-preprocess": "^5.0.3",
"tslib": "^2.6.0",
"typescript": "^5.1.6",
"typescript": "^5.0.0",
"vite": "^4.4.2",
"vitest": "^0.29.8"
},
Expand Down
2 changes: 1 addition & 1 deletion src/app.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8" />
<!-- Material Icons -->
<link rel="stylesheet" href="css/material-icons.css" />
<link rel="stylesheet" href="css/material-icons.css" />
<!-- Material Symbols Outlined -->
<link rel="stylesheet" href="css/material-symbols-outlined.css" />
<!-- Roboto -->
Expand Down
44 changes: 22 additions & 22 deletions static/css/material-symbols-outlined.css
Original file line number Diff line number Diff line change
@@ -1,23 +1,23 @@
@font-face {
font-family: 'Material Symbols Outlined';
font-style: normal;
font-weight: 400;
src: url(../icons/materialsymbolsoutlined/v107/kJF1BvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oDMzByHX9rA6RzaxHMPdY43zj-jCxv3fzvRNU22ZXGJpEpjC_1n-q_4MrImHCIJIZrDCvHOej.woff2) format('woff2');
}
.material-symbols-outlined {
font-family: 'Material Symbols Outlined';
font-weight: normal;
font-style: normal;
font-size: 24px;
line-height: 1;
letter-spacing: normal;
text-transform: none;
display: inline-block;
white-space: nowrap;
word-wrap: normal;
direction: ltr;
-moz-font-feature-settings: 'liga';
-moz-osx-font-smoothing: grayscale;
}
font-family: 'Material Symbols Outlined';
font-style: normal;
font-weight: 400;
src: url(../icons/materialsymbolsoutlined/v107/kJF1BvYX7BgnkSrUwT8OhrdQw4oELdPIeeII9v6oDMzByHX9rA6RzaxHMPdY43zj-jCxv3fzvRNU22ZXGJpEpjC_1n-q_4MrImHCIJIZrDCvHOej.woff2)
format('woff2');
}

.material-symbols-outlined {
font-family: 'Material Symbols Outlined';
font-weight: normal;
font-style: normal;
font-size: 24px;
line-height: 1;
letter-spacing: normal;
text-transform: none;
display: inline-block;
white-space: nowrap;
word-wrap: normal;
direction: ltr;
-moz-font-feature-settings: 'liga';
-moz-osx-font-smoothing: grayscale;
}
40 changes: 20 additions & 20 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,29 +4,29 @@ import { sveltekit } from '@sveltejs/kit/vite';
const config = {
plugins: [sveltekit()],
resolve: {
dedupe: ['svelte'],
dedupe: ['svelte']
},
css: {
// This config is needed for Vite. I don't know why.
// Vite fails with the following error without it:
// 11:54:09 AM [vite] Internal server error: Cannot find module '/.../smui/package.json' imported from '/.../smui/node_modules/vite/dist/node/chunks/dep-f5552faa.js'
// Plugin: vite:css
// File: /.../smui/packages/site/src/routes/__layout.svelte?svelte&type=style&lang.css
// at viteResolve (/.../smui/node_modules/vite/dist/node/chunks/dep-f5552faa.js:60126:25)
// at Function._resolveFilename (/.../smui/node_modules/vite/dist/node/chunks/dep-f5552faa.js:60140:28)
// at Function.Module._load (internal/modules/cjs/loader.js:746:27)
// at Module.require (internal/modules/cjs/loader.js:974:19)
// at require (internal/modules/cjs/helpers.js:93:18)
// at Object.search (/.../smui/node_modules/vite/dist/node/chunks/dep-f5552faa.js:12705:33)
// at async resolvePostcssConfig (/.../smui/node_modules/vite/dist/node/chunks/dep-f5552faa.js:20506:22)
// at async compileCSS (/.../smui/node_modules/vite/dist/node/chunks/dep-f5552faa.js:20329:27)
// at async TransformContext.transform (/.../smui/node_modules/vite/dist/node/chunks/dep-f5552faa.js:20015:50)
// at async Object.transform (/.../smui/node_modules/vite/dist/node/chunks/dep-f5552faa.js:36985:30)
postcss: {}
},
css: {
// This config is needed for Vite. I don't know why.
// Vite fails with the following error without it:
// 11:54:09 AM [vite] Internal server error: Cannot find module '/.../smui/package.json' imported from '/.../smui/node_modules/vite/dist/node/chunks/dep-f5552faa.js'
// Plugin: vite:css
// File: /.../smui/packages/site/src/routes/__layout.svelte?svelte&type=style&lang.css
// at viteResolve (/.../smui/node_modules/vite/dist/node/chunks/dep-f5552faa.js:60126:25)
// at Function._resolveFilename (/.../smui/node_modules/vite/dist/node/chunks/dep-f5552faa.js:60140:28)
// at Function.Module._load (internal/modules/cjs/loader.js:746:27)
// at Module.require (internal/modules/cjs/loader.js:974:19)
// at require (internal/modules/cjs/helpers.js:93:18)
// at Object.search (/.../smui/node_modules/vite/dist/node/chunks/dep-f5552faa.js:12705:33)
// at async resolvePostcssConfig (/.../smui/node_modules/vite/dist/node/chunks/dep-f5552faa.js:20506:22)
// at async compileCSS (/.../smui/node_modules/vite/dist/node/chunks/dep-f5552faa.js:20329:27)
// at async TransformContext.transform (/.../smui/node_modules/vite/dist/node/chunks/dep-f5552faa.js:20015:50)
// at async Object.transform (/.../smui/node_modules/vite/dist/node/chunks/dep-f5552faa.js:36985:30)
postcss: {},
},
test: {
include: ['src/**/*.{test,spec}.{js,ts}']
}
};

export default config;
export default config;

0 comments on commit d3d7136

Please sign in to comment.