mirror of
https://github.com/tinyhumansai/openhuman.git
synced 2026-07-27 21:08:00 +00:00
Add Prettier configuration and ignore files for code formatting
- Introduced a new `.prettierrc` file to define code formatting rules, including settings for semicolons, trailing commas, and import order. - Added a `.prettierignore` file to exclude specific directories and files from formatting, ensuring a cleaner codebase. - Updated `package.json` to include new scripts for formatting and linting, enhancing the development workflow. These changes establish a consistent code style and improve maintainability across the project.
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
node_modules
|
||||
dist
|
||||
coverage
|
||||
src-tauri
|
||||
skills
|
||||
*.config.js
|
||||
*.config.ts
|
||||
tsconfig.tsbuildinfo
|
||||
yarn.lock
|
||||
package-lock.json
|
||||
+22
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"semi": true,
|
||||
"trailingComma": "es5",
|
||||
"singleQuote": true,
|
||||
"printWidth": 100,
|
||||
"tabWidth": 2,
|
||||
"useTabs": false,
|
||||
"bracketSpacing": true,
|
||||
"arrowParens": "avoid",
|
||||
"endOfLine": "lf",
|
||||
"bracketSameLine": true,
|
||||
"objectWrap": "collapse",
|
||||
"jsxSingleQuote": false,
|
||||
"quoteProps": "as-needed",
|
||||
"proseWrap": "preserve",
|
||||
"plugins": ["@trivago/prettier-plugin-sort-imports"],
|
||||
"importOrder": ["<THIRD_PARTY_MODULES>", "^src/", "^[../]", "^[./]"],
|
||||
"importOrderSeparation": true,
|
||||
"importOrderSortSpecifiers": true,
|
||||
"importOrderCaseInsensitive": true,
|
||||
"importOrderGroupNamespaceSpecifiers": true
|
||||
}
|
||||
+5
-1
@@ -14,7 +14,11 @@
|
||||
"setup-python-sidecar": "node scripts/setup-python-sidecar.mjs",
|
||||
"test": "vitest run",
|
||||
"test:watch": "vitest",
|
||||
"test:coverage": "vitest run --coverage"
|
||||
"test:coverage": "vitest run --coverage",
|
||||
"format": "prettier --write .",
|
||||
"format:check": "prettier --check .",
|
||||
"lint": "eslint . --ext .ts,.tsx",
|
||||
"lint:fix": "eslint . --ext .ts,.tsx --fix"
|
||||
},
|
||||
"dependencies": {
|
||||
"@reduxjs/toolkit": "^2.11.2",
|
||||
|
||||
Reference in New Issue
Block a user