Repository navigation
initialize pnpm workspace with strict TS, ESLint, Prettier #1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 @@ | ||
| 20 |
This file contains hidden or 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,9 @@ | ||
| node_modules | ||
| dist | ||
| build | ||
| .next | ||
| out | ||
| coverage | ||
| pnpm-lock.yaml | ||
| *.tsbuildinfo | ||
| runs |
This file contains hidden or 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,11 @@ | ||
| { | ||
| "singleQuote": true, | ||
| "semi": true, | ||
| "trailingComma": "all", | ||
| "printWidth": 100, | ||
| "tabWidth": 2, | ||
| "useTabs": false, | ||
| "arrowParens": "always", | ||
| "bracketSpacing": true, | ||
| "endOfLine": "lf" | ||
| } |
This file contains hidden or 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 contains hidden or 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 contains hidden or 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 contains hidden or 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,49 @@ | ||
| // @ts-check | ||
| import js from '@eslint/js'; | ||
| import tseslint from 'typescript-eslint'; | ||
|
|
||
| export default tseslint.config( | ||
| { | ||
| ignores: [ | ||
| '**/node_modules/**', | ||
| '**/dist/**', | ||
| '**/build/**', | ||
| '**/.next/**', | ||
| '**/coverage/**', | ||
| '**/*.tsbuildinfo', | ||
| 'runs/**', | ||
| ], | ||
| }, | ||
| js.configs.recommended, | ||
| ...tseslint.configs.recommendedTypeChecked, | ||
| ...tseslint.configs.stylisticTypeChecked, | ||
| { | ||
| languageOptions: { | ||
| parserOptions: { | ||
| projectService: true, | ||
| tsconfigRootDir: import.meta.dirname, | ||
| }, | ||
| }, | ||
| rules: { | ||
| '@typescript-eslint/no-unused-vars': [ | ||
| 'error', | ||
| { argsIgnorePattern: '^_', varsIgnorePattern: '^_' }, | ||
| ], | ||
| '@typescript-eslint/consistent-type-imports': [ | ||
| 'error', | ||
| { prefer: 'type-imports', fixStyle: 'inline-type-imports' }, | ||
| ], | ||
| '@typescript-eslint/no-explicit-any': 'error', | ||
| 'no-console': ['warn', { allow: ['warn', 'error'] }], | ||
| }, | ||
| }, | ||
| { | ||
| files: ['**/*.config.{js,mjs,ts}', '**/*.cjs'], | ||
| languageOptions: { | ||
| parserOptions: { | ||
| projectService: false, | ||
| }, | ||
| }, | ||
| ...tseslint.configs.disableTypeChecked, | ||
| }, | ||
| ); | ||
This file contains hidden or 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,36 @@ | ||
| { | ||
| "name": "videogenai", | ||
| "version": "0.0.0", | ||
| "private": true, | ||
| "type": "module", | ||
| "description": "End-to-end pipeline: one-line description → researched, scripted, animated, voiced YouTube video, with human-approval cockpit.", | ||
| "license": "MIT", | ||
| "author": "Sai Charan", | ||
| "repository": { | ||
| "type": "git", | ||
| "url": "git+https://github.com/SaiCharan99/VideoGenAI.git" | ||
| }, | ||
| "engines": { | ||
| "node": ">=20.10.0" | ||
| }, | ||
| "packageManager": "pnpm@9.15.0", | ||
| "scripts": { | ||
| "build": "pnpm -r --if-present build", | ||
| "dev": "pnpm -r --parallel --if-present dev", | ||
| "lint": "eslint .", | ||
| "lint:fix": "eslint . --fix", | ||
| "format": "prettier --write .", | ||
| "format:check": "prettier --check .", | ||
| "typecheck": "pnpm -r --if-present typecheck", | ||
| "test": "pnpm -r --if-present test", | ||
| "clean": "pnpm -r --if-present clean && rm -rf node_modules" | ||
| }, | ||
| "devDependencies": { | ||
| "@eslint/js": "^9.18.0", | ||
| "@types/node": "^22.10.5", | ||
| "eslint": "^9.18.0", | ||
| "prettier": "^3.4.2", | ||
| "typescript": "^5.7.3", | ||
| "typescript-eslint": "^8.20.0" | ||
| } | ||
| } |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🧩 Analysis chain
🌐 Web query:
In Node.js official docs, what version introducedimport.meta.dirname, and is it available in Node v20.10.0?💡 Result:
import.meta.dirnamewas introduced in Node.js v20.11.0 and v21.2.0 according to the official Node.js documentation[1]. The feature was added via a pull request merged on 2023-10-31[2][3], backported to the v20 branch[4], and released in v20.11.0 on 2024-01-10[5][6]. Node.js v20.10.0 was released earlier on 2023-11-22[5][7] and does not include this feature, as confirmed by the absence in changelogs and version-specific docs. Therefore, it is not available in Node v20.10.0.Citations:
import.meta.dirnameis incompatible with the declared Node engine floor.import.meta.dirnamewas added in Nodev20.11.0, but the repo allows>=20.10.0. On Node 20.10.x this config will fail to load.💡 Proposed fix (pick one)
🤖 Prompt for AI Agents