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

Added Prettier Tool to Another Branch to Test Github Actions #64

Open
wants to merge 22 commits into
base: f24
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
b30941c
added install and check logs
anna-mat Oct 28, 2024
4a44a50
added prettier ignore file
anna-mat Oct 28, 2024
84a6728
Updated test.yaml to include Prettier Write and Prettier Check actions
anna-mat Oct 28, 2024
df09be9
Updated Prettier Check to include referencing .prettierignore file
anna-mat Oct 29, 2024
39c790f
Fixing Prettier Check parsing error
anna-mat Oct 29, 2024
4bf2b08
Updated .prettierignore to ignore files that cannot be changed by Pre…
anna-mat Oct 29, 2024
334c48d
Updated .prettierignore to add one more file that cannot be reached b…
anna-mat Oct 29, 2024
ca266dc
Update .eslintrc to turn off rules that might conflict with Prettier
anna-mat Oct 30, 2024
b840e0c
Added comment which was missing
anna-mat Oct 30, 2024
2669483
Fixed syntax error
anna-mat Oct 30, 2024
969f477
Update .eslintrc to fix syntax error to allow for less style conflicts
anna-mat Oct 30, 2024
a6a80b6
Update test.yaml to install eslint-config-prettier
anna-mat Oct 30, 2024
f4e9303
Update .eslintrc to add rules to pass ESLint with Prettier
anna-mat Oct 30, 2024
6e30e2a
Update .eslintrc to switch off comma-dangle rule
anna-mat Oct 30, 2024
95d389d
Update .eslintrc to include Prettier integration
anna-mat Oct 30, 2024
4f98ca5
Update test.yaml to install eslint-config-prettier and related plugins
anna-mat Oct 30, 2024
799cdea
Update .eslintrc to undo changes made in last commit
anna-mat Oct 30, 2024
d06fd1e
Update test.yaml to undo changes made in last commit and only install…
anna-mat Oct 30, 2024
84d360d
Update .eslintrc to add new rules to reduce conflicst between ESLint …
anna-mat Oct 30, 2024
5df1703
Update .eslintrc to add missing comma in rules
anna-mat Oct 30, 2024
7d26bf4
Update .eslintrc to change order of rules and ensure comma-dangle rul…
anna-mat Oct 30, 2024
60437e5
Update .eslintrc to switch off no script url rule
anna-mat Oct 30, 2024
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
14 changes: 13 additions & 1 deletion .eslintrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
{
"extends": "nodebb"
"extends":
[
"nodebb",
"prettier",
"eslint-config-prettier"
],
"rules": {
"comma-dangle": "off",
"no-bitwise": "off",
"no-unused-vars": "off",
"no-useless-concat": "off",
"no-script-url": "off"
}
}
11 changes: 10 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,16 @@ jobs:
}
run: |
node app --setup="${SETUP}" --ci="${CI}"


- name: Install eslint-config-prettier
run: npm install --save-dev eslint-config-prettier

- name: Run Prettier Write
run: npx prettier . --write

- name: Run Prettier Check
run: npx prettier --ignore-path .prettierignore --check "**/*.{js,ts,jsx,tsx,json,css,html,md}"

- name: Run ESLint
run: npm run lint

Expand Down
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
build/public/admin/settings-navigation.f31ba7263c15da727bc2.min.js
build/public/92619.62e783fd27ddbef24c31.min.js
config.json
package-lock.json
package.json
Loading
Loading