Skip to content

Commit

Permalink
chore: Use prettier for stylistic rules
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Hartmann <[email protected]>
  • Loading branch information
Chartman123 committed May 5, 2024
1 parent 5b2c7af commit 58f8508
Show file tree
Hide file tree
Showing 5 changed files with 231 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"appName": true
},
"extends": [
"@nextcloud"
"@nextcloud",
"prettier" // < this needs to be the last one to override all previous
],
"rules": {
// We are using the @nextcloud/logger
Expand Down
15 changes: 15 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# version control systems directories
**/.git
**/.svn
**/.hg

# 3rdparty dependencies
**/node_modules
**/vendor

# Compiled JS output
js/

# PHP
lib/
**/*.php
1 change: 1 addition & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"@nextcloud/prettier-config"
218 changes: 212 additions & 6 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
"@nextcloud/browserslist-config": "^3.0.1",
"@nextcloud/cypress": "^1.0.0-beta.8",
"@nextcloud/eslint-config": "^8.3.0",
"@nextcloud/prettier-config": "^1.1.0",
"@nextcloud/stylelint-config": "^3.0.0",
"@nextcloud/vite-config": "^1.2.3",
"cypress": "^13.8.1",
Expand Down

0 comments on commit 58f8508

Please sign in to comment.