Skip to content

Commit

Permalink
chore: upgrade eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
privatenumber committed Mar 12, 2024
1 parent 1714d3e commit a367deb
Show file tree
Hide file tree
Showing 8 changed files with 1,893 additions and 1,162 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/package-size-report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Package Size Report

on:
pull_request:
branches: [ master, develop ]
branches: [master, develop]

jobs:
pkg-size-report:
Expand Down
36 changes: 18 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,25 @@ jobs:
runs-on: ubuntu-latest

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

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

- name: Setup pnpm
uses: pnpm/[email protected]
with:
version: 7
run_install: true
- name: Setup pnpm
uses: pnpm/[email protected]
with:
version: 7
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
66 changes: 33 additions & 33 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,36 +12,36 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
repository: ${{ github.repository }} # For the tests to be able to publish current branch

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

- name: Setup pnpm
uses: pnpm/[email protected]
with:
version: 7
run_install: true

- name: Lint
run: pnpm lint

- name: Type check
run: pnpm type-check

- name: Setup Git # Only used by the last test
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "<>"
- name: Build
run: pnpm build

- name: Test
run: pnpm test
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
repository: ${{ github.repository }} # For the tests to be able to publish current branch

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

- name: Setup pnpm
uses: pnpm/[email protected]
with:
version: 7
run_install: true

- name: Lint
run: pnpm lint

- name: Type check
run: pnpm type-check

- name: Setup Git # Only used by the last test
run: |
git config --global user.name "GitHub Actions"
git config --global user.email "<>"
- name: Build
run: pnpm build

- name: Test
run: pnpm test
9 changes: 3 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"bin": "dist/index.js",
"scripts": {
"build": "pkgroll --minify --target=node12.19",
"lint": "eslint --cache .",
"lint": "lint --cache .",
"type-check": "tsc --noEmit",
"test": "tsx tests",
"prepack": "pnpm build && clean-pkg-json"
Expand All @@ -32,12 +32,12 @@
"yoga-layout-prebuilt": "^1.10.0"
},
"devDependencies": {
"@pvtnbr/eslint-config": "^0.33.0",
"@pvtnbr/eslint-config": "^1.0.3",
"@types/node": "^18.15.3",
"@types/npm-packlist": "^3.0.0",
"clean-pkg-json": "^1.2.0",
"cleye": "^1.3.2",
"eslint": "^8.36.0",
"eslint": "^8.57.0",
"execa": "^7.1.1",
"fs-fixture": "^1.2.0",
"manten": "^0.7.0",
Expand All @@ -46,8 +46,5 @@
"tasuku": "^2.0.1",
"tsx": "^3.12.5",
"typescript": "^5.0.2"
},
"eslintConfig": {
"extends": "@pvtnbr"
}
}
Loading

0 comments on commit a367deb

Please sign in to comment.