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:
Steven Enamakel
2026-02-02 05:42:10 +05:30
parent 3dcf6d6110
commit 148d3f108f
3 changed files with 37 additions and 1 deletions
+10
View File
@@ -0,0 +1,10 @@
node_modules
dist
coverage
src-tauri
skills
*.config.js
*.config.ts
tsconfig.tsbuildinfo
yarn.lock
package-lock.json
+22
View File
@@ -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
View File
@@ -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",