-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy patheslint.config.js
More file actions
50 lines (48 loc) · 1.31 KB
/
Copy patheslint.config.js
File metadata and controls
50 lines (48 loc) · 1.31 KB
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
38
39
40
41
42
43
44
45
46
47
48
49
50
// @ts-check
import { tanstackConfig } from '@tanstack/eslint-config';
import react from 'eslint-plugin-react';
export default [
...tanstackConfig,
{
rules: {
'@typescript-eslint/no-unnecessary-condition': 'off',
},
},
{
// React specific rules
plugins: { react },
settings: { react: { version: 'detect' } },
rules: {
'react/button-has-type': 'error',
'react/jsx-boolean-value': 'error',
'react/jsx-curly-brace-presence': ['error', 'never'],
'react/jsx-fragments': ['error', 'syntax'],
'react/jsx-no-comment-textnodes': 'error',
'react/jsx-no-duplicate-props': 'error',
'react/jsx-no-target-blank': 'error',
'react/no-children-prop': 'error',
'react/no-deprecated': 'error',
'react/no-find-dom-node': 'error',
'react/no-string-refs': 'error',
'react/self-closing-comp': 'error',
'react/void-dom-elements-no-children': 'error',
},
},
{
ignores: [
'node_modules',
'eslint.config.js',
'prettier.config.js',
'frontend/.ai',
'frontend/.tanstack',
'frontend/dist',
'frontend/node_modules',
'frontend/test-results',
'frontend/playwright-report',
'frontend/__screenshots__',
'frontend/.vitest',
'rpc',
'frontend/src/rpc',
],
},
];