Skip to content

Commit

Permalink
chore: prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
evereq committed Oct 21, 2023
1 parent 28cbbfd commit 2b408ea
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 16 deletions.
26 changes: 13 additions & 13 deletions apps/extensions/.prettierrc.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
* @type {import('prettier').Options}
*/
module.exports = {
printWidth: 80,
tabWidth: 2,
useTabs: false,
semi: false,
singleQuote: false,
trailingComma: "none",
bracketSpacing: true,
bracketSameLine: true,
plugins: [require.resolve("@plasmohq/prettier-plugin-sort-imports")],
importOrder: ["^@plasmohq/(.*)$", "^~(.*)$", "^[./]"],
importOrderSeparation: true,
importOrderSortSpecifiers: true
}
printWidth: 120,
tabWidth: 4,
useTabs: true,
semi: true,
singleQuote: true,
trailingComma: 'none',
bracketSpacing: true,
bracketSameLine: true,
plugins: [require.resolve('@plasmohq/prettier-plugin-sort-imports')],

Check warning on line 13 in apps/extensions/.prettierrc.cjs

View workflow job for this annotation

GitHub Actions / Cspell

Unknown word (plasmohq)
importOrder: ['^@plasmohq/(.*)$', '^~(.*)$', '^[./]'],

Check warning on line 14 in apps/extensions/.prettierrc.cjs

View workflow job for this annotation

GitHub Actions / Cspell

Unknown word (plasmohq)
importOrderSeparation: true,
importOrderSortSpecifiers: true
};
27 changes: 27 additions & 0 deletions apps/mobile/.prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"printWidth": 120,
"singleQuote": true,
"semi": true,
"useTabs": true,
"tabWidth": 4,
"arrowParens": "always",

Check warning on line 7 in apps/mobile/.prettierrc

View workflow job for this annotation

GitHub Actions / Cspell

Unknown word (Parens)
"trailingComma": "none",
"quoteProps": "as-needed",
"trimTrailingWhitespace": true,
"overrides": [
{
"files": "*.scss",
"options": {
"useTabs": false,
"tabWidth": 2
}
},
{
"files": "*.yml",
"options": {
"useTabs": false,
"tabWidth": 2
}
}
]
}
25 changes: 23 additions & 2 deletions apps/web/.prettierrc
Original file line number Diff line number Diff line change
@@ -1,6 +1,27 @@
{
"printWidth": 120,
"singleQuote": true,
"trailingComma": "none",
"semi": true,
"useTabs": true,
"tabWidth": 2
"tabWidth": 4,
"arrowParens": "always",

Check warning on line 7 in apps/web/.prettierrc

View workflow job for this annotation

GitHub Actions / Cspell

Unknown word (Parens)
"trailingComma": "none",
"quoteProps": "as-needed",
"trimTrailingWhitespace": true,
"overrides": [
{
"files": "*.scss",
"options": {
"useTabs": false,
"tabWidth": 2
}
},
{
"files": "*.yml",
"options": {
"useTabs": false,
"tabWidth": 2
}
}
]
}
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@
"lint-fix:scss": "cd apps/web && stylelint **/*.{scss,css} --fix",

Check warning on line 50 in package.json

View workflow job for this annotation

GitHub Actions / Cspell

Unknown word (stylelint)
"e2e": "yarn run postinstall.web && yarn run config:dev && yarn ng e2e --browser chrome",
"e2e:ci": "yarn run postinstall.web && yarn run config:prod && yarn --frozen-lockfile --cache-folder ~/.cache/yarn ng:ci e2e -c=production --prod --headless",
"prettier": "cd apps/web && prettier --write **/*.{js,jsx,ts,tsx,scss,css} --config ./.prettierrc",
"prettier": "yarn prettier:web && yarn prettier:mobile && yarn prettier:extensions",
"prettier:extensions": "cd apps/extensions && prettier --write **/*.{js,jsx,ts,tsx,scss,css} --config ./.prettierrc.cjs",
"prettier:web": "cd apps/web && prettier --write **/*.{js,jsx,ts,tsx,scss,css} --config ./.prettierrc",
"prettier:mobile": "cd apps/mobile && prettier --write **/*.{js,jsx,ts,tsx,scss,css} --config ./.prettierrc",
"postinstall": "lerna bootstrap",
"precommit": "yarn lint-fix && yarn lint-fix:scss && yarn prettier",

Check warning on line 58 in package.json

View workflow job for this annotation

GitHub Actions / Cspell

Unknown word (precommit)
"affected:apps": "yarn nx affected:apps",
Expand Down

0 comments on commit 2b408ea

Please sign in to comment.