Skip to content

Commit

Permalink
feat: add @trivago/prettier-plugin-sort-imports, define preferred imp…
Browse files Browse the repository at this point in the history
…ort order
  • Loading branch information
SingpassAuth authored and prestonlimlianjie committed Apr 22, 2021
1 parent c28424e commit 2bf63a0
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 14 deletions.
15 changes: 14 additions & 1 deletion .prettierrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,18 @@
"bracketSpacing": true,
"semi": false,
"singleQuote": false,
"useTabs": false
"useTabs": false,
"importOrder": [
"^(..\/)layouts\/(.*)$",
"^(..\/)components\/(.*)$",
"^(..\/)templates\/(.*)$",
"^(..\/)hooks\/(.*)$",
"^(..\/)contexts\/(.*)$",
"^(..\/)utils(\/)?(.*)$",
"^(..\/..\/)utils(\/)?(.*)$",
"^easymde\/dist\/easymde.min.css$",
"^(..\/)styles\/(.*)$",
"^(..\/..\/)styles\/(.*)$"
],
"importOrderSeparation": true
}
74 changes: 61 additions & 13 deletions package-lock.json

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

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
]
},
"devDependencies": {
"@trivago/prettier-plugin-sort-imports": "^1.4.4",
"cz-conventional-changelog": "^3.0.2",
"eslint": "^7.21.0",
"eslint-config-airbnb": "^18.2.1",
Expand Down

0 comments on commit 2bf63a0

Please sign in to comment.