Skip to content

Commit

Permalink
update packages and tsconfig (opensearch-project#130)
Browse files Browse the repository at this point in the history
Signed-off-by: Shenoy Pratik <[email protected]>
  • Loading branch information
ps48 authored Sep 30, 2023
1 parent 8954372 commit 9fd9314
Show file tree
Hide file tree
Showing 5 changed files with 91 additions and 451 deletions.
7 changes: 0 additions & 7 deletions common/constants.ts

This file was deleted.

2 changes: 2 additions & 0 deletions common/constants/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ export const PLUGIN_NAME = 'Query Workbench';
export const OPENSEARCH_ACC_DOCUMENTATION_URL = 'https://opensearch.org/docs/latest';
export const ACC_INDEX_TYPE_DOCUMENTATION_URL = 'https://opensearch.org/docs/latest';

export const ON_LOAD_QUERY = `SHOW tables LIKE '%';`;

export const ACCELERATION_INDEX_TYPES = [
{ label: 'Skipping Index', value: 'skipping' },
{ label: 'Covering Index', value: 'covering' },
Expand Down
19 changes: 2 additions & 17 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,36 +27,21 @@
},
"devDependencies": {
"@testing-library/user-event": "^13.1.9",
"@types/hapi-latest": "npm:@types/[email protected]",
"@types/react-router-dom": "^5.3.2",
"cypress": "^5.0.0",
"eslint": "^6.8.0",
"eslint-plugin-no-unsanitized": "^3.0.2",
"eslint-plugin-prefer-object-spread": "^1.2.1",
"husky": "^4.2.5",
"jest-raw-loader": "^1.0.1",
"lint-staged": "^10.2.0",
"mutationobserver-shim": "^0.3.3",
"ts-jest": "^26.1.0",
"ts-node": "^8.9.1",
"tslint": "^6.1.2",
"tslint-config-prettier": "^1.18.0",
"tslint-plugin-prettier": "^2.0.1"
"ts-jest": "^29.1.0"
},
"resolutions": {
"**/@types/node": "10.12.27",
"@types/react": "16.3.14",
"**/@types/angular": "1.6.50",
"**/@types/jest": "^24.0.9",
"**/@types/react-dom": "^16.0.5",
"**/@types/react-router-dom": "^4.3.1",
"ansi-regex": "^5.0.1",
"eslint-utils": "^2.0.0",
"json-schema": "^0.4.0",
"**/@types/react": "16.3.14",
"yaml": "^2.2.2",
"tough-cookie": "^4.1.3",
"semver": "^7.5.2",
"@cypress/request": "^3.0.0"
}
}
}
22 changes: 17 additions & 5 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,31 @@

// tell the TypeScript compiler where to find your source files
"include": [
"common/**/*",
"server/**/*",
"public/**/*",
"test/**/*",
"../../typings/**/*",
"babel.config.js"
],
"exclude": ["node_modules", "*/node_modules/"],

"compilerOptions": {
"jsx": "react",
"allowJs": true,
"baseUrl": ".",
"target": "esnext",
"module": "commonjs",
"outDir": "./target",
"noEmit": true,
"esModuleInterop": true,
"skipLibCheck": true,
"noImplicitAny": true,
"noImplicitThis": true,
"strictNullChecks": false,
"suppressImplicitAnyIndexErrors": true,
"lib": ["es5", "es2015", "es2017", "dom"]
"forceConsistentCasingInFileNames": true,
"allowUnusedLabels": true,
"noUnusedLocals": false,
"noUnusedParameters": false,
"alwaysStrict": false,
"noImplicitUseStrict": false,
"types": ["jest", "node"]
}
}
Loading

0 comments on commit 9fd9314

Please sign in to comment.