Skip to content

Commit

Permalink
Merge pull request #87 from kucrut/eslint-9
Browse files Browse the repository at this point in the history
ESLint 9
  • Loading branch information
kucrut authored Jun 13, 2024
2 parents bce4607 + 6eb0bb8 commit 873c77d
Show file tree
Hide file tree
Showing 10 changed files with 2,571 additions and 4,643 deletions.
5 changes: 5 additions & 0 deletions .changeset/few-suns-shout.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@kucrut/vite-for-wp': patch
---

ESLint 9
8 changes: 0 additions & 8 deletions .eslintignore

This file was deleted.

17 changes: 0 additions & 17 deletions .eslintrc.json

This file was deleted.

29 changes: 7 additions & 22 deletions .github/workflows/check-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,32 +49,17 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Install Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- uses: pnpm/action-setup@v2
name: Install pnpm
id: pnpm-install
with:
run_install: false
- name: Setup PNPM
uses: pnpm/action-setup@v3

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v3
name: Setup pnpm cache
- name: Setup Nodejs
uses: actions/setup-node@v3
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
cache: "pnpm"
node-version: "20"

- name: Install dependencies
run: pnpm install --silent
run: pnpm install --frozen-lockfile --recursive --silent --strict-peer-dependencies

- name: Lint
run: pnpm lint
20 changes: 9 additions & 11 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,30 +9,28 @@ concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
# prevents this action from running on forks
# Prevent this action from running on forks.
if: github.repository == 'kucrut/vite-for-wp'
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits.
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Setup PNPM
uses: pnpm/action-setup@v3

- uses: pnpm/[email protected]
name: Install pnpm
id: pnpm-install
- name: Setup Nodejs
uses: actions/setup-node@v3
with:
run_install: false
cache: "pnpm"
node-version: "20"

- name: Install dependencies
run: pnpm install --frozen-lockfile --silent
run: pnpm install --frozen-lockfile --recursive --silent --strict-peer-dependencies

- id: get_version
shell: bash
Expand Down
1 change: 0 additions & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"tabWidth": 4,
"trailingComma": "all",
"useTabs": true,
"plugins": [ "eslint-plugin-prettier" ],
"overrides": [
{
"files": [ "*.json" ],
Expand Down
135 changes: 97 additions & 38 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 873c77d

Please sign in to comment.