Skip to content

Commit

Permalink
Add Prettier (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
miku448 authored Jul 29, 2024
1 parent 094fd3a commit 1844ae1
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 12 deletions.
7 changes: 7 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"semi": true,
"trailingComma": "all",
"singleQuote": true,
"printWidth": 120,
"tabWidth": 2
}
5 changes: 0 additions & 5 deletions apps/interactor/.prettierrc

This file was deleted.

1 change: 0 additions & 1 deletion apps/interactor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
"start": "vite --force",
"build": "tsc && vite build",
"lint": "eslint . --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
"format": "prettier --write .",
"preview": "vite preview",
"test": "jest"
},
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@
"start:no-services": "lerna run start --parallel --ignore @mikugg/docs --ignore @mikugg/services",
"run-services": "cd apps/services && node --loader ts-node/esm src/server.mts",
"test": "lerna run test --scope=@mikugg/extensions --scope=@mikugg/ui-kit",
"format": "prettier --write --loglevel warn '**/src/**/*.{js,jsx,ts,tsx,json,md,scss}'",
"format:check": "prettier --check '**/src/**/*.{js,jsx,ts,tsx,json,md,scss}'",
"pull": "git reset --hard HEAD && git pull origin master && pnpm install",
"build": "npx lerna run build"
},
Expand Down
4 changes: 0 additions & 4 deletions packages/ui-kit/.prettierrc.json

This file was deleted.

2 changes: 0 additions & 2 deletions packages/ui-kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,6 @@
"lint:ts": "tslint 'src/**/*.{ts,tsx}'",
"lint:es": "eslint 'src/**/*.{js,jsx,ts,tsx}'",
"lint:scss": "stylelint 'src/**/*.scss'",
"format": "prettier --write --loglevel warn 'src/**/*.{js,jsx,ts,tsx,json,md,scss}'",
"format:check": "prettier --check 'src/**/*.{js,jsx,ts,tsx,json,md,scss}'",
"_test": "npm run lint:ts && npm run lint:es && npm run lint:scss && npm run format:check"
},
"keywords": [],
Expand Down

0 comments on commit 1844ae1

Please sign in to comment.