Add Geo Location Feature #321
Annotations
11 errors and 2 warnings
ES Lint:
assets/js/geo-location/panel/AutoCompleteField.js#L1
Replace `"@wordpress/element"` with `'@wordpress/element'`
|
ES Lint:
assets/js/geo-location/panel/AutoCompleteField.js#L2
Replace `"@wordpress/i18n"` with `'@wordpress/i18n'`
|
ES Lint:
assets/js/geo-location/panel/AutoCompleteField.js#L3
Replace `"@wordpress/components"` with `'@wordpress/components'`
|
ES Lint:
assets/js/geo-location/panel/AutoCompleteField.js#L10
Replace `⏎↹console.log(·location·` with `↹console.log(location`
|
ES Lint:
assets/js/geo-location/panel/AutoCompleteField.js#L14
Replace `⏎↹↹↹↹inputRef.current,⏎↹↹↹↹` with `inputRef.current,·`
|
ES Lint:
assets/js/geo-location/panel/AutoCompleteField.js#L17
Replace `↹↹↹↹↹types:·["geocode"` with `↹↹↹↹types:·['geocode'`
|
ES Lint:
assets/js/geo-location/panel/AutoCompleteField.js#L18
Replace `↹},⏎↹↹↹` with `}`
|
ES Lint:
assets/js/geo-location/panel/AutoCompleteField.js#L21
Replace `"place_changed"` with `'place_changed'`
|
ES Lint:
assets/js/geo-location/panel/AutoCompleteField.js#L27
React Hook useEffect has a missing dependency: 'onPlaceSelected'. Either include it or remove the dependency array. If 'onPlaceSelected' changes too often, find the parent component that defines it and wrap that definition in useCallback
|
ES Lint:
assets/js/geo-location/panel/AutoCompleteField.js#L30
Fragments should contain more than one child - otherwise, there’s no need for a Fragment at all
|
PHP Lint
Process completed with exit code 1.
|
ES Lint:
assets/js/geo-location/panel/AutoCompleteField.js#L11
Unexpected console statement
|
PHP Lint:
includes/classes/Feature/GeoLocation.php#L83
Resource version not set in call to wp_enqueue_script(). This means new versions of the script may not always be loaded due to browser caching.
|