Skip to content
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
50 changes: 15 additions & 35 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,66 +1,46 @@
{
"extends": "@10up/eslint-config",
"root": true,
"extends": ["eslint:recommended", "prettier"],
"parserOptions": {
"ecmaVersion": 2021,
"sourceType": "script"
},
"env": {
"es6": true,
"es2021": true,
"node": true,
"jest": true
},
"rules": {
"array-bracket-spacing": [
"error",
"always"
],
"camelcase": [
"error",
{
"allow": [
"depends_on",
"mem_limit",
"mem_reservation",
"cap_add"
]
}
],
"indent": [
"error",
"tab",
{
"SwitchCase": 1
"allow": ["depends_on", "mem_limit", "mem_reservation", "cap_add"]
}
],
"no-alert": "warn",
"no-console": "off",
"no-constant-condition": [
"error",
{
"checkLoops": false
}
],
"no-console": "off",
"no-empty": [
"error",
{
"allowEmptyCatch": true
}
],
"no-trailing-spaces": "error",
"object-curly-spacing": [
"error",
"always"
],
"no-var": "warn",
"prefer-const": "error",
"prefer-destructuring": [
"error",
{
"array": false,
"object": true
}
],
"require-jsdoc": "off",
"template-curly-spacing": [
"error",
"always"
],
"yoda": [
"error",
"never"
]
"prefer-template": "error",
"yoda": ["error", "never"]
}
}
}
122 changes: 61 additions & 61 deletions .github/ISSUE_TEMPLATE/1-bug-report.yml
Original file line number Diff line number Diff line change
@@ -1,69 +1,69 @@
name: "\U0001F41B Bug report"
description: "Report a bug with this project."
labels: "bug"
description: 'Report a bug with this project.'
labels: 'bug'
body:
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report! Please fill in as much of the template below as you can.
- type: markdown
attributes:
value: |
Thanks for taking the time to fill out this bug report! Please fill in as much of the template below as you can.

- type: checkboxes
id: faqs
attributes:
label: Troubleshooting
description: By submitting this issue, you agree that our [troubleshooting tips](https://github.com/Rahmon/wpdocker#i-am-having-issues-with-wp-local-docker-what-are-the-best-troubleshooting-techniques) have not helped resolve the issue.
options:
- label: I have attempted to troubleshoot this already
required: true

- type: textarea
attributes:
label: Describe the bug
description: Please write a clear and concise description of the bug, including what you expect to happen and what is currently happening.
placeholder: |
Feature '...' is not working properly. I expect '...' to happen, but '...' happens instead.
validations:
- type: checkboxes
id: faqs
attributes:
label: Troubleshooting
description: By submitting this issue, you agree that our [troubleshooting tips](https://github.com/Rahmon/wpdocker#i-am-having-issues-with-wp-local-docker-what-are-the-best-troubleshooting-techniques) have not helped resolve the issue.
options:
- label: I have attempted to troubleshoot this already
required: true

- type: textarea
attributes:
label: Steps to Reproduce
description: Please write the steps needed to reproduce the bug.
placeholder: |
1. Go to '...'
2. Click on '...'
3. Scroll down to '...'
4. See error
validations:
required: true
- type: textarea
attributes:
label: Describe the bug
description: Please write a clear and concise description of the bug, including what you expect to happen and what is currently happening.
placeholder: |
Feature '...' is not working properly. I expect '...' to happen, but '...' happens instead.
validations:
required: true

- type: textarea
attributes:
label: Screenshots, screen recording, code snippet
description: |
If possible, please upload a screenshot or screen recording which demonstrates the bug. You can use LIEcap to create a GIF screen recording: https://www.cockos.com/licecap/
Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in.
For small snippets paste it directly here, or you can use GitHub Gist to share multiple code files: https://gist.github.com
Please ensure the shared code can be used by a developer to reproduce the issue—ideally it can be copied into a local development environment or executed in a browser console to help debug the issue
validations:
required: false
- type: textarea
attributes:
label: Steps to Reproduce
description: Please write the steps needed to reproduce the bug.
placeholder: |
1. Go to '...'
2. Click on '...'
3. Scroll down to '...'
4. See error
validations:
required: true

- type: textarea
attributes:
label: Environment information
placeholder: |
- Device: <!-- [e.g. MacBook] -->
- OS: <!-- [e.g. MacOS 10.14.3] -->
- Docker Desktop version: <!-- [e.g. 3.3.3 ] -->
- Browser and version: <!-- [e.g. Firefox 65.0.1, Chrome 73.0.3683.75, Safari 12.0.3] -->
validations:
required: false
- type: textarea
attributes:
label: Screenshots, screen recording, code snippet
description: |
If possible, please upload a screenshot or screen recording which demonstrates the bug. You can use LIEcap to create a GIF screen recording: https://www.cockos.com/licecap/
Tip: You can attach images or log files by clicking this area to highlight it and then dragging files in.
For small snippets paste it directly here, or you can use GitHub Gist to share multiple code files: https://gist.github.com
Please ensure the shared code can be used by a developer to reproduce the issue—ideally it can be copied into a local development environment or executed in a browser console to help debug the issue
validations:
required: false

- type: checkboxes
id: terms
attributes:
label: Code of Conduct
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/Rahmon/wpdocker/blob/develop/CODE_OF_CONDUCT.md).
options:
- label: I agree to follow this project's Code of Conduct
required: true
- type: textarea
attributes:
label: Environment information
placeholder: |
- Device: <!-- [e.g. MacBook] -->
- OS: <!-- [e.g. MacOS 10.14.3] -->
- Docker Desktop version: <!-- [e.g. 3.3.3 ] -->
- Browser and version: <!-- [e.g. Firefox 65.0.1, Chrome 73.0.3683.75, Safari 12.0.3] -->
validations:
required: false

- type: checkboxes
id: terms
attributes:
label: Code of Conduct
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/Rahmon/wpdocker/blob/develop/CODE_OF_CONDUCT.md).
options:
- label: I agree to follow this project's Code of Conduct
required: true
78 changes: 39 additions & 39 deletions .github/ISSUE_TEMPLATE/2-enhancement.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,45 @@
name: "\U0001F680 Enhancement"
description: "Suggest an idea for this project."
labels: "enhancement"
description: 'Suggest an idea for this project.'
labels: 'enhancement'
body:
- type: markdown
attributes:
value: |
Thank you for suggesting an idea to make things better. Please fill in as much of the form below as you can.
- type: markdown
attributes:
value: |
Thank you for suggesting an idea to make things better. Please fill in as much of the form below as you can.

