Skip to content

Commit

Permalink
chore: use @mat3ra/tsconfig
Browse files Browse the repository at this point in the history
  • Loading branch information
timurbazhirov committed Mar 21, 2024
1 parent fa17bec commit 03420ae
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 49 deletions.
6 changes: 6 additions & 0 deletions 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 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
},
"devDependencies": {
"@exabyte-io/eslint-config": "^2022.11.17-0",
"@mat3ra/tsconfig": "^2024.3.21-5",
"@types/chai": "^4.3.5",
"@types/js-yaml": "^4.0.5",
"@types/mocha": "^10.0.1",
Expand Down
2 changes: 1 addition & 1 deletion src/js/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ export class Standata {

protected loadEntity(filename: string): object | undefined {
const ctor = this.constructor as typeof Standata;
return ctor.runtimeData?.filesMapByName?.[filename];
return (ctor.runtimeData?.filesMapByName as any)?.[filename];
}

protected filterByCategories(...categories: string[]): string[] {
Expand Down
49 changes: 1 addition & 48 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,50 +1,3 @@
{
"compilerOptions": {
/* Basic Options */
"target": "es2018",
"lib": ["ES2019", "dom"],
"module": "CommonJS",
"allowJs": true,
"jsx": "react",
"incremental": true,
"noEmitOnError": false,
"outDir": "./dist",

/* Strict Type-Checking Options */
"strict": true,
"noImplicitAny": false,
"strictNullChecks": true,
"experimentalDecorators": true,

/* Additional Checks */
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": false,
"noFallthroughCasesInSwitch": false,

/* Module Resolution Options */
"baseUrl": "./",
"rootDir": "./src/js",
"moduleResolution": "node",
"resolveJsonModule": true,
"esModuleInterop": true,
"declaration": true,
"isolatedModules": true,
"forceConsistentCasingInFileNames": true,
"skipLibCheck": true,
"types": ["mocha", "node"]
},
"include": [
"./src/js"
],
"exclude": [
"node_modules",
"dist",
"lib",
"build"
],
"ts-node": {
"files": true,
"compilerOptions": {}
},
"extends": "@mat3ra/tsconfig/tsconfig.json"
}

0 comments on commit 03420ae

Please sign in to comment.