Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: update wpgraphql-cs to 2.0-beta and lint #380

Merged
merged 1 commit into from
Sep 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .phpcs.xml.dist
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,12 @@
</rule>

<!-- Individual rule configuration -->
<rule ref="WordPress.WP.Capabilities">
<properties>
<!-- Value: replace the capabilities used. Separate multiple capabilities with a comma. -->
<property name="custom_capabilities" type="array" value="gravityforms_view_entries, gform_full_access" />
</properties>
</rule>
<rule ref="WordPress.NamingConventions.PrefixAllGlobals">
<properties>
<!-- Value: replace the function, class, and variable prefixes used. Separate multiple prefixes with a comma. -->
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
- fix: Check if entries exist before resolving the connection `count`.
- fix: Improve type checks when calculating the `QuizResults` data.
- chore: Fix Composer PHP version constraints and rebuild lockfile. Thanks @szepeviktor!
- chore: Update WPGraphQL Coding Standards to 2.0.0-beta.1 and fix resulting issues.
- chore: Update Composer dev-deps.
- tests: Set `WPLoader.loadOnly` to true for acceptance suite. Thanks @lucatume!
- ci: Fix GitHub Action workflows by locking MariaDB version to v10.
Expand Down
8 changes: 4 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
}
],
"require": {
"php": "^7.4 || ^8.0",
"php": ">=7.4",
"yahnis-elsts/plugin-update-checker": "~4.13.0"
},
"require-dev": {
Expand All @@ -39,7 +39,7 @@
"phpstan/extension-installer": "^1.1",
"szepeviktor/phpstan-wordpress": "^1.0",
"axepress/wp-graphql-stubs": "^1.11.1",
"axepress/wp-graphql-cs": "^1.0.0-beta",
"axepress/wp-graphql-cs": "^2.0.0-beta",
"wp-cli/wp-cli-bundle": "^2.8.1",
"php-coveralls/php-coveralls": "^2.5"
},
Expand Down Expand Up @@ -83,10 +83,10 @@
"php ./vendor/bin/phpcs -i"
],
"check-cs": [
"php ./vendor/bin/phpcs src"
"php ./vendor/bin/phpcs"
],
"fix-cs": [
"php ./vendor/bin/phpcbf src"
"php ./vendor/bin/phpcbf"
],
"phpstan": [
"phpstan analyze --ansi --memory-limit=1G"
Expand Down
Loading
Loading