Skip to content

Commit

Permalink
ESLint rule maintenance
Browse files Browse the repository at this point in the history
Rename folders + add a few eslint rules
  • Loading branch information
guyca committed Jun 21, 2024
1 parent 5a484b7 commit 0a8ba95
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ export class PathResolverStub implements PathResolver {
public resolve(context: RuleContext<any, any>, relativeFilePath: string): string {
switch(relativeFilePath) {
case './subgraph':
return `${context.cwd}/tests/unresolvedProviderDependencies/testUtils/subgraph.ts`;
return `${context.cwd}/tests/unresolvedProviderDependencies/fixtures/subgraph.ts`;
default:
return path.join(path.dirname(context.getFilename()), `${relativeFilePath}.ts`);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ import {
validGraphSimple,
validGraphWithSubgraph,
validLifecycleBoundGraphWithSubgraph,
} from './testUtils/validGraphs';
} from './fixtures/validGraphs';
import { unresolvedProviderDependenciesGenerator } from '../../rules/unresolvedProviderDependencies';
import { invalidGraph } from './testUtils/invalidGraphs';
import { invalidGraph } from './fixtures/invalidGraphs';
import { PathResolverStub } from '../stubs/PathResolverStub';

const ruleTester = new RuleTester();
Expand Down

0 comments on commit 0a8ba95

Please sign in to comment.