Skip to content

Commit

Permalink
chore: adds Prettier
Browse files Browse the repository at this point in the history
Signed-off-by: Pedro Lamas <[email protected]>
  • Loading branch information
pedrolamas committed Dec 22, 2022
1 parent 78f2780 commit 7b43f90
Show file tree
Hide file tree
Showing 5 changed files with 141 additions and 3 deletions.
1 change: 0 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ trim_trailing_whitespace = true

[*.{js,jsx,ts,tsx,vue}]
indent_style = space
max_line_length = 100

[*.{md,markdown}]
max_line_length = 0
Expand Down
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ module.exports = {
'plugin:vue/recommended',
'eslint:recommended',
'@vue/standard',
'@vue/eslint-config-typescript/recommended'
'@vue/eslint-config-typescript/recommended',
'@vue/eslint-config-prettier',
],
rules: {
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
Expand Down
6 changes: 6 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"semi": false,
"singleQuote": true,
"htmlWhitespaceSensitivity": "ignore",
"singleAttributePerLine": true
}
129 changes: 129 additions & 0 deletions package-lock.json

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

5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"serve": "vite",
"serve:prod": "vite preview --port 5000",
"serve:docs": "cd ./docs; bundle exec jekyll serve",
"lint": "eslint --ext .ts,.js,.vue ./src",
"lint": "eslint --ignore-path .gitignore ./src",
"format": "npm run lint -- --fix",
"bootstrap": "husky install",
"copy:host:config": "shx cp -f ./server/config.json ./dist/config.json",
"deploy:host": "npx --yes -p @0x4447/potato potato -s dist -u -b app.fluidd.xyz -a \"$AWS_ACCESS_KEY_ID\" -t \"$AWS_SECRET_ACCESS_KEY\"",
Expand Down Expand Up @@ -81,6 +82,7 @@
"@typescript-eslint/eslint-plugin": "^5.46.1",
"@typescript-eslint/parser": "^5.46.1",
"@vitejs/plugin-vue2": "^2.2.0",
"@vue/eslint-config-prettier": "^7.0.0",
"@vue/eslint-config-standard": "^8.0.1",
"@vue/eslint-config-typescript": "^11.0.2",
"@vue/test-utils": "^1.3.3",
Expand All @@ -92,6 +94,7 @@
"madge": "^5.0.1",
"mockdate": "^3.0.5",
"monaco-vscode-textmate-theme-converter": "^0.1.7",
"prettier": "^2.8.1",
"sass": "~1.32",
"shx": "^0.3.4",
"standard-version": "^9.5.0",
Expand Down

0 comments on commit 7b43f90

Please sign in to comment.