-
-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix tsconfig.json and Lint errors (#290)
* fixed all ts errors and lint warnings * Add comments to tsconfig * Don't override includes * add stuff * change target to ES2020 * add exclude list * remove commented out lines * More explicit exclude * try include as well as exclude * Letting claude give it a try * I dont think build is a hidden directory * undo claude * Type check working now * fix eslint comment as well * Add noUncheckedIndexAccess
- Loading branch information
1 parent
ab29024
commit 2d09a76
Showing
24 changed files
with
90 additions
and
81 deletions.
There are no files selected for viewing
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
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
2 changes: 1 addition & 1 deletion
2
heat-stack/app/components/ui/heat/CaseSummaryComponents/Graphs/HeatLoadGraphLegend.tsx
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
1 change: 0 additions & 1 deletion
1
heat-stack/app/components/ui/heat/CaseSummaryComponents/HeatLoadAnalysis.tsx
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
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
4 changes: 2 additions & 2 deletions
4
...-stack/app/components/ui/heat/CaseSummaryComponents/utility/build-heat-load-graph-data.ts
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
2 changes: 1 addition & 1 deletion
2
heat-stack/app/components/ui/heat/CaseSummaryComponents/utility/heat-load-calculations.ts
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,40 @@ | ||
{ | ||
"include": ["**/*.ts", "**/*.tsx"], | ||
"extends": ["@epic-web/config/typescript"], | ||
"extends": ["@epic-web/config/typescript"], // Uses a shared TypeScript configuration provided by the @epic-web package as the base. | ||
"compilerOptions": { | ||
// "lib": ["DOM", "DOM.Iterable", "ES2022"], | ||
// "isolatedModules": true, | ||
// "esModuleInterop": true, | ||
// "jsx": "react-jsx", | ||
// "module": "ES2022", | ||
// "target": "ES2022", | ||
// "moduleResolution": "bundler", | ||
// "resolveJsonModule": true, | ||
// "strict": true, | ||
// "noImplicitAny": true, | ||
// "allowJs": true, | ||
// "forceConsistentCasingInFileNames": true, | ||
"paths": { | ||
"#*": ["./*"], | ||
"#app/*": ["./app/*"], | ||
"#tests/*": ["./tests/*"], | ||
"@/icon-name": [ | ||
"./app/components/ui/icons/name.d.ts", | ||
"./types/icon-name.d.ts" | ||
"target": "ES2018", // Compile TypeScript code to ECMAScript 2018. | ||
"lib": ["DOM", "DOM.Iterable", "ESNext"], // Includes type definitions for the DOM, DOM iterables, and modern ECMAScript features. | ||
"allowJs": true, // Enables the inclusion of .js files in the project. | ||
"skipLibCheck": true, // Skip type checking of all declaration files (*.d.ts).q | ||
"esModuleInterop": true, // Enables compatibility with CommonJS modules. | ||
"noUncheckedIndexedAccess": true, // https://www.totaltypescript.com/tips/make-accessing-objects-safer-by-enabling-nouncheckedindexedaccess-in-tsconfig | ||
"allowSyntheticDefaultImports": true, // Allows default imports from modules with no default export. | ||
"strict": true, // Enables all strict type-checking options. | ||
"forceConsistentCasingInFileNames": true, // Enforces a consistent casing in file names. | ||
"module": "NodeNext", // Uses Node.js-style ES Module resolution for compatibility with modern Node.js versions. | ||
"moduleResolution": "nodenext", // Uses Node.js ES Module resolution logic. | ||
"resolveJsonModule": true, // Allows importing JSON files as modules. | ||
"isolatedModules": true, // Disallows the use of global modules and global side-effects. | ||
"noEmit": true, // Disables emitting output files. | ||
"jsx": "react-jsx", // Enables JSX support with React JSX. | ||
"paths": { // Maps paths to different directories or files. | ||
"#*": ["./*"], // Maps all paths starting with # to the root directory. | ||
"#app/*": ["./app/*"], // Maps all paths starting with #app to the app directory. | ||
"#tests/*": ["./tests/*"], // Maps all paths starting with #tests to the tests directory. | ||
"@/icon-name": [ // Maps the @/icon-name path to the icon-name.d.ts file. | ||
"./app/components/ui/icons/name.d.ts", // Maps the @/icon-name path to the | ||
"./types/icon-name.d.ts" // icon-name.d.ts file in the types directory. | ||
] | ||
} | ||
// ,"skipLibCheck": true, | ||
// "allowImportingTsExtensions": true, | ||
// "noEmit": true, | ||
} | ||
}, | ||
"include": [ | ||
"**/*.ts", | ||
"**/*.tsx" | ||
], | ||
"exclude": [ | ||
"node_modules", | ||
"/build", | ||
"/build/**/*", | ||
"dist", | ||
".cache" | ||
] | ||
} |
Oops, something went wrong.