Skip to content

Commit

Permalink
change config to support prettier (#3482)
Browse files Browse the repository at this point in the history
Signed-off-by: dartcafe <[email protected]>
  • Loading branch information
dartcafe authored May 6, 2024
1 parent 6997353 commit 58768b1
Show file tree
Hide file tree
Showing 5 changed files with 43 additions and 9 deletions.
7 changes: 1 addition & 6 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,24 +1,19 @@
module.exports = {
extends: [
'plugin:promise/recommended',
'plugin:vue/essential',
'@nextcloud',
'prettier',
],
plugins: [
'promise',
],
rules: {
'arrow-parens': 'error',
'arrow-body-style': 'error',
'brace-style': 'error',
'newline-per-chained-call': ['error', { ignoreChainWithDepth: 4 }],
'no-array-constructor': 'error',
'no-continue': 'error',
'no-else-return': ['error', { allowElseIf: false }],
'no-lonely-if': 'error',
'no-negated-condition': 'error',
'no-plusplus': ['error', { allowForLoopAfterthoughts: true }],
'object-curly-spacing': ['error', 'always'],
'prefer-template': 'error',
'vue/no-unused-properties': ['error', {
groups: ['props', 'data', 'computed', 'methods'],
Expand Down
27 changes: 27 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# version control systems directories
**/.git
**/.svn
**/.hg

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

# Compiled JS output
js/

# PHP
appinfo/
lib/
tests/
templates/
**/*.php

# individual files
screenshots/
img/
cache/
build/
*.md

1 change: 1 addition & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
"@nextcloud/prettier-config"
16 changes: 13 additions & 3 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 @@ -73,6 +73,7 @@
"@nextcloud/babel-config": "^1.1.1",
"@nextcloud/browserslist-config": "^3.0.1",
"@nextcloud/eslint-config": "^8.3.0",
"@nextcloud/prettier-config": "^1.0.0",
"@nextcloud/stylelint-config": "^3.0.0",
"@nextcloud/webpack-vue-config": "^6.0.1",
"eslint-config-prettier": "^9.1.0",
Expand Down

0 comments on commit 58768b1

Please sign in to comment.