Created
May 30, 2023 21:29
-
-
Save dypsilon/2c089bbb3d472a3f806b365607e4086b to your computer and use it in GitHub Desktop.
TypeScript ESLint Prettier Setup
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
Show hidden characters
{ | |
"parser": "@typescript-eslint/parser", | |
"plugins": [ | |
"@typescript-eslint", | |
"prettier" | |
], | |
"extends": [ | |
"eslint:recommended", | |
"plugin:@typescript-eslint/eslint-recommended", | |
"plugin:@typescript-eslint/recommended", | |
"prettier" | |
], | |
"rules": { | |
"prettier/prettier": "error" | |
}, | |
"ignorePatterns": ["dist/"] | |
} |
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
{ | |
"singleQuote": true, | |
"semi": true, | |
"useTabs": true, | |
"tabWidth": 2, | |
"printWidth": 120 | |
} |
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
{ | |
"editor.insertSpaces": false, | |
"editor.codeActionsOnSave": { | |
"source.fixAll.eslint": true | |
} | |
} |
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
{ | |
"name": "ts-rnd", | |
"version": "1.0.0", | |
"description": "", | |
"main": "src/index.ts", | |
"keywords": [], | |
"author": "", | |
"license": "ISC", | |
"devDependencies": { | |
"@types/node": "^20.2.5", | |
"@typescript-eslint/eslint-plugin": "^5.59.8", | |
"@typescript-eslint/parser": "^5.59.8", | |
"eslint": "^8.41.0", | |
"eslint-config-prettier": "^8.8.0", | |
"eslint-plugin-prettier": "^4.2.1", | |
"jest": "^29.5.0", | |
"ts-node": "^10.9.1", | |
"typescript": "^5.0.4" | |
} | |
} |
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
{ | |
"compilerOptions": { | |
"target": "ESNext", | |
"module": "commonjs", | |
"strict": true, | |
"esModuleInterop": true, | |
"skipLibCheck": true, | |
"forceConsistentCasingInFileNames": true, | |
"outDir": "dist", | |
"lib": ["es2021"] | |
}, | |
"include": ["src/**/*"], | |
"exclude": ["node_modules", "**/*.spec.ts"] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment