diff --git a/.github/workflows/create-build-url.yml b/.github/workflows/create-build-url.yml index 82ee228..5c53872 100644 --- a/.github/workflows/create-build-url.yml +++ b/.github/workflows/create-build-url.yml @@ -97,4 +97,4 @@ jobs: with: comment-id: ${{ steps.find-comment.outputs.comment-id }} edit-mode: replace - body: ${{ steps.get-comment-body.outputs.body }} \ No newline at end of file + body: ${{ steps.get-comment-body.outputs.body }} diff --git a/.github/workflows/test-js.yml b/.github/workflows/test-js.yml index 75c6aee..3888dc7 100644 --- a/.github/workflows/test-js.yml +++ b/.github/workflows/test-js.yml @@ -1,29 +1,29 @@ name: Test JS on: - pull_request: - types: [ opened, synchronize, ready_for_review ] + pull_request: + types: [opened, synchronize, ready_for_review] jobs: - run: - runs-on: ubuntu-latest - if: github.event.pull_request.draft == false && github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name - strategy: - matrix: - node-version: [20.x] - name: JS Test - steps: - - uses: actions/checkout@master - with: - persist-credentials: false - - name: Build files using ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - name: Lint js files - run: | - npm install -g npm - npm ci - npm run lint:js - env: - CI: true \ No newline at end of file + run: + runs-on: ubuntu-latest + if: github.event.pull_request.draft == false && github.event.pull_request.head.repo.full_name == github.event.pull_request.base.repo.full_name + strategy: + matrix: + node-version: [20.x] + name: JS Test + steps: + - uses: actions/checkout@master + with: + persist-credentials: false + - name: Build files using ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: Lint js files + run: | + npm install -g npm + npm ci + npm run lint:js + env: + CI: true diff --git a/.github/workflows/test-php.yml b/.github/workflows/test-php.yml index 833e6b6..46998ce 100644 --- a/.github/workflows/test-php.yml +++ b/.github/workflows/test-php.yml @@ -59,4 +59,4 @@ jobs: - name: Install composer run: composer install --prefer-dist --no-progress --no-suggest - name: PHPStan Static Analysis - run: composer phpstan \ No newline at end of file + run: composer phpstan diff --git a/package.json b/package.json index e735a50..2f7af84 100644 --- a/package.json +++ b/package.json @@ -34,6 +34,6 @@ "tailwindcss": "^3.4.0" }, "simple-git-hooks": { - "pre-commit": "npm run lint:js && compose run-script lint && composer run-script phpstan" + "pre-commit": "npm run lint:js && composer run-script lint && composer run-script phpstan" } } diff --git a/postcss.config.js b/postcss.config.js index cc7fe5c..16e7961 100644 --- a/postcss.config.js +++ b/postcss.config.js @@ -1,5 +1,3 @@ module.exports = { - plugins: [ - require( 'tailwindcss' ), - ], -}; \ No newline at end of file + plugins: [ require( 'tailwindcss' ) ], +}; diff --git a/src/App.js b/src/App.js index 1664683..b9ba92b 100644 --- a/src/App.js +++ b/src/App.js @@ -1,8 +1,6 @@ /** * WordPress dependencies. */ -import { Modal } from '@wordpress/components'; - const App = () => { return (
diff --git a/tailwind.config.js b/tailwind.config.js index 73174c0..7eddf58 100644 --- a/tailwind.config.js +++ b/tailwind.config.js @@ -1,8 +1,6 @@ /** @type {import('tailwindcss').Config} */ module.exports = { - content: [ - './src/*.js' - ], + content: [ './src/*.js' ], theme: { extend: {}, },