mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-06-05 20:54:14 +00:00
44 lines
1.6 KiB
JavaScript
44 lines
1.6 KiB
JavaScript
|
|
import tseslint from 'typescript-eslint';
|
||
|
|
|
||
|
|
export default [
|
||
|
|
{ ignores: ['node_modules/**', '../web/dist/**', 'src/generated/**'] },
|
||
|
|
...tseslint.configs.recommendedTypeChecked.map((config) => ({
|
||
|
|
...config,
|
||
|
|
files: ['**/*.{ts,tsx}'],
|
||
|
|
languageOptions: {
|
||
|
|
...config.languageOptions,
|
||
|
|
parserOptions: {
|
||
|
|
...config.languageOptions?.parserOptions,
|
||
|
|
projectService: true,
|
||
|
|
tsconfigRootDir: import.meta.dirname,
|
||
|
|
},
|
||
|
|
},
|
||
|
|
})),
|
||
|
|
{
|
||
|
|
files: ['**/*.{ts,tsx}'],
|
||
|
|
rules: {
|
||
|
|
'@typescript-eslint/no-deprecated': 'warn',
|
||
|
|
'@typescript-eslint/no-explicit-any': 'off',
|
||
|
|
'@typescript-eslint/no-unsafe-assignment': 'off',
|
||
|
|
'@typescript-eslint/no-unsafe-member-access': 'off',
|
||
|
|
'@typescript-eslint/no-unsafe-call': 'off',
|
||
|
|
'@typescript-eslint/no-unsafe-return': 'off',
|
||
|
|
'@typescript-eslint/no-unsafe-argument': 'off',
|
||
|
|
'@typescript-eslint/no-misused-promises': 'off',
|
||
|
|
'@typescript-eslint/no-floating-promises': 'off',
|
||
|
|
'@typescript-eslint/restrict-template-expressions': 'off',
|
||
|
|
'@typescript-eslint/no-unused-vars': 'off',
|
||
|
|
'@typescript-eslint/no-base-to-string': 'off',
|
||
|
|
'@typescript-eslint/no-redundant-type-constituents': 'off',
|
||
|
|
'@typescript-eslint/unbound-method': 'off',
|
||
|
|
'@typescript-eslint/require-await': 'off',
|
||
|
|
'@typescript-eslint/await-thenable': 'off',
|
||
|
|
'@typescript-eslint/no-empty-function': 'off',
|
||
|
|
'@typescript-eslint/prefer-promise-reject-errors': 'off',
|
||
|
|
'@typescript-eslint/only-throw-error': 'off',
|
||
|
|
'@typescript-eslint/no-unnecessary-type-assertion': 'off',
|
||
|
|
'react-hooks/exhaustive-deps': 'off',
|
||
|
|
},
|
||
|
|
},
|
||
|
|
];
|