Skip to content

Commit

Permalink
eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
pyramation committed May 25, 2024
1 parent db09995 commit 1d3ea6a
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 12 deletions.
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,20 +14,20 @@
"postinstall": "yarn symlink"
},
"devDependencies": {
"@types/jest-in-case": "^1.0.2",
"@types/jest": "^29.5.11",
"@types/jest-in-case": "^1.0.2",
"@types/mkdirp": "1.0.2",
"@types/node": "^20.12.7",
"@typescript-eslint/eslint-plugin": "^7.10.0",
"@typescript-eslint/parser": "^7.10.0",
"copyfiles": "^2.4.1",
"eslint": "^8.56.0",
"eslint-config-prettier": "^9.1.0",
"eslint-plugin-simple-import-sort": "^12.1.0",
"eslint-plugin-unused-imports": "^4.0.0",
"eslint": "^8.56.0",
"glob": "8.0.3",
"jest-in-case": "^1.0.2",
"jest": "^29.6.2",
"jest-in-case": "^1.0.2",
"lerna": "^6",
"mkdirp": "1.0.2",
"prettier": "^3.0.2",
Expand Down
1 change: 1 addition & 0 deletions packages/ts-codegen/src/commands/create-boilerplate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import dargs from 'dargs';
import * as shell from 'shelljs';

import { prompt } from '../utils/prompt';

const glob = require('glob').sync;
const fs = require('fs');
const path = require('path');
Expand Down
1 change: 1 addition & 0 deletions packages/ts-codegen/src/file.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import { readFileSync } from 'fs';

import { cli } from './cli';
import { prompt } from './utils/prompt';

const argv = require('minimist')(process.argv.slice(2));

const question = [
Expand Down
3 changes: 2 additions & 1 deletion packages/ts-codegen/src/plugins/recoil.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import {
RenderContext,
RenderContextBase,
RenderOptions,
UtilMapping} from '@cosmwasm/ts-codegen-ast';
UtilMapping
} from '@cosmwasm/ts-codegen-ast';
import { pascal } from 'case';

import { BuilderFileType } from '../builder';
Expand Down
1 change: 1 addition & 0 deletions packages/ts-codegen/src/ts-codegen.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env node
import { cli } from './cli';

let argv = require('minimist')(process.argv.slice(2));

(async () => {
Expand Down
8 changes: 4 additions & 4 deletions packages/ts-codegen/src/utils/prompt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { filter } from 'fuzzy';
import { prompt as inquirerer } from 'inquirerer';

export const getFuzzySearch = (list) => {
return (answers, input) => {
return (_answers, input) => {
input = input || '';
return new Promise(function (resolve) {
setTimeout(function () {
Expand All @@ -19,16 +19,16 @@ export const getFuzzySearch = (list) => {
};

export const getFuzzySearchNames = (nameValueItemList) => {
const list = nameValueItemList.map(({ name, value }) => name);
return (answers, input) => {
const list = nameValueItemList.map(({ name, value: _value }) => name);
return (_answers, input) => {
input = input || '';
return new Promise(function (resolve) {
setTimeout(function () {
const fuzzyResult = filter(input, list);
resolve(
fuzzyResult.map(function (el) {
return nameValueItemList.find(
({ name, value }) => el.original == name
({ name, value: _value }) => el.original == name
);
})
);
Expand Down
8 changes: 4 additions & 4 deletions packages/ts-codegen/src/utils/schemas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ import { sync as glob } from 'glob';
import { cleanse } from './cleanse';
import { parser } from './parse';
interface ReadSchemaOpts {
schemaDir: string;
clean?: boolean;
schemaDir: string;
clean?: boolean;
};

export const readSchemas = async ({
Expand Down Expand Up @@ -39,8 +39,8 @@ export const readSchemas = async ({

const idlObject: Partial<IDLObject> = schemas[0] as Partial<IDLObject>;
const {
contract_name,
contract_version,
// contract_name,
// contract_version,
idl_version,
responses,
instantiate,
Expand Down

0 comments on commit 1d3ea6a

Please sign in to comment.