mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
* Introduce package for sharing eslint and prettier configurations Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com> Signed-off-by: Janne Savolainen <janne.savolainen@live.fi> * Start using eslint and prettier in packages Co-authored-by: Mikko Aspiala <mikko.aspiala@gmail.com> Signed-off-by: Janne Savolainen <janne.savolainen@live.fi> --------- Signed-off-by: Janne Savolainen <janne.savolainen@live.fi>
16 lines
396 B
TypeScript
16 lines
396 B
TypeScript
import { getFeature } from "@k8slens/feature-core";
|
|
import { autoRegister } from "@ogre-tools/injectable-extension-for-auto-registration";
|
|
|
|
export const applicationFeature = getFeature({
|
|
id: "application",
|
|
|
|
register: (di) => {
|
|
autoRegister({
|
|
di,
|
|
targetModule: module,
|
|
|
|
getRequireContexts: () => [require.context("./", true, /\.injectable\.(ts|tsx)$/)],
|
|
});
|
|
},
|
|
});
|