Skip to content

Commit 10aba33

Browse files
committed
tech(.eslint.cjs): fix eslint-plugin-react-hooks config
1 parent 8b7c3dd commit 10aba33

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/vkui/.eslintrc.cjs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ module.exports = {
3333
Element: true,
3434
},
3535
rules: {
36+
'react-hooks/immutability': 'warn', // TODO [#6919] поменять на 'error'
37+
'react-hooks/refs': 'warn', // TODO [#6919] поменять на 'error'
3638
'no-restricted-imports': [
3739
'error',
3840
{
@@ -189,6 +191,7 @@ module.exports = {
189191
extends: ['plugin:@vitest/legacy-recommended'],
190192
plugins: ['@vitest'],
191193
rules: {
194+
'react-hooks/globals': 'warn', // TODO [#6919] поменять на 'error' (при необходимости, точечно отключить в тестах)
192195
'@vitest/valid-describe-callback': 'off',
193196
'@vitest/expect-expect': 'off',
194197
'@vitest/valid-title': 'off',

0 commit comments

Comments
 (0)