Skip to content

Commit aad76f7

Browse files
committed
switch to react
1 parent eb5d79b commit aad76f7

88 files changed

Lines changed: 3901 additions & 4154 deletions

Some content is hidden

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

ClientApp/.prettierignore

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

ClientApp/.prettierrc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88
"prettier-plugin-organize-imports",
99
"prettier-plugin-tailwindcss"
1010
],
11-
"tailwindFunctions": ["clsx", "cn", "cva"],
11+
"tailwindFunctions": [
12+
"clsx",
13+
"cn"
14+
],
1215
"tailwindStylesheet": "src/App.css",
1316
"tabWidth": 4,
1417
"overrides": [

ClientApp/eslint.config.js

Lines changed: 36 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,44 @@
1+
import js from '@eslint/js';
12
import prettier from 'eslint-config-prettier/flat';
2-
import vue from 'eslint-plugin-vue';
3+
import react from 'eslint-plugin-react';
4+
import reactHooks from 'eslint-plugin-react-hooks';
5+
import globals from 'globals';
6+
import typescript from 'typescript-eslint';
37

4-
import {
5-
defineConfigWithVueTs,
6-
vueTsConfigs,
7-
} from '@vue/eslint-config-typescript';
8-
9-
export default defineConfigWithVueTs(
10-
vue.configs['flat/essential'],
11-
vueTsConfigs.recommended,
8+
/** @type {import('eslint').Linter.Config[]} */
9+
export default [
10+
js.configs.recommended,
11+
...typescript.configs.recommended,
1212
{
13-
ignores: [
14-
'vendor',
15-
'node_modules',
16-
'public',
17-
'bootstrap/ssr',
18-
'src/Types/generated.d.ts',
19-
'tailwind.config.js',
20-
'resources/js/components/ui/*',
21-
],
13+
...react.configs.flat.recommended,
14+
...react.configs.flat['jsx-runtime'], // Required for React 17+
15+
languageOptions: {
16+
globals: {
17+
...globals.browser,
18+
},
19+
},
20+
rules: {
21+
'react/react-in-jsx-scope': 'off',
22+
'react/prop-types': 'off',
23+
'react/no-unescaped-entities': 'off',
24+
},
25+
settings: {
26+
react: {
27+
version: 'detect',
28+
},
29+
},
2230
},
2331
{
32+
plugins: {
33+
'react-hooks': reactHooks,
34+
},
2435
rules: {
25-
'vue/multi-word-component-names': 'off',
26-
'@typescript-eslint/no-explicit-any': 'off',
36+
'react-hooks/rules-of-hooks': 'error',
37+
'react-hooks/exhaustive-deps': 'warn',
2738
},
2839
},
29-
prettier,
30-
);
40+
{
41+
ignores: ['vendor', 'node_modules', 'public', 'bootstrap/ssr', 'tailwind.config.js'],
42+
},
43+
prettier, // Turn off all rules that might conflict with Prettier
44+
];

0 commit comments

Comments
 (0)