-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
core: eslint and prettier supoort configured
- Loading branch information
Showing
13 changed files
with
840 additions
and
148 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
# ignore Files for Prettier Formatting | ||
|
||
node_modules | ||
.next | ||
dist | ||
build | ||
.github | ||
.husky | ||
public | ||
pnpm-lock.yaml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"recommendations": [ | ||
"biomejs.biome", | ||
"redhat.vscode-yaml" | ||
] | ||
} | ||
"recommendations": [ | ||
"prettier.prettier-vscode", | ||
"dbaeumer.vscode-eslint", | ||
"redhat.vscode-yaml" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,22 @@ | ||
{ | ||
"editor.defaultFormatter": "biomejs.biome", | ||
"editor.formatOnSave": true, | ||
"[javascript]": { | ||
"editor.defaultFormatter": "biomejs.biome" | ||
}, | ||
"[typescript]": { | ||
"editor.defaultFormatter": "biomejs.biome" | ||
}, | ||
"[json]": { | ||
"editor.defaultFormatter": "biomejs.biome" | ||
}, | ||
"[typescriptreact]": { | ||
"editor.defaultFormatter": "biomejs.biome" | ||
}, | ||
"[yaml]": { | ||
"editor.defaultFormatter": "redhat.vscode-yaml" | ||
}, | ||
"[css]": { | ||
"editor.defaultFormatter": "biomejs.biome" | ||
} | ||
} | ||
"editor.defaultFormatter": "esbenp.prettier-vscode", | ||
"editor.formatOnSave": true, | ||
"[javascript]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[typescript]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[json]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[typescriptreact]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
}, | ||
"[yaml]": { | ||
"editor.defaultFormatter": "redhat.vscode-yaml" | ||
}, | ||
"[css]": { | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import { default as eslint } from "@eslint/js"; | ||
import { default as tslint } from "typescript-eslint"; | ||
|
||
export default tslint.config( | ||
eslint.configs.recommended, | ||
...tslint.configs.recommended, | ||
...tslint.configs.stylistic, | ||
{ | ||
name: "next-essential-eslint", | ||
ignores: ["node_modules", "build", "dist", ".next"], | ||
}, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,13 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" type="image/" href="/favicon.png" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
</head> | ||
|
||
<head> | ||
<meta charset="UTF-8" /> | ||
<link rel="icon" type="image/" href="/favicon.png" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
</head> | ||
|
||
<body> | ||
<div id="root"></div> | ||
<script type="module" src="/src/main.tsx"></script> | ||
</body> | ||
|
||
</html> | ||
<body> | ||
<div id="root"></div> | ||
<script type="module" src="/src/main.tsx"></script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,9 +6,10 @@ | |
"scripts": { | ||
"dev": "vite", | ||
"build": "tsc -b && vite build", | ||
"lint": "biome lint --write .", | ||
"format": "biome format --write .", | ||
"lint": "eslint src/**/*", | ||
"lint:check": "pnpm dlx eslint --inspect-config", | ||
"type-check": "tsc --noEmit", | ||
"format": "prettier --write .", | ||
"clean": "pnpm rimraf node_modules && pnpm rimraf dist", | ||
"prepare": "husky", | ||
"build:prepare": "pnpm run type-check && pnpm run lint && pnpm run format && pnpm run build" | ||
|
@@ -28,18 +29,25 @@ | |
"devDependencies": { | ||
"@biomejs/biome": "^1.8.3", | ||
"@changesets/cli": "^2.27.7", | ||
"@eslint/js": "^9.9.0", | ||
"@ianvs/prettier-plugin-sort-imports": "^4.3.1", | ||
"@tanstack/router-plugin": "^1.47.0", | ||
"@tanstack/router-vite-plugin": "^1.47.0", | ||
"@types/eslint__js": "^8.42.3", | ||
"@types/node": "^22.3.0", | ||
"@types/react": "^18.3.3", | ||
"@types/react-dom": "^18.3.0", | ||
"@vitejs/plugin-react": "^4.3.1", | ||
"autoprefixer": "^10.4.20", | ||
"eslint": "^9.9.0", | ||
"husky": "^9.1.4", | ||
"postcss": "^8.4.41", | ||
"prettier": "^3.3.3", | ||
"prettier-plugin-tailwindcss": "^0.6.6", | ||
"rimraf": "^6.0.1", | ||
"tailwindcss": "^3.4.10", | ||
"typescript": "^5.5.4", | ||
"typescript-eslint": "^8.1.0", | ||
"vite": "^5.4.1" | ||
}, | ||
"packageManager": "[email protected]" | ||
|
Oops, something went wrong.