Skip to content

Commit

Permalink
Merge pull request #140 from tjheffner/update-dependencies
Browse files Browse the repository at this point in the history
Update dependencies
  • Loading branch information
tjheffner authored Mar 19, 2024
2 parents fd83acc + b11bf86 commit bc160be
Show file tree
Hide file tree
Showing 8 changed files with 297 additions and 699 deletions.
24 changes: 14 additions & 10 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,20 +1,24 @@
module.exports = {
root: true,
parser: '@typescript-eslint/parser',
extends: [
'eslint:recommended',
// 'plugin:@typescript-eslint/recommended', // todo: https://stackoverflow.com/questions/57597142/how-to-run-typescript-eslint-on-ts-files-and-eslint-on-js-files-in-the-same-pr
'prettier',
],
plugins: ['svelte3', '@typescript-eslint'],
extends: ['eslint:recommended', 'plugin:svelte/recommended', 'prettier'],
plugins: ['@typescript-eslint'],
ignorePatterns: ['*.cjs'],
overrides: [{ files: ['*.svelte'], processor: 'svelte3/svelte3' }],
settings: {
'svelte3/typescript': () => require('typescript'),
},
overrides: [
{
files: ['*.svelte'],
parser: 'svelte-eslint-parser',
// Parse the `<script>` in `.svelte` as TypeScript by adding the following configuration.
parserOptions: {
parser: '@typescript-eslint/parser',
},
},
],
parserOptions: {
sourceType: 'module',
ecmaVersion: 2019,
project: './tsconfig.json',
extraFileExtensions: ['.svelte'], // This is a required setting in `@typescript-eslint/parser` v4.24.0.
},
env: {
browser: true,
Expand Down
3 changes: 1 addition & 2 deletions netlify.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@
[functions]
directory = "functions"
node_bundler = "esbuild"
external_node_modules = ["mdsvex", "heffnerdotdev", "@resvg/resvg-js"]
external_node_modules = ["mdsvex", "@resvg/resvg-js"]

[build.environment]
NODE_VERSION = "20"
NPM_FLAGS = "-f" # force install for legacy peer deps

[[headers]]
## https://answers.netlify.com/t/content-type-header-not-working-in-netlify-toml/7718
Expand Down
Loading

0 comments on commit bc160be

Please sign in to comment.