core/selectors/eslint.selector.ts
core/selectors/eslint.selector.ts is a file in GovLab Quality. 7 lines of code and 2 definitions.
import type { FilenameCarrier, GovlabSettings, SettingsCarrier } from "#types/eslint.types";
export const govlabSettings = function govlabSettings(context: SettingsCarrier): GovlabSettings {
return context.settings?.govlab ?? {};
};
export const normalizedFilename = function normalizedFilename(context: FilenameCarrier): string {
return context.filename.split("\\").join("/");
};