-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #839 from bluehost/release/3.7.0
Release/3.7.0
- Loading branch information
Showing
72 changed files
with
3,026 additions
and
3,188 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
module.exports = { | ||
extends: [ 'plugin:@wordpress/eslint-plugin/recommended' ], | ||
settings: { | ||
'import/resolver': { | ||
alias: { | ||
map: [ | ||
[ 'App', './src/app' ], | ||
[ 'Assets', './aseets' ], | ||
[ '@modules', './vendor/newfold-labs' ], | ||
], | ||
extensions: [ '.js', '.jsx', '.json' ], | ||
}, | ||
}, | ||
}, | ||
globals: { | ||
__: true, | ||
_camelCase: true, | ||
_filter: true, | ||
_n: true, | ||
classNames: true, | ||
useContext: true, | ||
useEffect: true, | ||
useState: true, | ||
}, | ||
rules: { | ||
'import/no-unresolved': [ | ||
'error', | ||
{ ignore: [ '^App/', '^Assets/' ] }, | ||
], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
version: 2 | ||
registries: "*" | ||
updates: | ||
|
||
# Maintain dependencies for GitHub Actions | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,91 @@ | ||
name: ESLint | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- master | ||
- trunk | ||
- develop | ||
- release/* | ||
- feature/* | ||
- add/* | ||
- update/* | ||
- fix/* | ||
- try/*' | ||
paths: | ||
- 'src/**/*.js' | ||
pull_request: | ||
types: [ opened, edited, reopened, ready_for_review ] | ||
paths: | ||
- 'src/**/*.js' | ||
workflow_dispatch: | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.sha }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
ESLint: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup PHP | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: '8.1' | ||
coverage: none | ||
tools: composer, cs2pr | ||
|
||
- name: Setup workflow context | ||
id: workflow | ||
working-directory: ${{ runner.temp }} | ||
env: | ||
REPO: ${{ github.repository }} | ||
run: | | ||
mkdir dist | ||
echo "DIST=${PWD}/dist" >> $GITHUB_OUTPUT | ||
echo "PACKAGE=${REPO##*/}" >> $GITHUB_OUTPUT | ||
- name: Use Node.js 16.x | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 16.x | ||
cache: 'npm' | ||
|
||
- name: Get Composer cache directory | ||
id: composer-cache | ||
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT | ||
|
||
- name: Cache Composer vendor directory | ||
uses: actions/cache@v3 | ||
with: | ||
path: ${{ steps.composer-cache.outputs.dir }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }} | ||
restore-keys: | | ||
${{ runner.os }}-composer- | ||
- name: Show versions | ||
run: | | ||
php --version | ||
composer --version | ||
node --version | ||
npm --version | ||
- name: Validate composer.json and composer.lock | ||
run: composer validate | ||
|
||
- name: Install PHP Dependencies | ||
run: composer install --no-progress --no-dev --optimize-autoloader --prefer-dist | ||
|
||
- name: Setup Registry | ||
run: printf "\n//npm.pkg.github.com/:_authToken=${{ secrets.NEWFOLD_ACCESS_TOKEN }}" >> .npmrc | ||
|
||
- name: NPM Install | ||
run: npm ci --legacy-peer-deps | ||
|
||
- name: ESLint | ||
run: npm run lint:js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.