Skip to content

Commit b826b8b

Browse files
committed
fixed prettier config
1 parent 2a2ec73 commit b826b8b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.prettierrc.mjs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,16 @@ const config = {
1111
useTabs: false,
1212
bracketSameLine: false,
1313
endOfLine: 'auto',
14-
plugins: ['prettier-plugin-tailwindcss'],
14+
plugins: [
15+
'prettier-plugin-tailwindcss',
16+
'@ianvs/prettier-plugin-sort-imports',
17+
],
18+
importOrder: [
19+
'<BUILTIN_MODULES>', // Node.js built-in modules
20+
'<THIRD_PARTY_MODULES>', // Imports not matched by other special words or groups.
21+
'^(@src)(/.*)$',
22+
'^[.]', // relative imports
23+
],
1524
};
1625

1726
export default config;

0 commit comments

Comments
 (0)