| 123456789101112131415 |
- import js from '@eslint/js'
- import tseslint from 'typescript-eslint'
- import reactHooks from 'eslint-plugin-react-hooks'
- import globals from 'globals'
- export default tseslint.config(
- { ignores: ['dist/**', 'dist-h5/**', 'node_modules/**', '.taro/**', 'test-results/**', 'playwright-report/**'] },
- js.configs.recommended,
- ...tseslint.configs.recommended,
- {
- languageOptions: { globals: { ...globals.node, ...globals.browser, defineAppConfig: 'readonly', definePageConfig: 'readonly', __APP_ENV__: 'readonly', __APP_ENV_LABEL__: 'readonly', __APP_VERSION__: 'readonly' } },
- plugins: { 'react-hooks': reactHooks },
- rules: { ...reactHooks.configs.recommended.rules },
- },
- )
|