Skip to content

Commit

Permalink
dev/use localized prettier settings
Browse files Browse the repository at this point in the history
  • Loading branch information
andy-leezard committed Nov 7, 2023
1 parent 26b378a commit 96cd92b
Show file tree
Hide file tree
Showing 8 changed files with 44 additions and 0 deletions.
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.min.js
11 changes: 11 additions & 0 deletions .prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = {
printWidth: 80,
tabWidth: 2,
semi: false,
arrowParens: "always",
singleQuote: false,
trailingComma: "es5",
bracketSpacing: true,
jsxBracketSameLine: false,
endOfLine: 'auto',
}
1 change: 1 addition & 0 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"@types/react-dom": "^18.0.11",
"@types/styled-components": "^5.1.26",
"@vitejs/plugin-react-swc": "^3.0.0",
"prettier": "^3.0.3",
"typescript": "^4.9.3",
"vite": "^4.2.0"
}
Expand Down
9 changes: 9 additions & 0 deletions example/pnpm-lock.yaml

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

1 change: 1 addition & 0 deletions example/src/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.min.js
11 changes: 11 additions & 0 deletions example/src/.prettierrc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module.exports = {
printWidth: 80,
tabWidth: 2,
semi: false,
arrowParens: "always",
singleQuote: false,
trailingComma: "es5",
bracketSpacing: true,
jsxBracketSameLine: false,
endOfLine: 'auto',
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"devDependencies": {
"@changesets/cli": "^2.26.1",
"@types/react": "^18.0.35",
"prettier": "^3.0.3",
"tsup": "^6.7.0",
"typescript": "^5.0.4"
},
Expand Down
9 changes: 9 additions & 0 deletions pnpm-lock.yaml

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

0 comments on commit 96cd92b

Please sign in to comment.