Skip to content

Commit

Permalink
Merge pull request #264 from SimonStnn/feature/sort-imports-with-pret…
Browse files Browse the repository at this point in the history
…tier

Sort imports with prettier
  • Loading branch information
SimonStnn authored Jul 14, 2024
2 parents 1b66766 + d9ef9c5 commit c2fb611
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 7 deletions.
8 changes: 6 additions & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
{
"plugins": ["prettier-plugin-tailwindcss"],
"plugins": ["prettier-plugin-tailwindcss", "prettier-plugin-sort-imports"],
"semi": true,
"singleQuote": true,
"printWidth": 80,
"tabWidth": 2,
"useTabs": false,
"endOfLine": "lf",
"trailingComma": "es5"
"trailingComma": "es5",
"sortingMethod": "alphabetical",
"stripNewlines": true,
"newlineBetweenTypes": false,
"importTypeOrder": ["NPMPackages", "localImportsValue", "localImportsType"]
}
21 changes: 17 additions & 4 deletions package-lock.json

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

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@
"mini-css-extract-plugin": "^2.9.0",
"mkdirp": "^3.0.1",
"postcss": "^8.4.33",
"prettier": "^3.3.2",
"prettier": "^3.3.3",
"prettier-plugin-sort-imports": "^1.8.6",
"prettier-plugin-tailwindcss": "^0.5.14",
"rimraf": "^5.0.5",
"style-loader": "^3.3.4",
Expand Down

0 comments on commit c2fb611

Please sign in to comment.