-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: genericize prettier config and add to apps/dashboard (#3396)
* chore: genericise prettier config for apps/dashboard This helps with format-on-save linting in IDEs like VSCode. * chore: rename lib in .prettierignore * fix: .prettier.config.js file name * chore: add lint:fix script to dashboard * chore: add eslint_d for faster fixing --------- Co-authored-by: bodymindarts <[email protected]>
- Loading branch information
1 parent
58eb8d1
commit abaaac7
Showing
9 changed files
with
54 additions
and
16 deletions.
There are no files selected for viewing
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
const baseConfig = require("@galoy/eslint-config/prettier"); | ||
|
||
module.exports = baseConfig |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
coverage | ||
lib | ||
dist | ||
tmp | ||
charts | ||
protos | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
module.exports = { | ||
// Custom: | ||
semi: false, | ||
trailingComma: "all", | ||
printWidth: 90, | ||
quoteProps: "consistent", | ||
|
||
// Defaults: | ||
singleQuote: false, | ||
tabWidth: 2, | ||
useTabs: false, | ||
bracketSpacing: true, | ||
arrowParens: "always", | ||
proseWrap: "preserve", | ||
endOfLine: "lf", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,6 +7,7 @@ filegroup( | |
name = "src", | ||
srcs = [ | ||
".eslintrc.base.js", | ||
".prettier.config.js", | ||
], | ||
visibility = ["PUBLIC"], | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.