Skip to content

Commit 090a2e9

Browse files
committed
added trivago/prettier-plugin
1 parent 26b925f commit 090a2e9

File tree

4 files changed

+120
-199
lines changed

4 files changed

+120
-199
lines changed

README.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ Inspired by the capabilities of [duckdb-wasm](https://github.com/duckdb/duckdb-w
4141

4242
# Node.js Environment Setup
4343

44-
Dependencies are managed by `pnpm` and dev/build processes by [Vite](https://vite.dev/).
44+
Dependencies are managed by `pnpm` and dev/build processes are managed by [Vite](https://vite.dev/).
4545

4646
Follow the [pnpm docs](https://pnpm.io/installation) to install pnpm locally. For Mac,
4747
```bash
@@ -50,15 +50,8 @@ curl -fsSL https://get.pnpm.io/install.sh | sh -
5050

5151
Change the `/app` directory.
5252
```bash
53-
# Trying to use the UI from the Vite port (5173) will lead to auth errors.
5453
pnpm dev
55-
56-
# Generate production build files will be at airflow/ui/dist
5754
pnpm build
58-
59-
# Format code in .ts, .tsx, .json, .css, .html files
6055
pnpm format
61-
62-
# Check JS/TS code in .ts, .tsx, .html files and report any errors/warnings
6356
pnpm lint
6457
```

app/.prettierrc.json

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
{
2-
"tabWidth": 2,
2+
"$schema": "http://json.schemastore.org/prettierrc",
3+
"endOfLine": "lf",
4+
"importOrderSeparation": true,
5+
"jsxSingleQuote": false,
6+
"plugins": ["@trivago/prettier-plugin-sort-imports"],
7+
"printWidth": 110,
38
"singleQuote": false,
4-
"trailingComma": "all"
5-
}
9+
"tabWidth": 2,
10+
"trailingComma": "all",
11+
"useTabs": false
12+
}

app/package.json

Lines changed: 35 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -15,43 +15,45 @@
1515
"deploy": "gh-pages -d dist"
1616
},
1717
"dependencies": {
18-
"@ag-grid-community/core": "^32.3.5",
19-
"@ag-grid-community/react": "^32.3.5",
20-
"@duckdb/duckdb-wasm": "1.29.1-dev132.0",
21-
"@duckdb/duckdb-wasm-shell": "1.29.1-dev132.0",
22-
"@emotion/react": "^11.14.0",
23-
"@emotion/styled": "^11.14.0",
24-
"@mui/icons-material": "^7.0.2",
25-
"@mui/material": "^7.0.2",
26-
"ag-grid-community": "^33.2.3",
27-
"ag-grid-enterprise": "^33.2.3",
28-
"ag-grid-react": "^33.2.3",
18+
"@ag-grid-community/core": "^32.1.0",
19+
"@ag-grid-community/react": "^32.1.0",
20+
"@duckdb/duckdb-wasm": "^1.29.0",
21+
"@duckdb/duckdb-wasm-shell": "^1.28.1-dev106.0",
22+
"@emotion/react": "^11.13.3",
23+
"@emotion/styled": "^11.13.0",
24+
"@mui/icons-material": "^6.1.0",
25+
"@mui/material": "^6.1.0",
26+
"@trivago/prettier-plugin-sort-imports": "^5.2.2",
27+
"ag-grid-community": "^32.0.2",
28+
"ag-grid-enterprise": "^32.0.2",
29+
"ag-grid-react": "^32.0.2",
2930
"file-saver": "^2.0.5",
30-
"papaparse": "^5.5.2",
31-
"react": "^19.1.0",
32-
"react-dom": "^19.1.0",
33-
"react-icons": "^5.5.0",
31+
"papaparse": "^5.4.1",
32+
"react": "^18.3.1",
33+
"react-dom": "^18.3.1",
34+
"react-icons": "^5.3.0",
3435
"react-tabs": "^6.1.0",
35-
"typescript": "~5.8.3",
36+
"typescript": "5.5",
3637
"xlsx": "^0.18.5"
3738
},
3839
"devDependencies": {
39-
"@eslint/js": "^9.24.0",
40-
"@types/react": "^19.1.1",
41-
"@types/react-dom": "^19.1.2",
42-
"@typescript-eslint/eslint-plugin": "^8.29.1",
43-
"@typescript-eslint/parser": "^8.29.1",
44-
"@vitejs/plugin-react": "^4.3.4",
45-
"eslint": "^9.24.0",
46-
"eslint-config-prettier": "^10.1.2",
47-
"eslint-plugin-airbnb": "0.0.1-security",
48-
"eslint-plugin-react": "^7.37.5",
49-
"eslint-plugin-react-refresh": "^0.4.19",
50-
"gh-pages": "^6.3.0",
51-
"globals": "^16.0.0",
52-
"prettier": "^3.5.3",
53-
"typescript-eslint": "^8.29.1",
54-
"vite": "^6.2.6",
55-
"vite-plugin-wasm": "^3.4.1"
40+
"@eslint/js": "^9.13.0",
41+
"@types/react": "^18.3.3",
42+
"@types/react-dom": "^18.3.0",
43+
"@typescript-eslint/eslint-plugin": "^8.11.0",
44+
"@typescript-eslint/parser": "^8.11.0",
45+
"@vitejs/plugin-react": "^4.3.1",
46+
"eslint": "^8.57.1",
47+
"eslint-config-prettier": "^9.1.0",
48+
"eslint-plugin-airbnb": "^0.0.1-security",
49+
"eslint-plugin-react": "^7.37.2",
50+
"eslint-plugin-react-hooks": "^4.6.2",
51+
"eslint-plugin-react-refresh": "^0.4.7",
52+
"gh-pages": "^6.1.1",
53+
"globals": "^15.11.0",
54+
"prettier": "^3.3.3",
55+
"typescript-eslint": "^8.11.0",
56+
"vite": "^5.3.4",
57+
"vite-plugin-wasm": "^3.3.0"
5658
}
5759
}

0 commit comments

Comments
 (0)