Upgrade lint and dev tooling to latest majors
Bump eslint to ^10, @eslint/js to ^10, eslint-plugin-ember to ^13, eslint-plugin-n to ^18, globals to ^17, stylelint to ^17, stylelint-config-standard to ^40, sinon to ^22, and concurrently to ^10. Fix three new lint violations surfaced by the newer versions: - Remove redundant padding-left after padding shorthand (stylelint 17) - Remove useless null assignment before find() (eslint 10 no-useless-assignment) - Attach caught error as cause on rethrown Error (eslint 10 preserve-caught-error)
This commit is contained in:
@@ -179,10 +179,8 @@ export default class SearchController extends Controller {
|
||||
const targetName = params.selected || params.q;
|
||||
|
||||
if (targetName && pois.length > 0) {
|
||||
let matchedPlace = null;
|
||||
|
||||
// 1. Exact Name Match
|
||||
matchedPlace = pois.find(
|
||||
let matchedPlace = pois.find(
|
||||
(p) =>
|
||||
p.osmTags &&
|
||||
(p.osmTags.name === targetName || p.osmTags['name:en'] === targetName)
|
||||
|
||||
@@ -114,7 +114,7 @@ export default class ImageProcessorService extends Service {
|
||||
});
|
||||
});
|
||||
} catch (e) {
|
||||
throw new Error(`Failed to process image: ${e.message}`);
|
||||
throw new Error(`Failed to process image: ${e.message}`, { cause: e });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1530,7 +1530,6 @@ button.create-place {
|
||||
color: #5f6368;
|
||||
border-radius: 50%;
|
||||
margin-left: 4px;
|
||||
padding-left: 8px;
|
||||
}
|
||||
|
||||
.search-submit-btn:hover {
|
||||
|
||||
Reference in New Issue
Block a user