Skip to content

Commit

Permalink
chore: fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Jakeii committed May 3, 2024
1 parent 7de8ac4 commit 06c2364
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 18 deletions.
34 changes: 18 additions & 16 deletions .eslintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,28 +1,30 @@
module.exports = {
root: true,
extends: [
'eslint:recommended',
'plugin:@typescript-eslint/recommended',
'plugin:svelte/recommended',
'prettier'
],
parser: '@typescript-eslint/parser',
extends: ['eslint:recommended', 'plugin:@typescript-eslint/recommended', 'plugin:svelte/recommended', 'prettier'],
plugins: ['@typescript-eslint'],
overrides: [
{
files: ['*.svelte'],
parser: 'svelte-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser',
},
},
],
settings: {
'svelte3/typescript': () => require('typescript'),
},
parserOptions: {
sourceType: 'module',
ecmaVersion: 2020,
extraFileExtensions: ['.svelte'],
extraFileExtensions: ['.svelte']
},
env: {
browser: true,
es2017: true,
node: true,
node: true
},
};
overrides: [
{
files: ['*.svelte'],
parser: 'svelte-eslint-parser',
parserOptions: {
parser: '@typescript-eslint/parser'
}
}
]
};
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"typescript.tsdk": "node_modules/typescript/lib"
}
4 changes: 2 additions & 2 deletions src/lib/Popdown.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { portal } from 'svelte-portal';
import { type Writable, writable } from 'svelte/store';
const isBrowser = 'document' in globalThis && 'querySelector' in document;
const isBrowser = typeof document !== 'undefined';
export let contentClass = '';
export let position = 'outer-bottom inner-left';
Expand Down Expand Up @@ -58,7 +58,7 @@
class="content {contentClass}"
bind:this={$content}
style:transform={$contentTransformStyle}
style:zIndex
style:z-index={zIndex}
use:portal={target}
>
<slot name="content" />
Expand Down

0 comments on commit 06c2364

Please sign in to comment.