Skip to content

Commit

Permalink
feat: updated prettier config
Browse files Browse the repository at this point in the history
  • Loading branch information
acaldas committed Aug 5, 2024
1 parent f110304 commit 59011d5
Show file tree
Hide file tree
Showing 4 changed files with 55 additions and 3 deletions.
3 changes: 2 additions & 1 deletion api/.eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
// From: https://github.com/airbnb/javascript/issues/451 - we want airbnb, but not it's react rules (because we don't use react)
"extends": [
"airbnb-base",
"airbnb-typescript/base"
"airbnb-typescript/base",
"prettier"
],
"parser": "@typescript-eslint/parser",
"parserOptions": {
Expand Down
7 changes: 5 additions & 2 deletions api/.prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"tabWidth": 2,
"singleQuote": true
"tabWidth": 2,
"singleQuote": true,
"arrowParens": "avoid",
"trailingComma": "none",
"plugins": ["prettier-plugin-organize-imports"]
}
4 changes: 4 additions & 0 deletions api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"debug": "DEBUG=1 npm run dev",
"lint": "eslint \"./**/*.{ts,tsx}\" --max-warnings=0",
"typecheck": "tsc --noEmit",
"format": "prettier . --write",
"test": "vitest run && vitest run --config ./vitest.modules.config.ts",
"watch": "vitest watch",
"build": "node --no-warnings=ExperimentalWarning ./esbuild.config.js",
Expand Down Expand Up @@ -78,8 +79,11 @@
"eslint": "^8.57.0",
"eslint-config-airbnb-base": "^15.0.0",
"eslint-config-airbnb-typescript": "^17.1.0",
"eslint-config-prettier": "^9.1.0",
"gql-query-builder": "^3.8.0",
"node-fetch": "^3.3.2",
"prettier": "^3.3.2",
"prettier-plugin-organize-imports": "^4.0.0",
"semantic-release": "^24.0.0",
"typescript": "^5.4.5",
"vitest-mock-extended": "^1.3.1"
Expand Down
44 changes: 44 additions & 0 deletions api/pnpm-lock.yaml

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

0 comments on commit 59011d5

Please sign in to comment.