Skip to content

Instantly share code, notes, and snippets.

View Lakmal98's full-sized avatar
🏠
Working from home

Dimuthu Lakmal Lakmal98

🏠
Working from home
View GitHub Profile
@chill-cod3r
chill-cod3r / setup-typescript-eslint-prettier.js
Last active June 3, 2023 19:28
Automate TypeScript ESLint Prettier + my opinionated ESLint rules
const fs = require('fs');
const cp = require('child_process');
const util = require('util');
const path = require('path');
const exec = util.promisify(cp.exec);
const writeFile = util.promisify(fs.writeFile);
const prettierConfigVscode = {
'editor.codeActionsOnSave': {