Skip to content

Commit 1b845f8

Browse files
authored
feat!: v4 (#41)
* fix: upgrade eslint to v9 * fix: upgrade to react v19, react-leaflet v5 * fix!: upgrade to pouchdb v9 * fix: call getAttachment with wrong Id that caused not found in database and re-download the tile * feat: add debugOnUI * fix: fix logging * fix: remove vite-plugin-node-polyfills * chore: update vscode formatter in workspace
1 parent 083b451 commit 1b845f8

File tree

9 files changed

+3368
-3503
lines changed

9 files changed

+3368
-3503
lines changed

.eslintrc.cjs

Lines changed: 0 additions & 23 deletions
This file was deleted.

.vscode/settings.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
{
2-
"typescript.tsdk": "node_modules\\typescript\\lib"
2+
"typescript.tsdk": "node_modules\\typescript\\lib",
3+
"[typescript]": {
4+
"editor.defaultFormatter": "esbenp.prettier-vscode"
5+
},
36
}

eslint.config.js

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';
2+
import globals from 'globals';
3+
import eslintConfigPrettier from 'eslint-config-prettier';
4+
import pluginJs from '@eslint/js';
5+
import tseslint from 'typescript-eslint';
6+
import reactPlugin from 'eslint-plugin-react';
7+
import reactRefresh from 'eslint-plugin-react-refresh';
8+
import reactHooks from 'eslint-plugin-react-hooks';
9+
10+
export default [
11+
pluginJs.configs.recommended,
12+
reactPlugin.configs.flat.recommended,
13+
reactPlugin.configs.flat['jsx-runtime'],
14+
...tseslint.configs.recommended,
15+
eslintConfigPrettier,
16+
{
17+
ignores: ['dist', '.eslintrc.cjs'],
18+
languageOptions: {
19+
globals: {
20+
...globals.browser,
21+
},
22+
23+
parser: tseslint.parser,
24+
},
25+
plugins: {
26+
'react-hooks': reactHooks,
27+
'react-refresh': reactRefresh,
28+
},
29+
rules: {
30+
...reactHooks.configs.recommended.rules,
31+
'prettier/prettier': 'error',
32+
33+
'react-refresh/only-export-components': [
34+
'warn',
35+
{
36+
allowConstantExport: true,
37+
},
38+
],
39+
40+
'@typescript-eslint/no-explicit-any': 'off',
41+
},
42+
},
43+
eslintPluginPrettierRecommended,
44+
];

0 commit comments

Comments
 (0)