Onboarding and settings refactor to React #1784
Annotations
10 errors and 3 warnings
Run JS linting:
src/js/settings/components/classifai-onboarding/configuration-status.js#L6
Replace `·isFeatureActive,·getFeature,·getEnabledFeaturesSlugs·` with `⏎↹isFeatureActive,⏎↹getFeature,⏎↹getEnabledFeaturesSlugs,⏎`
|
Run JS linting:
src/js/settings/components/classifai-onboarding/configuration-status.js#L8
'setStep' is defined but never used
|
Run JS linting:
src/js/settings/components/classifai-onboarding/configuration-status.js#L9
'classifAISettings' is not defined
|
Run JS linting:
src/js/settings/components/classifai-onboarding/configuration-status.js#L10
Replace `select·=>·select(·STORE_NAME·).getSettings()·` with `(·select·)·=>⏎↹↹select(·STORE_NAME·).getSettings()⏎↹`
|
|
|
|
|
Run JS linting:
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'·)·}⏎↹↹↹`
|
Run JS linting:
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"`
|
Run JS linting:
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
|
Run JS linting:
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
|
Run JS linting:
src/js/settings/data/hooks.js#L27
React Hook useEffect has a missing dependency: 'isSaving'. Either include it or remove the dependency array
|
Loading