Skip to content

Commit

Permalink
chore: update wpgraphql-cs to 2.0-beta and lint (#380)
Browse files Browse the repository at this point in the history
  • Loading branch information
justlevine authored Sep 17, 2023
1 parent 140d177 commit 2ae4544
Show file tree
Hide file tree
Showing 43 changed files with 374 additions and 221 deletions.
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

0 comments on commit 2ae4544

Please sign in to comment.