Skip to content

Commit 1b78ae0

Browse files
committed
merging v3.0
2 parents a103af6 + f5d3fda commit 1b78ae0

43 files changed

Lines changed: 1006 additions & 481 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

eslint.config.js

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

eslint.config.ts

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
import js from '@eslint/js'
2+
import globals from 'globals'
3+
import reactHooks from 'eslint-plugin-react-hooks'
4+
import reactRefresh from 'eslint-plugin-react-refresh'
5+
import tseslint from 'typescript-eslint'
6+
7+
export default tseslint.config(
8+
{ ignores: ['dist', '.vite'] },
9+
{
10+
extends: [js.configs.recommended, ...tseslint.configs.recommended],
11+
files: ['**/*.{ts,tsx}'],
12+
languageOptions: {
13+
ecmaVersion: 2020,
14+
globals: globals.browser,
15+
},
16+
plugins: {
17+
'react-hooks': reactHooks,
18+
'react-refresh': reactRefresh,
19+
},
20+
rules: {
21+
...reactHooks.configs.recommended.rules,
22+
'react-refresh/only-export-components': [
23+
'warn',
24+
{ allowConstantExport: true },
25+
],
26+
'no-unused-vars': 'off',
27+
'@typescript-eslint/no-unused-vars': ['error', { varsIgnorePattern: '^[A-Z_]' }],
28+
'@typescript-eslint/no-explicit-any': 'warn',
29+
'@typescript-eslint/ban-ts-comment': 'warn'
30+
},
31+
},
32+
)

index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040
<body>
4141
<div id="root"></div>
42-
<script type="module" src="/src/main.jsx"></script>
42+
<script type="module" src="/src/main.tsx"></script>
4343
<script src="coi-serviceworker.js"></script>
4444
</body>
4545

0 commit comments

Comments
 (0)