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