Skip to content

Commit

Permalink
chore: upgrade
Browse files Browse the repository at this point in the history
  • Loading branch information
zyyv committed Jul 8, 2024
1 parent c03db5b commit cadbfb4
Show file tree
Hide file tree
Showing 15 changed files with 4,809 additions and 3,168 deletions.
1 change: 1 addition & 0 deletions .eslintcache
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[{"/Users/chris/i/untinyimg/README.md":"1","/Users/chris/i/untinyimg/build.config.ts":"2","/Users/chris/i/untinyimg/eslint.config.js":"3","/Users/chris/i/untinyimg/package.json":"4","/Users/chris/i/untinyimg/tsconfig.json":"5","/Users/chris/i/untinyimg/.vscode/settings.json":"6","/Users/chris/i/untinyimg/bin/untiny.mjs":"7","/Users/chris/i/untinyimg/src/cli.ts":"8","/Users/chris/i/untinyimg/src/config.ts":"9","/Users/chris/i/untinyimg/src/constant.ts":"10","/Users/chris/i/untinyimg/src/core.ts":"11","/Users/chris/i/untinyimg/src/index.ts":"12","/Users/chris/i/untinyimg/src/types.ts":"13","/Users/chris/i/untinyimg/src/utils.ts":"14","/Users/chris/i/untinyimg/tests/index.test.ts":"15","/Users/chris/i/untinyimg/tests/utils.test.ts":"16","/Users/chris/i/untinyimg/.github/workflows/ci.yml":"17","/Users/chris/i/untinyimg/.github/workflows/release.yml":"18","/Users/chris/i/untinyimg/src/ui/cmd.ts":"19","/Users/chris/i/untinyimg/src/ui/index.ts":"20","/Users/chris/i/untinyimg/src/ui/prompt.ts":"21","/Users/chris/i/untinyimg/tests/fixtures/configs/package.json":"22","/Users/chris/i/untinyimg/tests/fixtures/configs/untiny.config.mjs":"23","/Users/chris/i/untinyimg/tests/fixtures/configs/untiny.config.ts":"24"},{"size":2204,"mtime":1720418975762,"results":"25","hashOfConfig":"26"},{"size":260,"mtime":1720418975763,"results":"27","hashOfConfig":"28"},{"size":65,"mtime":1720419142960,"results":"29","hashOfConfig":"30"},{"size":1688,"mtime":1720419685785,"results":"31","hashOfConfig":"32"},{"size":365,"mtime":1720419685785,"results":"33","hashOfConfig":"34"},{"size":111,"mtime":1720418997638,"results":"35","hashOfConfig":"36"},{"size":59,"mtime":1720418975763,"results":"37","hashOfConfig":"38"},{"size":95,"mtime":1720418975766,"results":"39","hashOfConfig":"28"},{"size":1738,"mtime":1720419738335,"results":"40","hashOfConfig":"28"},{"size":58,"mtime":1720418975767,"results":"41","hashOfConfig":"28"},{"size":3846,"mtime":1720419965085,"results":"42","hashOfConfig":"28"},{"size":47,"mtime":1720418975767,"results":"43","hashOfConfig":"28"},{"size":1211,"mtime":1720419685785,"results":"44","hashOfConfig":"28"},{"size":1964,"mtime":1720419810670,"results":"45","hashOfConfig":"28"},{"size":659,"mtime":1720419685785,"results":"46","hashOfConfig":"47"},{"size":1885,"mtime":1720419685785,"results":"48","hashOfConfig":"47"},{"size":861,"mtime":1720418975760,"results":"49","hashOfConfig":"50"},{"size":707,"mtime":1720418975760,"results":"51","hashOfConfig":"50"},{"size":2473,"mtime":1720419723781,"results":"52","hashOfConfig":"28"},{"size":22,"mtime":1720418975768,"results":"53","hashOfConfig":"28"},{"size":2841,"mtime":1720419798023,"results":"54","hashOfConfig":"28"},{"size":71,"mtime":1720419520105,"results":"55","hashOfConfig":"32"},{"size":36,"mtime":1720418975772,"results":"56","hashOfConfig":"57"},{"size":42,"mtime":1720418975772,"results":"58","hashOfConfig":"28"},{"filePath":"59","messages":"60","suppressedMessages":"61","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"py0kt7",{"filePath":"62","messages":"63","suppressedMessages":"64","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"10rpyao",{"filePath":"65","messages":"66","suppressedMessages":"67","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1bia7w0",{"filePath":"68","messages":"69","suppressedMessages":"70","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"x488y4",{"filePath":"71","messages":"72","suppressedMessages":"73","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1yeeq2g",{"filePath":"74","messages":"75","suppressedMessages":"76","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"cw8k12",{"filePath":"77","messages":"78","suppressedMessages":"79","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"2u35ny",{"filePath":"80","messages":"81","suppressedMessages":"82","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"83","messages":"84","suppressedMessages":"85","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"86","messages":"87","suppressedMessages":"88","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"89","messages":"90","suppressedMessages":"91","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"92","messages":"93","suppressedMessages":"94","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"95","messages":"96","suppressedMessages":"97","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"98","messages":"99","suppressedMessages":"100","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"101","messages":"102","suppressedMessages":"103","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"131xg5m",{"filePath":"104","messages":"105","suppressedMessages":"106","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"107","messages":"108","suppressedMessages":"109","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"18d47nv",{"filePath":"110","messages":"111","suppressedMessages":"112","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"113","messages":"114","suppressedMessages":"115","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"116","messages":"117","suppressedMessages":"118","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"119","messages":"120","suppressedMessages":"121","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"122","messages":"123","suppressedMessages":"124","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},{"filePath":"125","messages":"126","suppressedMessages":"127","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"1kx2qva",{"filePath":"128","messages":"129","suppressedMessages":"130","errorCount":0,"fatalErrorCount":0,"warningCount":0,"fixableErrorCount":0,"fixableWarningCount":0},"/Users/chris/i/untinyimg/README.md",[],[],"/Users/chris/i/untinyimg/build.config.ts",[],[],"/Users/chris/i/untinyimg/eslint.config.js",[],[],"/Users/chris/i/untinyimg/package.json",[],[],"/Users/chris/i/untinyimg/tsconfig.json",[],[],"/Users/chris/i/untinyimg/.vscode/settings.json",[],[],"/Users/chris/i/untinyimg/bin/untiny.mjs",[],[],"/Users/chris/i/untinyimg/src/cli.ts",[],[],"/Users/chris/i/untinyimg/src/config.ts",[],[],"/Users/chris/i/untinyimg/src/constant.ts",[],[],"/Users/chris/i/untinyimg/src/core.ts",[],[],"/Users/chris/i/untinyimg/src/index.ts",[],[],"/Users/chris/i/untinyimg/src/types.ts",[],[],"/Users/chris/i/untinyimg/src/utils.ts",[],[],"/Users/chris/i/untinyimg/tests/index.test.ts",[],[],"/Users/chris/i/untinyimg/tests/utils.test.ts",[],[],"/Users/chris/i/untinyimg/.github/workflows/ci.yml",[],[],"/Users/chris/i/untinyimg/.github/workflows/release.yml",[],[],"/Users/chris/i/untinyimg/src/ui/cmd.ts",[],[],"/Users/chris/i/untinyimg/src/ui/index.ts",[],[],"/Users/chris/i/untinyimg/src/ui/prompt.ts",[],["131"],"/Users/chris/i/untinyimg/tests/fixtures/configs/package.json",[],[],"/Users/chris/i/untinyimg/tests/fixtures/configs/untiny.config.mjs",[],[],"/Users/chris/i/untinyimg/tests/fixtures/configs/untiny.config.ts",[],[],{"ruleId":"132","severity":2,"message":"133","line":50,"column":3,"nodeType":"134","messageId":"135","endLine":50,"endColumn":16,"suggestions":"136","suppressions":"137"},"no-console","Unexpected console statement.","MemberExpression","unexpected",["138"],["139"],{"messageId":"140","data":"141","fix":"142","desc":"143"},{"kind":"144","justification":"145"},"removeConsole",{"propertyName":"146"},{"range":"147","text":"145"},"Remove the console.clear().","directive","","clear",[1377,1392]]
3 changes: 0 additions & 3 deletions .eslintrc

This file was deleted.

2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
},
"editor.formatOnSave": false
}
3 changes: 3 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import antfu from '@antfu/eslint-config'

export default antfu()
28 changes: 14 additions & 14 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
"exports": {
".": {
"types": "./dist/index.d.ts",
"require": "./dist/index.cjs",
"import": "./dist/index.mjs"
"import": "./dist/index.mjs",
"require": "./dist/index.cjs"
}
},
"main": "./dist/index.cjs",
Expand All @@ -47,26 +47,26 @@
"typecheck": "tcs --noEmit"
},
"dependencies": {
"@clack/prompts": "^0.6.3",
"@clack/prompts": "^0.7.0",
"cac": "^6.7.14",
"consola": "^2.15.3",
"consola": "^3.2.3",
"picocolors": "^1.0.0",
"tinify": "^1.7.1"
},
"devDependencies": {
"@antfu/eslint-config": "^0.36.0",
"@antfu/eslint-config": "2.22.0-beta.3",
"@babel/types": "^7.21.2",
"@types/fs-extra": "^11.0.1",
"@types/node": "^18.15.0",
"@types/node": "^20.14.10",
"bumpp": "^9.0.0",
"eslint": "^8.36.0",
"esno": "^0.16.3",
"eslint": "^9.6.0",
"esno": "^4.7.0",
"fs-extra": "^11.1.0",
"rimraf": "^4.4.0",
"typescript": "^4.8.4",
"unbuild": "^1.1.2",
"unconfig": "^0.3.7",
"vite": "^4.1.4",
"vitest": "^0.29.2"
"rimraf": "^5.0.8",
"typescript": "^5.5.3",
"unbuild": "^2.0.0",
"unconfig": "^0.4.5",
"vite": "^5.3.3",
"vitest": "^1.6.0"
}
}
Loading

0 comments on commit cadbfb4

Please sign in to comment.