eslint-plugin-obsidian 2.6.1 → 2.6.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ast/utils.d.ts +1 -1
- package/dist/ast/utils.d.ts.map +1 -1
- package/dist/dto/context.d.ts +12 -0
- package/dist/dto/context.d.ts.map +1 -0
- package/dist/dto/context.js +20 -0
- package/dist/dto/context.js.map +1 -0
- package/dist/types.d.ts +3 -0
- package/dist/types.d.ts.map +1 -0
- package/dist/types.js.map +1 -0
- package/dist/unresolvedProviderDependencies/createRule.d.ts +1 -1
- package/dist/unresolvedProviderDependencies/createRule.d.ts.map +1 -1
- package/dist/unresolvedProviderDependencies/dependencyResolver.d.ts +1 -1
- package/dist/unresolvedProviderDependencies/dependencyResolver.d.ts.map +1 -1
- package/dist/unresolvedProviderDependencies/dependencyResolver.js +1 -1
- package/dist/unresolvedProviderDependencies/dependencyResolver.js.map +1 -1
- package/dist/unresolvedProviderDependencies/errorReporter.d.ts +1 -1
- package/dist/unresolvedProviderDependencies/errorReporter.d.ts.map +1 -1
- package/dist/unresolvedProviderDependencies/errorReporter.js +2 -8
- package/dist/unresolvedProviderDependencies/errorReporter.js.map +1 -1
- package/dist/unresolvedProviderDependencies/graphHandler.d.ts +1 -1
- package/dist/unresolvedProviderDependencies/graphHandler.d.ts.map +1 -1
- package/dist/unresolvedProviderDependencies/index.d.ts.map +1 -1
- package/dist/unresolvedProviderDependencies/index.js +2 -1
- package/dist/unresolvedProviderDependencies/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/unresolvedProviderDependencies/types.d.ts +0 -5
- package/dist/unresolvedProviderDependencies/types.d.ts.map +0 -1
- package/dist/unresolvedProviderDependencies/types.js.map +0 -1
- /package/dist/{unresolvedProviderDependencies/types.js → types.js} +0 -0
package/dist/ast/utils.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { TSESTree } from '@typescript-eslint/types';
|
|
2
|
-
import type { ArrayExpressionElement } from '../
|
|
2
|
+
import type { ArrayExpressionElement } from '../types';
|
|
3
3
|
export declare function isClassLike(node: TSESTree.Node): node is TSESTree.ClassDeclaration;
|
|
4
4
|
export declare function isImportDeclaration(node: TSESTree.Node): node is TSESTree.ImportDeclaration;
|
|
5
5
|
export declare function isMethodDefinition(node: TSESTree.Node): node is TSESTree.MethodDefinition;
|
package/dist/ast/utils.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../rules/ast/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../rules/ast/utils.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAGvD,wBAAgB,WAAW,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,IAAI,QAAQ,CAAC,gBAAgB,CAWlF;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,IAAI,QAAQ,CAAC,iBAAiB,CAE3F;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,IAAI,IAAI,QAAQ,CAAC,gBAAgB,CAEzF;AAED,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,QAAQ,CAAC,gBAAgB,GAAG,SAAS,CAW9F;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,SAAS,GAAG,QAAQ,CAAC,OAAO,CAQhF;AAED,wBAAgB,YAAY,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,GAAG,OAAO,CAQzD;AAED,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,QAAQ,CAAC,SAAS,EAAE,YAAY,EAAE,MAAM,iCAMvF;AAUD,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,KAAK,EAAE,QAAQ,CAAC,eAAe,EAAE,GAAG,EAAE,CAAC,EAAE,EAAE,sBAAsB,KAAK,CAAC,OAE5G"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { TSESTree } from '@typescript-eslint/types';
|
|
2
|
+
import type { RuleContext } from '@typescript-eslint/utils/ts-eslint';
|
|
3
|
+
export declare class Context<MessageId extends string = any, Options extends any[] = any> {
|
|
4
|
+
private context;
|
|
5
|
+
constructor(context: RuleContext<MessageId, Options>);
|
|
6
|
+
/**
|
|
7
|
+
* Returns the fully qualified path to the current file being linted.
|
|
8
|
+
*/
|
|
9
|
+
get currentFilePath(): string;
|
|
10
|
+
reportError(node: TSESTree.Node, messageId: MessageId, data: any): void;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=context.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../rules/dto/context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAEtE,qBAAa,OAAO,CAAC,SAAS,SAAS,MAAM,GAAG,GAAG,EAAE,OAAO,SAAS,GAAG,EAAE,GAAG,GAAG;IAClE,OAAO,CAAC,OAAO;gBAAP,OAAO,EAAE,WAAW,CAAC,SAAS,EAAE,OAAO,CAAC;IAE5D;;OAEG;IACH,IAAW,eAAe,WAEzB;IAEM,WAAW,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,SAAS,EAAE,SAAS,EAAE,IAAI,EAAE,GAAG;CAGxE"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Context = void 0;
|
|
4
|
+
class Context {
|
|
5
|
+
constructor(context) {
|
|
6
|
+
this.context = context;
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Returns the fully qualified path to the current file being linted.
|
|
10
|
+
*/
|
|
11
|
+
get currentFilePath() {
|
|
12
|
+
var _a, _b;
|
|
13
|
+
return (_b = (_a = this.context).getPhysicalFilename) === null || _b === void 0 ? void 0 : _b.call(_a);
|
|
14
|
+
}
|
|
15
|
+
reportError(node, messageId, data) {
|
|
16
|
+
this.context.report({ messageId, node, data });
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
exports.Context = Context;
|
|
20
|
+
//# sourceMappingURL=context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.js","sourceRoot":"","sources":["../../rules/dto/context.ts"],"names":[],"mappings":";;;AAGA,MAAa,OAAO;IAClB,YAAoB,OAAwC;QAAxC,YAAO,GAAP,OAAO,CAAiC;IAAI,CAAC;IAEjE;;OAEG;IACH,IAAW,eAAe;;QACxB,OAAO,MAAA,MAAA,IAAI,CAAC,OAAO,EAAC,mBAAmB,kDAAK,CAAC;IAC/C,CAAC;IAEM,WAAW,CAAC,IAAmB,EAAE,SAAoB,EAAE,IAAS;QACrE,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;IACjD,CAAC;CACF;AAbD,0BAaC"}
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../rules/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,MAAM,MAAM,sBAAsB,GAAG,QAAQ,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../rules/types.ts"],"names":[],"mappings":""}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { TSESTree } from '@typescript-eslint/types';
|
|
2
|
-
import
|
|
2
|
+
import { Context } from '../dto/context';
|
|
3
3
|
import { FileReader } from '../framework/fileReader';
|
|
4
4
|
export declare function create(context: Context, fileReader: FileReader): {
|
|
5
5
|
ImportDeclaration(node: TSESTree.ImportDeclaration): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"createRule.d.ts","sourceRoot":"","sources":["../../rules/unresolvedProviderDependencies/createRule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,
|
|
1
|
+
{"version":3,"file":"createRule.d.ts","sourceRoot":"","sources":["../../rules/unresolvedProviderDependencies/createRule.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEzD,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAEzC,OAAO,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAKrD,wBAAgB,MAAM,CAAC,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,UAAU;4BAMnC,SAAS,iBAAiB;2BAG3B,SAAS,gBAAgB;EAInD"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Import } from '../dto/import';
|
|
2
2
|
import type { Clazz } from '../dto/class';
|
|
3
3
|
import type { SubgraphResolver } from './subgraphResolver';
|
|
4
|
-
import type { Context } from '
|
|
4
|
+
import type { Context } from '../dto/context';
|
|
5
5
|
export declare class DependencyResolver {
|
|
6
6
|
private subgraphResolver;
|
|
7
7
|
constructor(subgraphResolver: SubgraphResolver);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dependencyResolver.d.ts","sourceRoot":"","sources":["../../rules/unresolvedProviderDependencies/dependencyResolver.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"dependencyResolver.d.ts","sourceRoot":"","sources":["../../rules/unresolvedProviderDependencies/dependencyResolver.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AAC3D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAE9C,qBAAa,kBAAkB;IACjB,OAAO,CAAC,gBAAgB;gBAAhB,gBAAgB,EAAE,gBAAgB;IAE/C,OAAO,CAAC,OAAO,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE;IAQhE,OAAO,CAAC,4BAA4B;IAMpC,OAAO,CAAC,oBAAoB;CAK7B"}
|
|
@@ -7,7 +7,7 @@ class DependencyResolver {
|
|
|
7
7
|
this.subgraphResolver = subgraphResolver;
|
|
8
8
|
}
|
|
9
9
|
resolve(context, clazz, imports) {
|
|
10
|
-
const classWithImports = new classFile_1.ClassFile(clazz, imports, context.
|
|
10
|
+
const classWithImports = new classFile_1.ClassFile(clazz, imports, context.currentFilePath);
|
|
11
11
|
return [
|
|
12
12
|
...this.getGraphDependencies(classWithImports),
|
|
13
13
|
...this.getDependenciesFromSubgraphs(classWithImports),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dependencyResolver.js","sourceRoot":"","sources":["../../rules/unresolvedProviderDependencies/dependencyResolver.ts"],"names":[],"mappings":";;;AAAA,gDAA6C;AAM7C,MAAa,kBAAkB;IAC7B,YAAoB,gBAAkC;QAAlC,qBAAgB,GAAhB,gBAAgB,CAAkB;IAAI,CAAC;IAEpD,OAAO,CAAC,OAAgB,EAAE,KAAY,EAAE,OAAiB;QAC9D,MAAM,gBAAgB,GAAG,IAAI,qBAAS,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,
|
|
1
|
+
{"version":3,"file":"dependencyResolver.js","sourceRoot":"","sources":["../../rules/unresolvedProviderDependencies/dependencyResolver.ts"],"names":[],"mappings":";;;AAAA,gDAA6C;AAM7C,MAAa,kBAAkB;IAC7B,YAAoB,gBAAkC;QAAlC,qBAAgB,GAAhB,gBAAgB,CAAkB;IAAI,CAAC;IAEpD,OAAO,CAAC,OAAgB,EAAE,KAAY,EAAE,OAAiB;QAC9D,MAAM,gBAAgB,GAAG,IAAI,qBAAS,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;QAChF,OAAO;YACL,GAAG,IAAI,CAAC,oBAAoB,CAAC,gBAAgB,CAAC;YAC9C,GAAG,IAAI,CAAC,4BAA4B,CAAC,gBAAgB,CAAC;SACvD,CAAC;IACJ,CAAC;IAEO,4BAA4B,CAAC,KAAgB;QACnD,OAAO,IAAI,CAAC,gBAAgB;aACzB,OAAO,CAAC,KAAK,CAAC;aACd,OAAO,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;IACxC,CAAC;IAEO,oBAAoB,CAAC,EAAE,KAAK,EAAa;QAC/C,OAAO,KAAK;aACT,mBAAmB,CAAC,UAAU,CAAC;aAC/B,GAAG,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAClC,CAAC;CACF;AAtBD,gDAsBC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { TSESTree } from '@typescript-eslint/types';
|
|
2
|
-
import type { Context } from '
|
|
2
|
+
import type { Context } from '../dto/context';
|
|
3
3
|
export declare function reportErrorIfDependencyIsUnresolved(context: Context, { error, param, node }: {
|
|
4
4
|
error: boolean;
|
|
5
5
|
param?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errorReporter.d.ts","sourceRoot":"","sources":["../../rules/unresolvedProviderDependencies/errorReporter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"errorReporter.d.ts","sourceRoot":"","sources":["../../rules/unresolvedProviderDependencies/errorReporter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAE9C,wBAAgB,mCAAmC,CACjD,OAAO,EAAE,OAAO,EAChB,EAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAC,EAAE;IAAC,KAAK,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,IAAI,CAAA;CAAC,QAK7E"}
|
|
@@ -2,14 +2,8 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.reportErrorIfDependencyIsUnresolved = void 0;
|
|
4
4
|
function reportErrorIfDependencyIsUnresolved(context, { error, param, node }) {
|
|
5
|
-
if (error) {
|
|
6
|
-
context.
|
|
7
|
-
node: node,
|
|
8
|
-
messageId: 'unresolved-provider-dependencies',
|
|
9
|
-
data: {
|
|
10
|
-
dependencyName: param,
|
|
11
|
-
},
|
|
12
|
-
});
|
|
5
|
+
if (error && node) {
|
|
6
|
+
context.reportError(node, 'unresolved-provider-dependencies', { dependencyName: param });
|
|
13
7
|
}
|
|
14
8
|
}
|
|
15
9
|
exports.reportErrorIfDependencyIsUnresolved = reportErrorIfDependencyIsUnresolved;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"errorReporter.js","sourceRoot":"","sources":["../../rules/unresolvedProviderDependencies/errorReporter.ts"],"names":[],"mappings":";;;AAGA,SAAgB,mCAAmC,CACjD,OAAgB,EAChB,EAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAyD;IAE5E,IAAI,KAAK,EAAE;
|
|
1
|
+
{"version":3,"file":"errorReporter.js","sourceRoot":"","sources":["../../rules/unresolvedProviderDependencies/errorReporter.ts"],"names":[],"mappings":";;;AAGA,SAAgB,mCAAmC,CACjD,OAAgB,EAChB,EAAC,KAAK,EAAE,KAAK,EAAE,IAAI,EAAyD;IAE5E,IAAI,KAAK,IAAI,IAAI,EAAE;QACjB,OAAO,CAAC,WAAW,CAAC,IAAI,EAAE,kCAAkC,EAAE,EAAC,cAAc,EAAE,KAAK,EAAC,CAAC,CAAC;KACxF;AACH,CAAC;AAPD,kFAOC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Clazz } from '../dto/class';
|
|
2
|
-
import type { Context } from '
|
|
2
|
+
import type { Context } from '../dto/context';
|
|
3
3
|
import type { DependencyResolver } from './dependencyResolver';
|
|
4
4
|
import type { Import } from '../dto/import';
|
|
5
5
|
import { ResolvedDependencyChecker } from './resolvedDependencyChecker';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graphHandler.d.ts","sourceRoot":"","sources":["../../rules/unresolvedProviderDependencies/graphHandler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"graphHandler.d.ts","sourceRoot":"","sources":["../../rules/unresolvedProviderDependencies/graphHandler.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AAE9C,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC/D,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAC5C,OAAO,EAAE,yBAAyB,EAAE,MAAM,6BAA6B,CAAC;AAExE,qBAAa,YAAY;IAErB,OAAO,CAAC,OAAO;IACf,OAAO,CAAC,kBAAkB;IAC1B,OAAO,CAAC,yBAAyB;gBAFzB,OAAO,EAAE,OAAO,EAChB,kBAAkB,EAAE,kBAAkB,EACtC,yBAAyB,GAAE,yBAA2D;IAGzF,MAAM,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,MAAM,EAAE;IAQ7C,OAAO,CAAC,iBAAiB;CAG1B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../rules/unresolvedProviderDependencies/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAGtE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../rules/unresolvedProviderDependencies/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,KAAK,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAGtE,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AAUzD,eAAO,MAAM,uCAAuC,kBACpC,YAAY,uFAoB3B,CAAC"}
|
|
@@ -5,11 +5,12 @@ const utils_1 = require("@typescript-eslint/utils");
|
|
|
5
5
|
const createRule_1 = require("./createRule");
|
|
6
6
|
const pathResolver_1 = require("../framework/pathResolver");
|
|
7
7
|
const fileReader_1 = require("../framework/fileReader");
|
|
8
|
+
const context_1 = require("../dto/context");
|
|
8
9
|
const createRule = utils_1.ESLintUtils.RuleCreator((name) => `https://wix-incubator.github.io/obsidian/docs/documentation/meta/eslint#${name}`);
|
|
9
10
|
const unresolvedProviderDependenciesGenerator = (pathResolver = new pathResolver_1.PathResolver()) => {
|
|
10
11
|
return createRule({
|
|
11
12
|
create: (context) => {
|
|
12
|
-
return (0, createRule_1.create)(context, new fileReader_1.FileReader(pathResolver));
|
|
13
|
+
return (0, createRule_1.create)(new context_1.Context(context), new fileReader_1.FileReader(pathResolver));
|
|
13
14
|
},
|
|
14
15
|
name: 'unresolved-provider-dependencies',
|
|
15
16
|
meta: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../rules/unresolvedProviderDependencies/index.ts"],"names":[],"mappings":";;;AAAA,oDAAsE;AAEtE,6CAAsC;AACtC,4DAAyD;AACzD,wDAAqD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../rules/unresolvedProviderDependencies/index.ts"],"names":[],"mappings":";;;AAAA,oDAAsE;AAEtE,6CAAsC;AACtC,4DAAyD;AACzD,wDAAqD;AACrD,4CAAuC;AAIvC,MAAM,UAAU,GAAG,mBAAW,CAAC,WAAW,CACxC,CAAC,IAAI,EAAE,EAAE,CAAC,2EAA2E,IAAI,EAAE,CAC5F,CAAC;AAEK,MAAM,uCAAuC,GAAG,CACrD,eAA6B,IAAI,2BAAY,EAAE,EAC/C,EAAE;IACF,OAAO,UAAU,CAAC;QAChB,MAAM,EAAE,CAAC,OAA4D,EAAE,EAAE;YACvE,OAAO,IAAA,mBAAM,EAAC,IAAI,iBAAO,CAAC,OAAO,CAAC,EAAE,IAAI,uBAAU,CAAC,YAAY,CAAC,CAAC,CAAC;QACpE,CAAC;QACD,IAAI,EAAE,kCAAkC;QACxC,IAAI,EAAE;YACJ,IAAI,EAAE;gBACJ,WAAW,EAAE,6DAA6D;gBAC1E,WAAW,EAAE,QAAQ;aACtB;YACD,QAAQ,EAAE;gBACR,kCAAkC,EAAE,gDAAgD;aACrF;YACD,MAAM,EAAE,EAAE;YACV,IAAI,EAAE,SAAS;SAChB;QACD,cAAc,EAAE,EAAE;KACnB,CAAgB,CAAC;AACpB,CAAC,CAAC;AArBW,QAAA,uCAAuC,2CAqBlD"}
|
package/package.json
CHANGED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { TSESTree } from '@typescript-eslint/types';
|
|
2
|
-
import type { RuleContext } from '@typescript-eslint/utils/ts-eslint';
|
|
3
|
-
export type Context = RuleContext<'unresolved-provider-dependencies', []>;
|
|
4
|
-
export type ArrayExpressionElement = TSESTree.ArrayExpression['elements'][number];
|
|
5
|
-
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../rules/unresolvedProviderDependencies/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACzD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,oCAAoC,CAAC;AAEtE,MAAM,MAAM,OAAO,GAAG,WAAW,CAAC,kCAAkC,EAAE,EAAE,CAAC,CAAC;AAE1E,MAAM,MAAM,sBAAsB,GAAG,QAAQ,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC,MAAM,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../rules/unresolvedProviderDependencies/types.ts"],"names":[],"mappings":""}
|
|
File without changes
|