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

refactor top level prettier, pnpm instead of yarn #310

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion website/.editorconfig → .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ insert_final_newline = true
trim_trailing_whitespace = true

[*.md]
trim_trailing_whitespace = false
trim_trailing_whitespace = false
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18
20
14 changes: 14 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# website
website/node_modules
website/public
website/.next
website/.cache
website/__generated__

# wordpress
wordpress/node_modules
wordpress/composer
wordpress/wp-content/plugins
wordpress/wp-content/mu-plugins
wordpress/**/assets/vendor
wordpress/**/acf-json
12 changes: 8 additions & 4 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,19 @@
// Global default is to use VS Code prettier plugin
"editor.defaultFormatter": "esbenp.prettier-vscode",
"editor.formatOnSave": true,

// https://github.com/prettier/plugin-php?tab=readme-ov-file#visual-studio-code
"prettier.documentSelectors": [
"**/*.{js,jsx,ts,tsx,vue,html,css,scss,less,json,md,mdx,graphql,yaml,yml,php}"
],

// As of version 14, stylelint needs to be told to validate SCSS
"stylelint.validate": ["css", "scss"],

// Turn on auto-fixing for project defined linters.
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit",
"source.fixAll.stylelint": "explicit"
},
"eslint.workingDirectories": ["website"],
"[php]": {
"editor.defaultFormatter": "bmewburn.vscode-intelephense-client"
}
"eslint.workingDirectories": ["website"]
}
9 changes: 9 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "launch-root-project",
"version": "1.0.0",
"private": true,
"devDependencies": {
"@prettier/plugin-php": "^0.22.2",
"prettier": "3.3.3"
}
}
Loading