diff --git a/.eslintrc.cjs b/.eslintrc.cjs new file mode 100644 index 0000000..5b32dc1 --- /dev/null +++ b/.eslintrc.cjs @@ -0,0 +1,31 @@ +module.exports = { + root: true, + 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' } + } + ], + parserOptions: { + sourceType: 'module',ecmaVersion: 2020, + extraFileExtensions: ['.svelte'] + }, + env: { + browser: true, + es2017: true, + node: true + }, + rules: { + 'svelte/valid-compile': 'warn', + '@typescript-eslint/no-explicit-any': 'warn' + } +}; \ No newline at end of file diff --git a/.eslintrc.json b/.eslintrc.json deleted file mode 100644 index 3f881ff..0000000 --- a/.eslintrc.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "env": { - "node": true, - "es2021": true - }, - "extends": [ - "eslint:recommended", - "plugin:@typescript-eslint/recommended", - "plugin:svelte/recommended", - "prettier" - ], - "parser": "@typescript-eslint/parser", - "overrides": [ - { - "files": ["*.svelte"], - "parser": "svelte-eslint-parser", - // Parse the ` + +{#if title !== '' || image !== '' || description !== ''} +
+ {@html $_('modal.kindMove.warning')} +
+ {#if $modalStore[0].value.event.kind !== 10003}+ {@html $_('modal.kindMove.warning1')} +
+ {/if} +Select({$_('modal.kindMove.migration')})
+EVENT JSON
+ ++ kind:{$modalStore[0].value.event.kind} + {$modalStore[0].value.event.tags[0][0] === 'd' + ? `, identifier:${$modalStore[0].value.event.tags[0][1]}` + : ''} +
+{$_('nprofile.html.share')}
- -{$_('nprofile.html.openapp')}
- -{$_('nprofile.html.move')}
- -{$_('nprofile.html.delete')}
- -{$_('nprofile.html.share')}
+ +{$_('nprofile.html.openapp')}
+ +{$_('nprofile.html.move')}
+ +{$_('nprofile.html.delete')}
+ +{$_('nprofile.html.info')}
-【pubkey】
-{nip19.npubEncode(pubkey)}
- -【relays】
- -{$_('nprofile.html.search_relays')}
- -{$_('nprofile.html.info')}
+【pubkey】
+{nip19.npubEncode(pubkey)}
+ +【relays】
+ +{$_('nprofile.html.search_relays')}
+ +