Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Dec 17, 2023
1 parent 6022e6f commit 2039100
Show file tree
Hide file tree
Showing 11 changed files with 1,348 additions and 1,504 deletions.
3 changes: 0 additions & 3 deletions .eslintignore

This file was deleted.

3 changes: 0 additions & 3 deletions .eslintrc

This file was deleted.

9 changes: 6 additions & 3 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install pnpm
uses: pnpm/action-setup@v2

- name: Set node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16.x
node-version: lts/*
cache: pnpm

- name: Setup
Expand All @@ -33,3 +33,6 @@ jobs:

- name: Lint
run: nr lint

- name: Typecheck
run: nr typecheck
43 changes: 43 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
{
// Enable the ESlint flat config support
"eslint.experimental.useFlatConfig": true,

// Disable the default formatter, use eslint instead
"prettier.enable": false,
"editor.formatOnSave": false,

// Auto fix
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit",
"source.organizeImports": "never"
},

// Silent the stylistic rules in you IDE, but still auto fix them
"eslint.rules.customizations": [
{ "rule": "style/*", "severity": "off" },
{ "rule": "format/*", "severity": "off" },
{ "rule": "*-indent", "severity": "off" },
{ "rule": "*-spacing", "severity": "off" },
{ "rule": "*-spaces", "severity": "off" },
{ "rule": "*-order", "severity": "off" },
{ "rule": "*-dangle", "severity": "off" },
{ "rule": "*-newline", "severity": "off" },
{ "rule": "*quotes", "severity": "off" },
{ "rule": "*semi", "severity": "off" }
],

// Enable eslint for all supported languages
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"vue",
"html",
"markdown",
"json",
"jsonc",
"yaml",
"toml"
]
}
5 changes: 5 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
const antfu = require('@antfu/eslint-config').default

module.exports = antfu({
ignores: ['sponsorkit', '**/sponsorkit/**'],
})
43 changes: 22 additions & 21 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "sponsorkit",
"version": "0.8.9",
"packageManager": "pnpm@8.7.6",
"packageManager": "pnpm@8.12.1",
"description": "Toolkit for generating sponsors images",
"author": "Anthony Fu <[email protected]>",
"license": "MIT",
Expand Down Expand Up @@ -33,43 +33,44 @@
"sponsorkit": "./bin/sponsorkit.js"
},
"files": [
"dist",
"bin"
"bin",
"dist"
],
"scripts": {
"build": "unbuild",
"stub": "unbuild --stub",
"dev": "esno src/cli.ts",
"lint": "eslint .",
"typecheck": "tsc --noEmit",
"prepublishOnly": "nr build",
"release": "bumpp --commit --push --tag && pnpm publish"
"release": "bumpp && pnpm publish"
},
"dependencies": {
"consola": "^3.2.3",
"dotenv": "^16.3.1",
"fs-extra": "^11.1.1",
"fs-extra": "^11.2.0",
"image-data-uri": "^2.0.1",
"node-html-parser": "^6.1.10",
"node-html-parser": "^6.1.11",
"ofetch": "^1.3.3",
"picocolors": "^1.0.0",
"sharp": "^0.32.5",
"unconfig": "^0.3.10",
"sharp": "^0.33.0",
"unconfig": "^0.3.11",
"yargs": "^17.7.2"
},
"devDependencies": {
"@antfu/eslint-config": "^0.42.0",
"@antfu/ni": "^0.21.8",
"@antfu/utils": "^0.7.6",
"@types/fs-extra": "^11.0.2",
"@types/node": "^20.6.2",
"@types/yargs": "^17.0.24",
"bumpp": "^9.2.0",
"eslint": "^8.49.0",
"esno": "^0.17.0",
"jiti": "^1.20.0",
"typescript": "^5.2.2",
"@antfu/eslint-config": "^2.4.6",
"@antfu/ni": "^0.21.12",
"@antfu/utils": "^0.7.7",
"@types/fs-extra": "^11.0.4",
"@types/node": "^20.10.4",
"@types/yargs": "^17.0.32",
"bumpp": "^9.2.1",
"eslint": "^8.56.0",
"esno": "^4.0.0",
"jiti": "^1.21.0",
"typescript": "^5.3.3",
"unbuild": "^2.0.0",
"vite": "^4.4.9",
"vitest": "^0.34.4"
"vite": "^5.0.10",
"vitest": "^1.0.4"
}
}
Loading

0 comments on commit 2039100

Please sign in to comment.