Skip to content

Commit

Permalink
chore: configure prettier to organize imports
Browse files Browse the repository at this point in the history
  • Loading branch information
Erick2280 committed Nov 26, 2024
1 parent cdbc508 commit 6d60196
Show file tree
Hide file tree
Showing 30 changed files with 286 additions and 128 deletions.
14 changes: 13 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
{
"semi": true,
"singleQuote": true
"singleQuote": true,
"importOrder": [
"tree-sitter",
"web-tree-sitter",
"tree-sitter-swift",
"vitest",
"^@oclif/(.*)$",
"<THIRD_PARTY_MODULES>",
"^[./]"
],
"importOrderSeparation": true,
"importOrderSortSpecifiers": true,
"plugins": ["@trivago/prettier-plugin-sort-imports"]
}
4 changes: 2 additions & 2 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import globals from 'globals';
import pluginJs from '@eslint/js';
import tseslint from 'typescript-eslint';
import eslintConfigPrettier from 'eslint-config-prettier';
import globals from 'globals';
import tseslint from 'typescript-eslint';

export default [
{ files: ['**/*.{js,mjs,cjs,ts}'] },
Expand Down
Loading

0 comments on commit 6d60196

Please sign in to comment.