Onboarding and settings refactor to React #1784
Annotations
10 errors and 3 warnings
eslint:
src/js/settings/components/classifai-onboarding/configuration-status.js#L6
Replace `·isFeatureActive,·getFeature,·getEnabledFeaturesSlugs·` with `⏎↹isFeatureActive,⏎↹getFeature,⏎↹getEnabledFeaturesSlugs,⏎`
|
eslint:
src/js/settings/components/classifai-onboarding/configuration-status.js#L8
'setStep' is defined but never used
|
eslint:
src/js/settings/components/classifai-onboarding/configuration-status.js#L9
'classifAISettings' is not defined
|
eslint:
src/js/settings/components/classifai-onboarding/configuration-status.js#L10
Replace `select·=>·select(·STORE_NAME·).getSettings()·` with `(·select·)·=>⏎↹↹select(·STORE_NAME·).getSettings()⏎↹`
|
|
|
|
|
eslint:
src/js/settings/components/classifai-onboarding/configuration-status.js#L28
Replace `'classifai-setup-title'>{·__(·'Welcome·to·ClassifAI',·'classifai'·)·}` with `"classifai-setup-title">⏎↹↹↹↹{·__(·'Welcome·to·ClassifAI',·'classifai'·)·}⏎↹↹↹`
|
eslint:
src/js/settings/components/classifai-onboarding/configuration-status.js#L29
Replace `'classifai-onboarding__configure·classifai-onboarding__configure--status'` with `"classifai-onboarding__configure·classifai-onboarding__configure--status"`
|
eslint:
src/js/settings/components/classifai-onboarding/configure-features.js#L28
React Hook useEffect has a missing dependency: 'setSaveErrors'. Either include it or remove the dependency array
|
eslint:
src/js/settings/components/classifai-onboarding/configure-features.js#L40
React Hook useEffect has missing dependencies: 'enabledFeatures', 'errors.length', 'featureIndex', and 'setStep'. Either include them or remove the dependency array. If 'setStep' changes too often, find the parent component that defines it and wrap that definition in useCallback
|
eslint:
src/js/settings/data/hooks.js#L27
React Hook useEffect has a missing dependency: 'isSaving'. Either include it or remove the dependency array
|