Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Kushal V. Mahajan kushalmahajan

🎯
Focusing
  • Byjus
  • Mumbai
View GitHub Profile
@kushalmahajan
kushalmahajan / package.json
Created November 18, 2019 07:33
package.json root final
View package.json
{
"name": "root",
"private": true,
"workspaces": [
"packages/*"
],
"scripts": {
"lint": "eslint './packages/**/*.{ts,tsx}'",
"lint:fix": "eslint './packages/**/*.{ts,tsx}' --fix",
"build": "yarn workspace ui-components tsc && yarn workspace ui-core tsc"
@kushalmahajan
kushalmahajan / .eslintignore
Last active November 18, 2019 14:04
.eslintignore
View .eslintignore
packages/**/src/**/__tests__/**
packages/**/src/**/__snapshots__/**
packages/**/dist/
node_modules
@kushalmahajan
kushalmahajan / .eslintrc
Last active July 12, 2021 13:39
.eslintrc
View .eslintrc
{
"parser": "@typescript-eslint/parser",
"parserOptions": {
"sourceType": "module",
"project": "./tsconfig.json"
},
"plugins": [
"react",
"prettier",
"@typescript-eslint"
@kushalmahajan
kushalmahajan / tsconfig.json
Created November 17, 2019 16:25
tsconfig.json root
View tsconfig.json
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"rootDir": "packages",
@kushalmahajan
kushalmahajan / tsconfig.json
Last active November 17, 2019 16:30
tsconfig.json ui-core
View tsconfig.json
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"declaration": true,
@kushalmahajan
kushalmahajan / tsconfig.json
Created November 17, 2019 16:17
tsconfig.json ui-components
View tsconfig.json
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"declaration": true,
View button.tsx
import React from "react";
const Button = () => {
const handleChange = (e: React.MouseEvent<HTMLButtonElement>) => {
console.log(e);
}
return (
<button onClick={handleChange}>
Sample Button
</button>
@kushalmahajan
kushalmahajan / tsconfig.json
Last active November 17, 2019 16:05
tsconfig.json initial
View tsconfig.json
{
"compilerOptions": {
"target": "es5",
"module": "commonjs",
"lib": [
"dom",
"dom.iterable",
"esnext"
],
"rootDir": "packages",
View lerna.json
{
"packages": [
"packages/*"
],
"version": "independent",
"npmClient": "yarn",
"useWorkspaces": true
}
@kushalmahajan
kushalmahajan / package.json
Last active November 17, 2019 14:16
The monorepo project
View package.json
{
"name": "root",
"private": true,
"workspaces": [
"packages/*"
],
"devDependencies": {
"lerna": "^3.18.4"
}
}