Skip to content

Commit 1d3ea6a

Browse files
committed
eslint
1 parent db09995 commit 1d3ea6a

File tree

7 files changed

+16
-12
lines changed

7 files changed

+16
-12
lines changed

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,20 @@
1414
"postinstall": "yarn symlink"
1515
},
1616
"devDependencies": {
17-
"@types/jest-in-case": "^1.0.2",
1817
"@types/jest": "^29.5.11",
18+
"@types/jest-in-case": "^1.0.2",
1919
"@types/mkdirp": "1.0.2",
2020
"@types/node": "^20.12.7",
2121
"@typescript-eslint/eslint-plugin": "^7.10.0",
2222
"@typescript-eslint/parser": "^7.10.0",
2323
"copyfiles": "^2.4.1",
24+
"eslint": "^8.56.0",
2425
"eslint-config-prettier": "^9.1.0",
2526
"eslint-plugin-simple-import-sort": "^12.1.0",
2627
"eslint-plugin-unused-imports": "^4.0.0",
27-
"eslint": "^8.56.0",
2828
"glob": "8.0.3",
29-
"jest-in-case": "^1.0.2",
3029
"jest": "^29.6.2",
30+
"jest-in-case": "^1.0.2",
3131
"lerna": "^6",
3232
"mkdirp": "1.0.2",
3333
"prettier": "^3.0.2",

packages/ts-codegen/src/commands/create-boilerplate.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import dargs from 'dargs';
33
import * as shell from 'shelljs';
44

55
import { prompt } from '../utils/prompt';
6+
67
const glob = require('glob').sync;
78
const fs = require('fs');
89
const path = require('path');

packages/ts-codegen/src/file.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { readFileSync } from 'fs';
33

44
import { cli } from './cli';
55
import { prompt } from './utils/prompt';
6+
67
const argv = require('minimist')(process.argv.slice(2));
78

89
const question = [

packages/ts-codegen/src/plugins/recoil.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ import {
44
RenderContext,
55
RenderContextBase,
66
RenderOptions,
7-
UtilMapping} from '@cosmwasm/ts-codegen-ast';
7+
UtilMapping
8+
} from '@cosmwasm/ts-codegen-ast';
89
import { pascal } from 'case';
910

1011
import { BuilderFileType } from '../builder';

packages/ts-codegen/src/ts-codegen.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
#!/usr/bin/env node
22
import { cli } from './cli';
3+
34
let argv = require('minimist')(process.argv.slice(2));
45

56
(async () => {

packages/ts-codegen/src/utils/prompt.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { filter } from 'fuzzy';
33
import { prompt as inquirerer } from 'inquirerer';
44

55
export const getFuzzySearch = (list) => {
6-
return (answers, input) => {
6+
return (_answers, input) => {
77
input = input || '';
88
return new Promise(function (resolve) {
99
setTimeout(function () {
@@ -19,16 +19,16 @@ export const getFuzzySearch = (list) => {
1919
};
2020

2121
export const getFuzzySearchNames = (nameValueItemList) => {
22-
const list = nameValueItemList.map(({ name, value }) => name);
23-
return (answers, input) => {
22+
const list = nameValueItemList.map(({ name, value: _value }) => name);
23+
return (_answers, input) => {
2424
input = input || '';
2525
return new Promise(function (resolve) {
2626
setTimeout(function () {
2727
const fuzzyResult = filter(input, list);
2828
resolve(
2929
fuzzyResult.map(function (el) {
3030
return nameValueItemList.find(
31-
({ name, value }) => el.original == name
31+
({ name, value: _value }) => el.original == name
3232
);
3333
})
3434
);

packages/ts-codegen/src/utils/schemas.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ import { sync as glob } from 'glob';
77
import { cleanse } from './cleanse';
88
import { parser } from './parse';
99
interface ReadSchemaOpts {
10-
schemaDir: string;
11-
clean?: boolean;
10+
schemaDir: string;
11+
clean?: boolean;
1212
};
1313

1414
export const readSchemas = async ({
@@ -39,8 +39,8 @@ export const readSchemas = async ({
3939

4040
const idlObject: Partial<IDLObject> = schemas[0] as Partial<IDLObject>;
4141
const {
42-
contract_name,
43-
contract_version,
42+
// contract_name,
43+
// contract_version,
4444
idl_version,
4545
responses,
4646
instantiate,

0 commit comments

Comments
 (0)