Skip to content

Commit

Permalink
Update prettier plugin and configuration (#1467)
Browse files Browse the repository at this point in the history
* Add prettier svelte plugin

* Update config
  • Loading branch information
harsh-mn-yral authored Jan 27, 2023
1 parent 125ed10 commit 346612a
Show file tree
Hide file tree
Showing 3 changed files with 98 additions and 31 deletions.
19 changes: 12 additions & 7 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,13 +1,18 @@
{
"useTabs": true,
"tabWidth": 2,
"printWidth": 80,
"singleQuote": true,
"trailingComma": "none",
"printWidth": 100,
"svelteStrictMode": true,
"svelteIndentScriptAndStyle": false,
"svelteAllowShorthand": true,
"trailingComma": "all",
"semi": false,
"arrowParens": "always",
"htmlWhitespaceSensitivity": "ignore",
"quoteProps": "consistent",
"endOfLine": "auto",
"bracketSameLine": true,
"plugins": ["./node_modules/prettier-plugin-tailwindcss"],
"svelteStrictMode": false,
"svelteIndentScriptAndStyle": false,
"plugins": ["prettier-plugin-svelte", "prettier-plugin-tailwindcss"],
"pluginSearchDirs": false,
"tailwindConfig": "./packages/web-client/tailwind.config.cjs",
"overrides": [{ "files": "*.svelte", "options": { "parser": "svelte" } }]
}
106 changes: 84 additions & 22 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
"@typescript-eslint/eslint-plugin": "5.49.0",
"@typescript-eslint/parser": "5.48.2",
"eslint": "8.32.0",
"eslint-config-prettier": "8.6.0",
"eslint-plugin-svelte3": "4.0.0",
"prettier": "2.8.3",
"prettier-plugin-tailwindcss": "0.2.1"
"prettier-plugin-svelte": "2.9.0",
"prettier-plugin-tailwindcss": "0.2.2"
}
}

0 comments on commit 346612a

Please sign in to comment.