Skip to content

Commit

Permalink
Merge pull request #7 from emerson-eps/typescript-support
Browse files Browse the repository at this point in the history
fix: Added tsconfig json file
  • Loading branch information
shruthirai authored Jan 4, 2022
2 parents 953d7f7 + fe2c53a commit 9e3ec66
Show file tree
Hide file tree
Showing 5 changed files with 286 additions and 0 deletions.
259 changes: 259 additions & 0 deletions react-app/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions react-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"@storybook/addon-essentials": "^6.4.9",
"@storybook/addon-links": "^6.4.9",
"@storybook/react": "^6.4.9",
"@types/d3": "^7.1.0",
"babel-loader": "^8.1.0",
"semantic-release": "^18.0.1",
"ts-loader": "^9.2.6",
Expand Down
1 change: 1 addition & 0 deletions react-app/src/component/Legend/DiscreteLegend.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
// @ts-ignore
import React from "react";
import legendUtil from "../Utils/discreteLegend";
import { scaleOrdinal, select } from "d3";
Expand Down
File renamed without changes.
25 changes: 25 additions & 0 deletions react-app/src/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"compilerOptions": {
"baseUrl": "./src",
//"outDir": "build",
"module": "esnext",
"target": "es5",
"lib": ["es6", "dom", "es2016", "es2017"],
"sourceMap": true,
"allowJs": false,
"jsx": "react",
"declaration": true,
"moduleResolution": "node",
"forceConsistentCasingInFileNames": true,
"noImplicitReturns": true,
"noImplicitThis": true,
"noImplicitAny": true,
"strictNullChecks": true,
"suppressImplicitAnyIndexErrors": true,
"noUnusedLocals": true,
"noUnusedParameters": true
},
//"include": ["./src/component"],
"exclude": [ "" ]
}

0 comments on commit 9e3ec66

Please sign in to comment.