Skip to content

Commit

Permalink
fix(prettier): fix prettier rules (#22)
Browse files Browse the repository at this point in the history
* fix(prettier): fix prettier rules

* fix(prettier): fix prettier rules

* fix(prettier): fix prettier rules
  • Loading branch information
david-gomey authored Sep 3, 2024
1 parent 2de7ff9 commit 6e157bb
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
1 change: 0 additions & 1 deletion sample/src/components/counter/Counter.test.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import '@testing-library/jest-dom';
import { render, screen } from '@testing-library/react';
import { userEvent } from '@testing-library/user-event';

import { Counter } from './Counter';

describe('Counter', () => {
Expand Down
1 change: 0 additions & 1 deletion sample/src/containers/welcome/Welcome.test.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import '@testing-library/jest-dom';
import { render, screen } from '@testing-library/react';

import { Welcome } from './Welcome';

describe('Welcome', () => {
Expand Down
1 change: 0 additions & 1 deletion sample/src/hooks/useCounter.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { act, renderHook } from '@testing-library/react';

import { useCounter } from './useCounter';

describe('useCounter', () => {
Expand Down
1 change: 0 additions & 1 deletion sample/src/main.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import { StrictMode } from 'react';
import ReactDOM from 'react-dom/client';

import { App } from './App';
import './styles/index.css';

Expand Down
1 change: 0 additions & 1 deletion sample/vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { defineConfig } from 'vite';

import react from '@vitejs/plugin-react';

// https://vitejs.dev/config/
Expand Down
13 changes: 9 additions & 4 deletions src/.prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
module.exports = {
singleQuote: true,
printWidth: 120,
plugins: [require.resolve('@trivago/prettier-plugin-sort-imports')],
arrowParens: 'always',
bracketSpacing: true,
importOrder: ['^@(.*)$', '^[a-zA-Z]*/(.*)$', '^[./]'],
importOrderSeparation: true,
importOrderSeparation: false,
importOrderSortSpecifiers: true,
plugins: [require.resolve('@trivago/prettier-plugin-sort-imports')],
printWidth: 120,
semi: true,
singleQuote: true,
tabWidth: 2,
trailingComma: 'all',
};

0 comments on commit 6e157bb

Please sign in to comment.