forked from gunnartorfis/sonner-native-toasts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy patheslint.config.ts
More file actions
37 lines (34 loc) · 888 Bytes
/
Copy patheslint.config.ts
File metadata and controls
37 lines (34 loc) · 888 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
import reactHooks from 'eslint-plugin-react-hooks';
import { defineConfig, globalIgnores } from 'eslint/config';
import tseslint from 'typescript-eslint';
export default defineConfig([
globalIgnores([
'node_modules/**',
'ios/**',
'android/**',
'lib/**',
'.yarn/**',
'.vscode/**',
'.github/**',
'.git/**',
'docs/**',
'example/**',
]),
tseslint.configs.recommended,
reactHooks.configs.flat.recommended,
{
files: ['**/*.ts', '**/*.tsx'],
languageOptions: {
parserOptions: {
tsconfigRootDir: __dirname,
project: './tsconfig.json',
},
},
rules: {
// Intentional imperative API pattern — module-level handlers assigned during render
'react-hooks/globals': 'off',
// Ref mutations are intentional (toastsCounter.current)
'react-hooks/immutability': 'off',
},
},
]);