Skip to content

Commit 61fc065

Browse files
authored
chore: replace config files (#25)
## Explanation <!-- Thanks for your contribution! Take a moment to answer these questions so that reviewers have the information they need to properly understand your changes: * What is the current state of things and why does it need to change? * What is the solution your changes offer and how does it work? * Are there any changes whose purpose might not obvious to those unfamiliar with the domain? * If your primary goal was to update one package but you found you had to update another one along the way, why did you do so? * If you had to upgrade a dependency, why did you do so? --> Change config files extensions. Align snap's tsconfig, preserve compiler flags enabled in the snap. Adjust sample tsconfig ## References Related to [WPN-1320](https://consensyssoftware.atlassian.net/browse/WPN-1320) <!-- Are there any issues that this pull request is tied to? Are there other links that reviewers should consult to understand these changes better? Are there client or consumer pull requests to adopt any breaking changes? For example: * Fixes #12345 * Related to #67890 --> ## Checklist - [ ] I've updated the test suite for new or updated code as appropriate - [ ] I've updated documentation (JSDoc, Markdown, etc.) for new or updated code as appropriate - [ ] I've communicated my changes to consumers by [updating changelogs for packages I've changed](https://github.com/MetaMask/core/tree/main/docs/processes/updating-changelogs.md) - [ ] I've introduced [breaking changes](https://github.com/MetaMask/core/tree/main/docs/processes/breaking-changes.md) in this PR and have prepared draft pull requests for clients and consumer packages to resolve them
1 parent e3b0635 commit 61fc065

4 files changed

Lines changed: 7 additions & 2 deletions

File tree

File renamed without changes.

merged-packages/bitcoin-wallet-snap/jest.integration.config.js renamed to merged-packages/bitcoin-wallet-snap/jest.integration.config.mjs

File renamed without changes.

merged-packages/bitcoin-wallet-snap/tsconfig.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
11
{
22
"extends": "../../tsconfig.packages.json",
33
"compilerOptions": {
4+
"baseUrl": "./",
45
"resolveJsonModule": true /* lets us import JSON modules from within TypeScript modules. */,
56
"jsx": "react-jsx",
67
"jsxImportSource": "@metamask/snaps-sdk",
78
"exactOptionalPropertyTypes": false,
9+
"forceConsistentCasingInFileNames": true,
10+
"noErrorTruncation": true,
11+
"noUncheckedIndexedAccess": true,
12+
"skipLibCheck": true,
813
"types": ["jest"]
914
},
1015
"include": ["**/*.ts", "**/*.tsx", "locales/*.json"]

packages/sample-snap/tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"extends": "../../tsconfig.json",
2+
"extends": "../../tsconfig.packages.json",
33
"compilerOptions": {
44
"baseUrl": "./",
55
"jsx": "react-jsx",
66
"jsxImportSource": "@metamask/snaps-sdk",
77
"types": ["jest"]
88
},
9-
"include": ["**/*.ts", "**/*.tsx"]
9+
"include": ["**/*.ts", "**/*.tsx", "locales/*.json"]
1010
}

0 commit comments

Comments
 (0)