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)
|
||||
|
||||
Reference in New Issue
Block a user