Skip to content

Commit

Permalink
update recommended extensions and settings (#1709)
Browse files Browse the repository at this point in the history
  • Loading branch information
xavdid-stripe authored Jun 20, 2024
1 parent dcaf245 commit dbef429
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ charset = utf-8
[*.{json,yml}]
indent_size = 2

[*.neon]
[*.{neon,neon.dist}]
indent_style = tab

[Makefile]
Expand Down
9 changes: 4 additions & 5 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"recommendations": [
"felixfbecker.php-intellisense",
"ikappas.phpcs",
"emallin.phpunit",
"EditorConfig.editorconfig",
"sophisticode.php-formatter"
"EditorConfig.editorconfig", // standard
"bmewburn.vscode-intelephense-client", // intellisense
"emallin.phpunit", // nice unit-testing runners
"SanderRonde.phpstan-vscode" // linting
]
}
11 changes: 5 additions & 6 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@

"editor.renderWhitespace": "all",

"[php]": {
"editor.defaultFormatter": "bmewburn.vscode-intelephense-client"
},

// Formatting
"editor.formatOnSave": true,
"phpformatter.composer": true,
"phpformatter.arguments": [""],

// Linting
"phpcs.enable": true,
"phpcs.standard": "PSR2"
"intelephense.format.braces": "psr12"
}
4 changes: 4 additions & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,7 @@ parameters:
- '#Unsafe usage of new static\(\).#'

reportUnmatchedIgnoredErrors: false

paths:
- lib
- tests

0 comments on commit dbef429

Please sign in to comment.