Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disable eslint warnings #818

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
disable eslint warnings
  • Loading branch information
danielpeintner committed Aug 10, 2022
commit d3dfff6fbb58fc9e54279b069db3deb10b913c43
2 changes: 2 additions & 0 deletions packages/binding-netconf/src/codecs/netconf-codec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,9 @@ export default class NetconfCodec {
}

private getPayloadNamespaces(
// eslint-disable-next-line @typescript-eslint/no-explicit-any
schema: any,
// eslint-disable-next-line @typescript-eslint/no-explicit-any
payload: any,
namespaces: Record<string, string>,
hasNamespace: boolean,
Expand Down
4 changes: 3 additions & 1 deletion packages/binding-netconf/src/xpath2json.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ export function isObject(a: unknown): boolean {
return !!a && a.constructor === Object;
}

// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types, @typescript-eslint/no-explicit-any
export function json2xpath(json: any, index: number, str: Array<string>): string[] {
if (!isObject(json)) {
return str;
Expand Down Expand Up @@ -55,7 +56,8 @@ export function json2xpath(json: any, index: number, str: Array<string>): string

export function xpath2json(xpath: string, namespaces: Record<string, string>): Record<string, unknown> {
const subStrings = xpath.split("/");
let obj: any = {};
let obj = {};
// eslint-disable-next-line @typescript-eslint/no-explicit-any
let tmpObj: any = {};
for (let i = subStrings.length - 1; i > -1; i--) {
let sub = subStrings[i];
Expand Down