mirror of
https://github.com/MHSanaei/3x-ui.git
synced 2026-05-31 10:14:15 +00:00
27 lines
639 B
JavaScript
27 lines
639 B
JavaScript
import tseslint from 'typescript-eslint';
|
|||
import reactHooks from 'eslint-plugin-react-hooks';
|
|||
|
|||
export default [
|
|||
{ ignores: ['node_modules/**', '../web/dist/**', 'src/generated/**'] },
|
|||
{
|
|||
files: ['**/*.{ts,tsx}'],
|
|||
plugins: {
|
|||
'@typescript-eslint': tseslint.plugin,
|
|||
'react-hooks': reactHooks,
|
|||
},
|
|||
languageOptions: {
|
|||
parser: tseslint.parser,
|
|||
parserOptions: {
|
|||
projectService: true,
|
|||
tsconfigRootDir: import.meta.dirname,
|
|||
},
|
|||
},
|
|||
rules: {
|
|||
'@typescript-eslint/no-deprecated': 'warn',
|
|||
},
|
|||
linterOptions: {
|
|||
reportUnusedDisableDirectives: 'off',
|
|||
},
|
|||
},
|
|||
];
|