Skip to content

Commit

Permalink
style: lint fix (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
privatenumber authored Mar 7, 2024
1 parent b5dd748 commit 92077f1
Show file tree
Hide file tree
Showing 30 changed files with 546 additions and 326 deletions.
36 changes: 18 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,25 +11,25 @@ jobs:
timeout-minutes: 10

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: true
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: true

- name: Lint
run: pnpm lint
- name: Lint
run: pnpm lint

- name: Release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: pnpm dlx semantic-release
- name: Release
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: pnpm dlx semantic-release
38 changes: 19 additions & 19 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,27 @@ jobs:
timeout-minutes: 10

steps:
- name: Checkout
uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v3

- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version-file: .nvmrc

- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: true
- name: Setup pnpm
uses: pnpm/action-setup@v2
with:
version: 8
run_install: true

- name: Lint
if: ${{ matrix.os == 'ubuntu-latest' }}
run: pnpm lint
- name: Lint
if: ${{ matrix.os == 'ubuntu-latest' }}
run: pnpm lint

- name: Type check
if: ${{ matrix.os == 'ubuntu-latest' }}
run: pnpm type-check
- name: Type check
if: ${{ matrix.os == 'ubuntu-latest' }}
run: pnpm type-check

- name: Test
run: pnpm test
- name: Test
run: pnpm test
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v18.18.0
v20.11.1
14 changes: 4 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@
"files": [
"dist"
],
"bin": "./dist/cli.js",
"imports": {
"typescript": "./src/local-typescript-loader.ts"
},
"bin": "./dist/cli.js",
"scripts": {
"build": "tsx src/cli.ts --minify --target node18",
"test": "pnpm build && tsx tests/index.ts",
"lint": "eslint --cache .",
"lint": "lint --cache --node --ignore-pattern tests/fixture-package .",
"type-check": "tsc --noEmit",
"prepack": "pnpm build && clean-pkg-json"
},
Expand Down Expand Up @@ -58,11 +58,11 @@
"rollup": "^4.9.1"
},
"devDependencies": {
"@pvtnbr/eslint-config": "^0.38.0",
"@pvtnbr/eslint-config": "^1.0.3",
"@types/node": "^20.10.5",
"clean-pkg-json": "^1.2.0",
"cleye": "^1.3.2",
"eslint": "^8.56.0",
"eslint": "^8.57.0",
"execa": "^8.0.1",
"fs-fixture": "^1.2.0",
"get-node": "^15.0.0",
Expand All @@ -73,11 +73,5 @@
"tsx": "^4.6.2",
"type-fest": "^4.8.3",
"typescript": "^5.3.3"
},
"eslintConfig": {
"extends": "@pvtnbr/eslint-config/node",
"ignorePatterns": [
"tests/fixture-package"
]
}
}
Loading

0 comments on commit 92077f1

Please sign in to comment.