Merge branch 'claude/heuristic-jones-cb2a26' into service-request
Tests / frontend-test (pull_request) Successful in 1m18s
Tests / frontend-test (pull_request) Successful in 1m18s
This commit is contained in:
@@ -307,6 +307,22 @@ module.exports = {
|
||||
// Rationale to disable: !!{}
|
||||
'no-extra-boolean-cast': 0,
|
||||
// ====================================================================
|
||||
// eslint-plugin-react-hooks (плагин подключён профилем
|
||||
// @microsoft/eslint-config-spfx/lib/profiles/react, но правил он не задаёт)
|
||||
// ====================================================================
|
||||
// RATIONALE: Хуки нельзя звать условно/в циклах — иначе React
|
||||
// перепутает состояние между рендерами.
|
||||
'react-hooks/rules-of-hooks': 2,
|
||||
// RATIONALE: Неполный массив зависимостей useEffect/useCallback/
|
||||
// useMemo — это устаревшее замыкание: эффект продолжает
|
||||
// видеть старые пропсы и state. Держим предупреждением:
|
||||
// там, где отступление осознанное (например, эффект
|
||||
// должен сработать только на смену id, а не на каждое
|
||||
// изменение колбэка), рядом стоит
|
||||
// // eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
// с объяснением причины.
|
||||
'react-hooks/exhaustive-deps': 1,
|
||||
// ====================================================================
|
||||
// @microsoft/eslint-plugin-spfx
|
||||
// ====================================================================
|
||||
'@microsoft/spfx/no-require-ensure': 2,
|
||||
|
||||
Reference in New Issue
Block a user