Skip to content

Commit

Permalink
chore: adjustments for eslint config and ts extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Valeriano committed Jun 4, 2024
1 parent 243892f commit a371ab0
Show file tree
Hide file tree
Showing 5 changed files with 177 additions and 120 deletions.
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
build
dist
out
.swc
*.tsbuildinfo

# dependencies
node_modules
Expand Down Expand Up @@ -45,8 +47,5 @@ tmp
.settings
*.sublime-workspace

# typescript
*.tsbuildinfo

# vercel
.vercel
42 changes: 42 additions & 0 deletions .swcrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"$schema": "https://json.schemastore.org/swcrc",
"module": {
"type": "nodenext",
"resolveFully": true,
"strict": true,
"strictMode": true
},
"jsc": {
"experimental": {
"keepImportAssertions": true,
"plugins": [
[
"@swc/plugin-transform-imports",
{
"^(.*?)\\.ts(x)?$": {
"skipDefaultConversion": true,
"transform": "{{matches.[1]}}.js"
}
}
]
]
},
"target": "esnext",
"parser": {
"syntax": "typescript",
"tsx": true,
"decorators": true,
"dynamicImport": true,
"importAssertions": true
},
"minify": {
"compress": false,
"mangle": false
},
"baseUrl": ".",
"paths": {
"#/*": ["./src/*"]
}
},
"isModule": true
}
11 changes: 6 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,18 +20,19 @@
"prepare": "husky",
"dev": "next dev",
"build": "rm -rf dist && NODE_ENV=production next build",
"start": "next start"
"start": "NODE_ENV=production next start"
},
"devDependencies": {
"@commitlint/cli": "^19.3.0",
"@commitlint/config-conventional": "^19.2.2",
"@mkvlrn/eslint-config": "^24.6.0",
"@mkvlrn/eslint-config": "^24.6.3",
"@mkvlrn/prettier-config": "^24.6.1",
"@next/eslint-plugin-next": "^14.2.3",
"@swc/plugin-transform-imports": "^2.0.4",
"@testing-library/dom": "^10.1.0",
"@testing-library/jest-dom": "^6.4.5",
"@testing-library/react": "^15.0.7",
"@types/node": "^20.14.0",
"@testing-library/react": "^16.0.0",
"@types/node": "^20.14.1",
"@types/react": "^18.3.3",
"@types/react-dom": "^18.3.0",
"@vitejs/plugin-react-swc": "^3.7.0",
Expand All @@ -43,7 +44,7 @@
"postcss": "^8.4.38",
"tailwindcss": "^3.4.3",
"typescript": "^5.4.5",
"typescript-eslint": "^7.11.0",
"typescript-eslint": "^7.12.0",
"vite-tsconfig-paths": "^4.3.2",
"vitest": "^1.6.0"
},
Expand Down
Loading

0 comments on commit a371ab0

Please sign in to comment.