- type: textarea
attributes:
label: Is your enhancement related to a problem? Please describe.
description: Please describe the problem you are trying to solve and your ideal desired behavior.
placeholder: |
I use this project as a `...` and I would like `...` so that `...describe benefit...`.
validations:
required: true
- type: textarea
attributes:
label: Is your enhancement related to a problem? Please describe.
description: Please describe the problem you are trying to solve and your ideal desired behavior.
placeholder: |
I use this project as a `...` and I would like `...` so that `...describe benefit...`.
validations:
required: true

- type: textarea
attributes:
label: Designs
description: |
If applicable, add mockups/screenshots/etc. to help explain your idea.
Tip: You can attach images or videos by clicking this area to highlight it and then dragging files in.
validations:
required: false
- type: textarea
attributes:
label: Designs
description: |
If applicable, add mockups/screenshots/etc. to help explain your idea.
Tip: You can attach images or videos by clicking this area to highlight it and then dragging files in.
validations:
required: false

- type: textarea
attributes:
label: Describe alternatives you've considered
description: |
Please describe alternative solutions or features you have considered.
placeholder: |
I have also considered `...describe alternative...`, however I feel that my solution described above is better because of `...reason...`.
validations:
required: false
- type: textarea
attributes:
label: Describe alternatives you've considered
description: |
Please describe alternative solutions or features you have considered.
placeholder: |
I have also considered `...describe alternative...`, however I feel that my solution described above is better because of `...reason...`.
validations:
required: false

- type: checkboxes
id: terms
attributes:
label: Code of Conduct
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/Rahmon/wpdocker/blob/develop/CODE_OF_CONDUCT.md).
options:
- label: I agree to follow this project's Code of Conduct
required: true
- type: checkboxes
id: terms
attributes:
label: Code of Conduct
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/Rahmon/wpdocker/blob/develop/CODE_OF_CONDUCT.md).
options:
- label: I agree to follow this project's Code of Conduct
required: true
58 changes: 29 additions & 29 deletions .github/ISSUE_TEMPLATE/3-help.yml
Original file line number Diff line number Diff line change
@@ -1,33 +1,33 @@
name: "❓ Need help?"
description: "Ask us a question, we are here to help!"
labels: "question"
name: '❓ Need help?'
description: 'Ask us a question, we are here to help!'
labels: 'question'
body:
- type: markdown
attributes:
value: |
If you have a question that is neither a bug report nor an enhancement, then please post it here! Please fill in as much of the form below as you can.
- type: markdown
attributes:
value: |
If you have a question that is neither a bug report nor an enhancement, then please post it here! Please fill in as much of the form below as you can.

- type: checkboxes
id: faqs
attributes:
label: Troubleshooting
description: By submitting this question, you agree that our [troubleshooting tips](https://github.com/Rahmon/wpdocker#i-am-having-issues-with-wp-local-docker-what-are-the-best-troubleshooting-techniques) have not helped resolve the quesstion.
options:
- label: I have attempted to troubleshoot this already
required: true

- type: textarea
attributes:
label: Describe your question
description: A clear and concise description of what your question is.
validations:
- type: checkboxes
id: faqs
attributes:
label: Troubleshooting
description: By submitting this question, you agree that our [troubleshooting tips](https://github.com/Rahmon/wpdocker#i-am-having-issues-with-wp-local-docker-what-are-the-best-troubleshooting-techniques) have not helped resolve the quesstion.
options:
- label: I have attempted to troubleshoot this already
required: true

- type: checkboxes
id: terms
attributes:
label: Code of Conduct
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/Rahmon/wpdocker/blob/develop/CODE_OF_CONDUCT.md).
options:
- label: I agree to follow this project's Code of Conduct
required: true
- type: textarea
attributes:
label: Describe your question
description: A clear and concise description of what your question is.
validations:
required: true

- type: checkboxes
id: terms
attributes:
label: Code of Conduct
description: By submitting this issue, you agree to follow our [Code of Conduct](https://github.com/Rahmon/wpdocker/blob/develop/CODE_OF_CONDUCT.md).
options:
- label: I agree to follow this project's Code of Conduct
required: true
6 changes: 3 additions & 3 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Looking for documentation?
url: https://github.com/Rahmon/wpdocker/#readme
about: If you're looking for information on installation, global commands, environments, WP Snapshots, and related tools then check out the WP Local Docker Readme.
- name: Looking for documentation?
url: https://github.com/Rahmon/wpdocker/#readme
about: If you're looking for information on installation, global commands, environments, WP Snapshots, and related tools then check out the WP Local Docker Readme.
1 change: 0 additions & 1 deletion .github/workflows/close-stale-issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,3 @@ jobs:
close-issue-reason: 'not_planned'
any-of-labels: 'reporter feedback'
remove-stale-when-updated: true

Loading
Loading