Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
guyca committed Jun 23, 2024
1 parent 4ff183b commit ce6e6a0
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 6 deletions.
1 change: 0 additions & 1 deletion packages/eslint-plugin-obsidian/rules/dto/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ export class File {

public findGraph(name: string) {
return this.classNodes.find((node) => {
console.log((node as TSESTree.ClassDeclaration).id?.name);
return node.id?.name === name;
});
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ export function getDependenciesFromSubgraphs(
) {
const paths: {path: string; import: string}[] = [];
const dependencies: string[] = [];

imports.forEach((el) => {
el.specifiers.forEach((specifier) => {
if (subGraphs.includes(specifier.local.name)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ export function reportErrorIfDependencyIsUnresolved(
if (error) {
context.report({
node: node!,
// node: clazz.node,
messageId: 'unresolved-provider-dependencies',
data: {
dependencyName: param,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export const validGraphSimple = `import { uniqueId } from 'lodash';
export const validGraph = `import { uniqueId } from 'lodash';
import { Graph, ObjectGraph, Provides } from 'src';
@Graph()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { unresolvedProviderDependenciesGenerator } from '../../rules/unresolvedP
import { PathResolverStub } from '../stubs/PathResolverStub';
import {
validFileWithTwoGraphs,
validGraphSimple,
validGraph,
validGraphWithSubgraph,
validLifecycleBoundGraphWithSubgraph,
} from './fixtures/validGraphs';
Expand All @@ -16,7 +16,7 @@ ruleTester.run(
unresolvedProviderDependenciesGenerator(new PathResolverStub()),
{
valid: [
validGraphSimple,
validGraph,
validGraphWithSubgraph,
validLifecycleBoundGraphWithSubgraph,
validFileWithTwoGraphs,
Expand Down

0 comments on commit ce6e6a0

Please sign in to comment.