Skip to content

Commit

Permalink
adding src/tsconfig.strict.json (#12716)
Browse files Browse the repository at this point in the history
  • Loading branch information
deyaaeldeen authored Nov 30, 2020
1 parent 0aeb921 commit 58b9538
Show file tree
Hide file tree
Showing 2 changed files with 136 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sdk/cosmosdb/cosmos/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
"scripts": {
"audit": "node ../../../common/scripts/rush-audit.js && rimraf node_modules package-lock.json && npm i --package-lock-only 2>&1 && npm audit",
"build:samples": "node prep-samples.js && tsc -b samples",
"check:src:strict": "tsc --pretty --project src/tsconfig.strict.json",
"build:src": "echo Using TypeScript && tsc --version && tsc -b --pretty",
"build:test": "tsc",
"build:types": "downlevel-dts dist/types/latest dist/types/3.1",
Expand All @@ -58,7 +59,7 @@
"clean": "rimraf dist dist-esm temp types *.tgz *.html *.log *.tsbuildinfo test/**/*.{js,js.map,d.ts}",
"docs": "typedoc --excludePrivate --mode file --out ./dist/docs ./src",
"execute:samples": " cd samples && npm run all-samples",
"extract-api": "npm run build:src && api-extractor run --local",
"extract-api": "npm run check:src:strict && npm run build:src && api-extractor run --local",
"format": "prettier --write --config ../../../.prettierrc.json --ignore-path ../../../.prettierignore \"src/**/*.ts\" \"test/**/*.ts\" \"*.{js,json}\"",
"integration-test:browser": "echo skipped",
"integration-test:node": "mocha -r test/mocha.env.ts -r ts-node/register -r esm -r dotenv/config -r ./test/common/setup.ts \"./test/**/*.spec.ts\" --timeout 100000",
Expand Down
134 changes: 134 additions & 0 deletions sdk/cosmosdb/cosmos/src/tsconfig.strict.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,134 @@
{
"extends": "../tsconfig.json",
"compilerOptions": {
"composite": false,
"noEmit": true,
"strict": true
},
"exclude": [
"documents/DatabaseAccount.ts",
"documents/IndexingPolicy.ts",
"plugins/Plugin.ts",
"common/helper.ts",
"common/uriFactory.ts",
"client/Conflict/Conflict.ts",
"client/Conflict/ConflictDefinition.ts",
"client/Conflict/ConflictResponse.ts",
"client/Conflict/Conflicts.ts",
"client/Container/Container.ts",
"client/Container/ContainerDefinition.ts",
"client/Container/ContainerRequest.ts",
"client/Container/ContainerResponse.ts",
"client/Container/Containers.ts",
"client/Database/Database.ts",
"client/Database/DatabaseResponse.ts",
"client/Database/Databases.ts",
"client/Item/Item.ts",
"client/Item/ItemResponse.ts",
"client/Item/Items.ts",
"client/Offer/Offer.ts",
"client/Offer/OfferResponse.ts",
"client/Offer/Offers.ts",
"client/Permission/Permission.ts",
"client/Permission/PermissionDefinition.ts",
"client/Permission/PermissionResponse.ts",
"client/Permission/Permissions.ts",
"client/Script/Scripts.ts",
"client/StoredProcedure/StoredProcedure.ts",
"client/StoredProcedure/StoredProcedureResponse.ts",
"client/StoredProcedure/StoredProcedures.ts",
"client/Trigger/Trigger.ts",
"client/Trigger/TriggerDefinition.ts",
"client/Trigger/TriggerResponse.ts",
"client/Trigger/Triggers.ts",
"client/User/User.ts",
"client/User/UserResponse.ts",
"client/User/Users.ts",
"client/UserDefinedFunction/UserDefinedFunction.ts",
"client/UserDefinedFunction/UserDefinedFunctionResponse.ts",
"client/UserDefinedFunction/UserDefinedFunctions.ts",
"queryExecutionContext/Aggregators/AverageAggregator.ts",
"queryExecutionContext/Aggregators/MaxAggregator.ts",
"queryExecutionContext/Aggregators/MinAggregator.ts",
"queryExecutionContext/Aggregators/SumAggregator.ts",
"queryExecutionContext/EndpointComponent/GroupByEndpointComponent.ts",
"queryExecutionContext/EndpointComponent/GroupByValueEndpointComponent.ts",
"queryExecutionContext/EndpointComponent/OffsetLimitEndpointComponent.ts",
"queryExecutionContext/EndpointComponent/OrderByEndpointComponent.ts",
"queryExecutionContext/EndpointComponent/OrderedDistinctEndpointComponent.ts",
"queryExecutionContext/EndpointComponent/UnorderedDistinctEndpointComponent.ts",
"queryExecutionContext/defaultQueryExecutionContext.ts",
"queryExecutionContext/documentProducer.ts",
"queryExecutionContext/ExecutionContext.ts",
"queryExecutionContext/headerUtils.ts",
"queryExecutionContext/orderByDocumentProducerComparator.ts",
"queryExecutionContext/orderByQueryExecutionContext.ts",
"queryExecutionContext/parallelQueryExecutionContext.ts",
"queryExecutionContext/parallelQueryExecutionContextBase.ts",
"queryExecutionContext/pipelinedQueryExecutionContext.ts",
"request/ErrorResponse.ts",
"request/FeedOptions.ts",
"request/FeedResponse.ts",
"request/request.ts",
"request/RequestContext.ts",
"request/RequestHandler.ts",
"request/RequestOptions.ts",
"request/ResourceResponse.ts",
"request/Response.ts",
"request/SharedOptions.ts",
"retry/defaultRetryPolicy.ts",
"retry/endpointDiscoveryRetryPolicy.ts",
"retry/resourceThrottleRetryPolicy.ts",
"retry/RetryPolicy.ts",
"retry/retryUtility.ts",
"retry/sessionRetryPolicy.ts",
"routing/CollectionRoutingMapFactory.ts",
"routing/inMemoryCollectionRoutingMap.ts",
"routing/partitionKeyRangeCache.ts",
"routing/QueryRange.ts",
"routing/smartRoutingMapProvider.ts",
"session/sessionContainer.ts",
"session/SessionContext.ts",
"session/VectorSessionToken.ts",
"utils/hashing/v1.ts",
"utils/hashing/v2.ts",
"utils/atob.browser.ts",
"utils/batch.ts",
"utils/digest.browser.ts",
"utils/encode.ts",
"utils/globalCrypto.ts",
"utils/headers.ts",
"utils/hmac.browser.ts",
"utils/offers.ts",
"utils/url.browser.ts",
"utils/url.ts",
"auth.ts",
"ChangeFeedIterator.ts",
"ChangeFeedResponse.ts",
"ClientContext.ts",
"CosmosClient.ts",
"CosmosClientOptions.ts",
"extractPartitionKey.ts",
"globalEndpointManager.ts",
"queryIterator.ts",
"client/User/index.ts",
"client/Item/index.ts",
"client/StoredProcedure/index.ts",
"client/Trigger/index.ts",
"client/Offer/index.ts",
"client/Permission/index.ts",
"client/index.ts",
"client/UserDefinedFunction/index.ts",
"client/Conflict/index.ts",
"client/Container/index.ts",
"client/Database/index.ts",
"documents/index.ts",
"request/index.ts",
"index.ts",
"retry/index.ts",
"queryExecutionContext/Aggregators/index.ts",
"queryExecutionContext/index.ts",
"common/index.ts",
"routing/index.ts"
]
}

0 comments on commit 58b9538

Please sign in to comment.