Skip to content

Commit

Permalink
Merge pull request #4 from cs3216-a3-group-4/chloe/frontend-chores
Browse files Browse the repository at this point in the history
chore(frontend): vscode workspace, eslint aliasing plugin setup
  • Loading branch information
seelengxd authored Sep 20, 2024
2 parents 618d0dd + dbd90ab commit 06dea7c
Show file tree
Hide file tree
Showing 5 changed files with 982 additions and 28 deletions.
8 changes: 8 additions & 0 deletions .vscode/assignment-3.code-workspace
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"folders": [
{
"path": ".."
}
],
"settings": {}
}
14 changes: 14 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"editor.formatOnSave": true,
"eslint.workingDirectories": ["./frontend"],
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"javascript.preferences.importModuleSpecifier": "non-relative"
}
18 changes: 17 additions & 1 deletion frontend/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
{
"extends": ["next/core-web-vitals", "next/typescript", "prettier"],
"extends": [
"plugin:@dword-design/import-alias/recommended",
"next/core-web-vitals",
"next/typescript",
"prettier"
],
"plugins": ["simple-import-sort", "prettier"],
"rules": {
"react/jsx-sort-props": "error",
Expand All @@ -17,6 +22,17 @@
}
],
"simple-import-sort/exports": "error",
"@dword-design/import-alias/prefer-alias": [
"error",
{
"alias": {
"@": "./",
"@/components": "./components/",
"@/lib": "./lib/"
},
"aliasForSubpaths": true
}
],
"prettier/prettier": "error"
}
}
Loading

0 comments on commit 06dea7c

Please sign in to comment.