保存工作区合并前的本地开发现场 ledger-migration-typed-54c0587
This commit is contained in:
1 parent
54c05879d5
commit
d18273ac37
82 files changed
+8878
-4757
No files matched your search
@@ -14,19 +14,15 @@ export default tseslint.config(
|
||||
plugins: { 'react-hooks': reactHooks, 'react-refresh': reactRefresh },
|
||||
rules: {
|
||||
...reactHooks.configs.recommended.rules,
|
||||
'react-hooks/exhaustive-deps': 'error',
|
||||
'react-refresh/only-export-components': ['warn', { allowConstantExport: true }],
|
||||
},
|
||||
},
|
||||
{ files: ['src/**/*.{js,jsx}'], languageOptions: { globals: { ...globals.browser } } },
|
||||
// TypeScript requires var for declarations installed as properties of globalThis by classic scripts.
|
||||
{ files: ['src/shared/browserGlobals.d.ts'], rules: { 'no-var': 'off' } },
|
||||
{
|
||||
files: ['**/*.jsx'],
|
||||
languageOptions: {
|
||||
parserOptions: { ecmaFeatures: { jsx: true } },
|
||||
},
|
||||
plugins: { 'react-hooks': reactHooks },
|
||||
rules: {
|
||||
'react-hooks/rules-of-hooks': 'error',
|
||||
},
|
||||
files: ['src/**/*.{ts,tsx}'],
|
||||
rules: { '@typescript-eslint/ban-ts-comment': ['error', { 'ts-check': false, 'ts-expect-error': true, 'ts-ignore': true, 'ts-nocheck': true }] },
|
||||
},
|
||||
{
|
||||
files: ['**/*.{ts,tsx,jsx}'],
|
||||
|
||||
Reference in new issue
Block a user