test upload file to server

This commit is contained in:
Kenta420 2024-02-05 11:45:54 +07:00
parent 16e0e4f9d8
commit aaa60216b2
43 changed files with 1814 additions and 285 deletions

View file

@ -1,9 +1,9 @@
module.exports = {
root: true,
env: {
"es2021": true,
"node": true,
"browser": false
es2021: true,
node: true,
browser: false
},
extends: [
'eslint:recommended',
@ -11,23 +11,16 @@ module.exports = {
'plugin:react-hooks/recommended',
'prettier'
],
ignorePatterns: [
"types/env.d.ts",
"node_modules/**",
"**/dist/**",
],
ignorePatterns: ['types/env.d.ts', 'node_modules/**', '**/dist/**', 'scr/components/ui/**'],
parser: '@typescript-eslint/parser',
parserOptions: {
ecmaVersion: 12,
sourceType: 'module',
sourceType: 'module'
},
plugins: ['react-refresh', '@typescript-eslint', '@tanstack/eslint-plugin-query'],
rules: {
'react-refresh/only-export-components': [
'warn',
{ allowConstantExport: true },
],
"@typescript-eslint/consistent-type-imports": "error",
"react-hooks/exhaustive-deps": "off",
},
'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],
'@typescript-eslint/consistent-type-imports': 'error',
'react-hooks/exhaustive-deps': 'off'
}
}