Skip to content

Commit

Permalink
feat(prettier): import order sorting
Browse files Browse the repository at this point in the history
  • Loading branch information
sambacha authored Jun 8, 2022
1 parent 11f373d commit b37967c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,24 @@

'use strict';

/**
* @type {import('prettier').Options}
*/
module.exports = {
arrowParens: 'always',
bracketSpacing: true,
bracketSameLine: true,
endOfLine: 'lf',
printWidth: 80,
singleQuote: true,
tabWidth: 2,
trailingComma: 'all',
quoteProps: 'as-needed',
semi: true,
plugins: [require.resolve("@trivago/prettier-plugin-sort-imports")],
importOrder: ["^@forge-std/(.*)$", "^ds-test/(.*)$", "^@openzeppelin/(.*)$"","^~(.*)$", "^[./]"],
importOrderSeparation: true,
importOrderSortSpecifiers: true,
overrides: [
{
files: '*.sol',
Expand Down

0 comments on commit b37967c

Please sign in to comment.