mirror of
https://github.com/Unleash/unleash.git
synced 2025-02-04 00:18:01 +01:00
6673d131fe
This commit changes our linter/formatter to biome (https://biomejs.dev/) Causing our prehook to run almost instantly, and our "yarn lint" task to run in sub 100ms. Some trade-offs: * Biome isn't quite as well established as ESLint * Are we ready to install a different vscode plugin (the biome plugin) instead of the prettier plugin The configuration set for biome also has a set of recommended rules, this is turned on by default, in order to get to something that was mergeable I have turned off a couple the rules we seemed to violate the most, that we also explicitly told eslint to ignore.
15 lines
608 B
TypeScript
15 lines
608 B
TypeScript
import { IPrivateProjectChecker } from './privateProjectCheckerType';
|
|
import { ProjectAccess } from './privateProjectStore';
|
|
|
|
export class FakePrivateProjectChecker implements IPrivateProjectChecker {
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
async getUserAccessibleProjects(userId: number): Promise<ProjectAccess> {
|
|
throw new Error('Method not implemented.');
|
|
}
|
|
|
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
hasAccessToProject(userId: number, projectId: string): Promise<boolean> {
|
|
throw new Error('Method not implemented.');
|
|
}
|
|
}
|