blob: dc010b321a34517af7726d428c472a6bfe096d80 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
/** @type {import('eslint').ESLint.ConfigData} */
module.exports = {
extends: [require.resolve('./base.js'), require.resolve('./tailwind.js')],
ignorePatterns: ['public', 'vite.config.ts'],
env: {
browser: true,
node: true
},
rules: {
'no-restricted-syntax': [
'error',
{
selector: "CallExpression[callee.name='useParams']",
message: 'useParams is illegal, use useZodRouteParams!'
},
{
selector: "CallExpression[callee.name='useSearchParams']",
message: 'useSearchParams is illegal, use useZodSearchParams!'
}
]
}
};
|