Skip to content

Commit

Permalink
small changes to dev
Browse files Browse the repository at this point in the history
Update tsconfig.json
  • Loading branch information
steveruizok committed Mar 9, 2024
1 parent 5257de0 commit 8a361fa
Show file tree
Hide file tree
Showing 5 changed files with 35 additions and 30 deletions.
2 changes: 1 addition & 1 deletion packages/dev/src/state/shapes/draw.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import {
import { Vec } from '@tldraw/vec'
import { getStroke } from 'perfect-freehand'
import type { DrawShape } from '../../types'
import { EASINGS } from 'state/easings'
import { EASINGS } from '../easings'

type T = DrawShape
type E = SVGSVGElement
Expand Down
2 changes: 1 addition & 1 deletion packages/dev/src/state/state.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import * as React from 'react'
import type { Doc, DrawShape, DrawStyles, State } from 'types'
import {
TLPinchEventHandler,
TLPointerEventHandler,
Expand All @@ -14,6 +13,7 @@ import sample from './sample.json'
import type { StateSelector } from 'zustand'
import { copyTextToClipboard, pointInPolygon } from './utils'
import { EASING_STRINGS } from './easings'
import { Doc, DrawShape, DrawStyles, State } from '../types'

export const shapeUtils: TLShapeUtilsMap<DrawShape> = {
draw: new DrawUtil(),
Expand Down
7 changes: 6 additions & 1 deletion packages/dev/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,10 @@
"exclude": ["node_modules", "**/*.test.ts", "**/*.spec.ts", "dist"],
"compilerOptions": {
"baseUrl": "./src"
}
},
"references": [
{
"path": "../perfect-freehand"
}
]
}
48 changes: 26 additions & 22 deletions tsconfig.base.json
Original file line number Diff line number Diff line change
@@ -1,31 +1,35 @@
{
"$schema": "https://json.schemastore.org/tsconfig",
"display": "Default",
"compilerOptions": {
"allowSyntheticDefaultImports": true,
"composite": true,
"declaration": true,
"declarationMap": true,
"emitDeclarationOnly": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"experimentalDecorators": true,
"forceConsistentCasingInFileNames": true,
"importsNotUsedAsValues": "error",
"incremental": true,
"resolveJsonModule": true,
"importHelpers": true,
"resolveJsonModule": true,
"incremental": true,
"jsx": "react-jsx",
"lib": ["dom", "DOM.Iterable", "esnext"],
"experimentalDecorators": true,
"module": "esnext",
"target": "esnext",
"moduleResolution": "node",
"noEmit": false,
"noFallthroughCasesInSwitch": true /* Report errors for fallthrough cases in switch statement. */,
"noImplicitAny": true /* Raise error on expressions and declarations with an implied 'any' type. */,
"noImplicitReturns": true /* Report error when not all code paths in function return a value. */,
"noUnusedLocals": false /* Report errors on unused locals. */,
"noUnusedParameters": false /* Report errors on unused parameters. */,
"noFallthroughCasesInSwitch": true,
"noImplicitAny": true,
"noImplicitReturns": true,
"noUnusedLocals": false,
"noUnusedParameters": false,
"skipLibCheck": true,
"sourceMap": true,
"strict": false,
"strictFunctionTypes": true /* Enable strict checking of function types. */,
"strictNullChecks": true /* Enable strict null checks. */,
"target": "es5",
"typeRoots": ["node_modules/@types", "node_modules/jest"],
"types": ["node", "jest"],
"jsx": "preserve",
"lib": ["dom", "esnext"],
"module": "esnext"
}
"strict": true,
"strictFunctionTypes": true,
"strictNullChecks": true,
"useDefineForClassFields": true,
"noImplicitOverride": false,
"types": ["node", "@types/jest"]
},
"exclude": ["node_modules"]
}
6 changes: 1 addition & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,6 @@
"extends": "./tsconfig.base.json",
"exclude": ["node_modules", "**/*.test.ts", "**/*.spec.ts"],
"compilerOptions": {
"baseUrl": ".",
"paths": {
"perfect-freehand": ["./packages/perfect-freehand/dist"],
"+*": ["./packages/perfect-freehand/src/*"]
}
"baseUrl": "."
}
}

0 comments on commit 8a361fa

Please sign in to comment.