Skip to content
Snippets Groups Projects
Unverified Commit ec2f766f authored by metabase-bot[bot]'s avatar metabase-bot[bot] Committed by GitHub
Browse files

Attempt to improve DX on code navigation (#28215) (#28898)


Previously, JS files isn't picked up by VS Code, so they'll have limited
intellisence. Also, Jest and Cypress has conflicting names e.g.
`describe` or `expect`. So, this commit attempt to resolve that as well.

Co-authored-by: default avatarMahatthana (Kelvin) Nomsawadi <me@bboykelvin.dev>
parent 887730d6
No related merge requests found
{
"extends": "../tsconfig.base.json",
"compilerOptions": {
"types": ["cypress", "@testing-library/cypress"],
"paths": {
"*": ["../frontend/src/*"],
"e2e/*": ["./*"]
}
},
"include": ["**/*"]
}
{
"include": [
"frontend/src/**/*",
"enterprise/frontend/src/**/*",
"frontend/test/**/*",
"enterprise/frontend/test/**/*"
],
"compilerOptions": {
"baseUrl": ".",
"paths": {
"*": [
"./frontend/src/*",
"./frontend/test/*",
"./enterprise/frontend/src/*",
"./enterprise/frontend/test/*"
]
},
"experimentalDecorators": true,
"strictBindCallApply": true
}
}
{
"compilerOptions": {
"jsx": "react",
"target": "esnext",
"allowSyntheticDefaultImports": true,
"module": "commonjs",
"isolatedModules": true,
"strict": true,
"moduleResolution": "node",
"skipLibCheck": true,
"allowJs": true,
"esModuleInterop": true,
"experimentalDecorators": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true,
"lib": ["dom", "dom.iterable", "esnext"]
}
}
{
"extends": "./tsconfig.base.json",
"compilerOptions": {
"jsx": "react",
"target": "esnext",
"lib": ["dom", "dom.iterable", "esnext"],
"allowSyntheticDefaultImports": true,
"module": "commonjs",
"isolatedModules": true,
"strict": true,
"moduleResolution": "node",
"skipLibCheck": true,
"paths": {
"*": [
"./frontend/src/*",
"./frontend/test/*",
"./enterprise/frontend/src/*",
"./enterprise/frontend/test/*"
],
"e2e/*": ["./e2e/*"]
},
"allowJs": true,
"esModuleInterop": true,
"experimentalDecorators": true,
"forceConsistentCasingInFileNames": true,
"resolveJsonModule": true
]
}
},
"include": [
"frontend/src/**/*.ts",
"frontend/src/**/*.tsx",
"enterprise/frontend/src/**/*.ts",
"enterprise/frontend/src/**/*.tsx",
"frontend/test/**/*.ts",
"frontend/test/**/*.tsx",
"enterprise/frontend/test/**/*.ts",
"enterprise/frontend/test/**/*.tsx"
"frontend/src/**/*",
"enterprise/frontend/src/**/*",
"frontend/test/**/*",
"enterprise/frontend/test/**/*"
],
"exclude": ["node_modules"]
"exclude": [
"node_modules",
// The following files will load `frontend/src/metabase/app` which will conflict with
// `frontend/src/metabase/App.tsx`, since now we're loading both JS and TS files.
"frontend/src/metabase/app-main.js",
"frontend/src/metabase/app-public.js",
"frontend/src/metabase/app-embed.js"
]
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment