1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-21 17:37:01 +01:00
metamask-extension/tsconfig.json
Elliot Winkler 4447727eb6
Add TypeScript to the linting process (#13495)
This commit allows developers to write TypeScript files and lint them
(either via a language server in their editor of choice or through the
`yarn lint` command).

The new TypeScript configuration as well as the updated ESLint
configuration not only includes support for parsing TypeScript files,
but also provides some compatibility between JavaScript and TypeScript.
That is, it makes it possible for a TypeScript file that imports a
JavaScript file or a JavaScript file that imports a TypeScript file to
be linted.

Note that this commit does not integrate TypeScript into the build
system yet, so we cannot start converting files to TypeScript and
pushing them to the repo until that final step is complete.
2022-03-21 12:54:47 -06:00

27 lines
553 B
JSON

{
"compilerOptions": {
"allowJs": true,
"allowSyntheticDefaultImports": true,
"inlineSources": true,
"isolatedModules": true,
"jsx": "react",
"lib": ["dom", "es2020"],
"moduleResolution": "node",
"noEmitOnError": true,
"outDir": "tsout",
"rootDir": ".",
"sourceMap": true,
"strict": true
},
"exclude": [
"**/*.test.js",
"**/*.test.ts",
"**/*.test.tsx",
".storybook/**/*",
"builds/**/*",
"dist/**/*",
"node_modules/**"
],
"extends": "@tsconfig/node14/tsconfig.json"
}