Skip to content

Commit

Permalink
feat: prettier
Browse files Browse the repository at this point in the history
running prettier in each app/package to respect individual prettierignore files
  • Loading branch information
alexanderl19 committed Aug 12, 2023
1 parent 63d8b06 commit 4b9a2e0
Show file tree
Hide file tree
Showing 6 changed files with 59 additions and 158 deletions.
16 changes: 8 additions & 8 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
module.exports = {
root: true,
// This tells ESLint to load the config from the package `eslint-config-custom`
extends: ["custom"],
settings: {
next: {
rootDir: ["apps/*/"],
},
},
root: true,
// This tells ESLint to load the config from the package `eslint-config-custom`
extends: ["custom"],
settings: {
next: {
rootDir: ["apps/*/"],
},
},
};
3 changes: 3 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"useTabs": true
}
7 changes: 0 additions & 7 deletions .prettierrc.js

This file was deleted.

7 changes: 4 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,17 @@
"build": "turbo run build",
"dev": "turbo run dev",
"lint": "turbo run lint",
"format": "prettier --write \"**/*.{ts,tsx,md}\""
"format:write": "turbo run format:write",
"format:check": "turbo run format:check"
},
"devDependencies": {
"@turbo/gen": "^1.9.7",
"eslint": "^7.32.0",
"eslint-config-custom": "workspace:*",
"next": "^13.4.1",
"prettier": "^2.5.1",
"prettier": "3.0.1 ",
"turbo": "latest"
},
"packageManager": "[email protected]",
"name": "zothacks-site-2023"
}
}
165 changes: 29 additions & 136 deletions pnpm-lock.yaml

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

19 changes: 15 additions & 4 deletions turbo.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,26 @@
{
"$schema": "https://turbo.build/schema.json",
"globalDependencies": ["**/.env.*local"],
"globalDependencies": [
"**/.env.*local"
],
"pipeline": {
"build": {
"dependsOn": ["^build"],
"outputs": [".next/**", "!.next/cache/**"]
"dependsOn": [
"^build"
],
"outputs": [
".next/**",
"!.next/cache/**"
]
},
"lint": {},
"format:write": {
"cache": false
},
"format:check": {},
"dev": {
"cache": false,
"persistent": true
}
}
}
}

0 comments on commit 4b9a2e0

Please sign in to comment.