forked from WordPress/openverse-frontend
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.json
105 lines (99 loc) · 3.54 KB
/
tsconfig.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
{
"compilerOptions": {
"allowJs": true,
"checkJs": true,
"allowSyntheticDefaultImports": true,
"jsx": "preserve",
"target": "ES2018",
"module": "ESNext",
"lib": ["DOM", "ESNext", "ESNext.AsyncIterable"],
"noEmit": true,
"isolatedModules": true,
"skipLibCheck": true,
"sourceMap": true,
/* Strict Type-Checking Options */
"strict": true,
/* Additional Checks */
"noUnusedLocals": true,
"noUnusedParameters": true,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"importsNotUsedAsValues": "error",
/* Module Resolution Options */
"moduleResolution": "Node",
"resolveJsonModule": true,
"types": ["@types/jest", "@nuxt/types", "@nuxtjs/i18n", "@pinia/nuxt"],
"typeRoots": ["./typings", "./node_modules/@types"],
"paths": {
"~/*": ["./src/*"],
"~~/*": ["./*"]
},
"baseUrl": "."
},
"include": [
"**/*.ts",
"test/proxy.js",
"src/components/VButton.vue",
"src/components/VContentPage.vue",
"src/components/VLicenseElements.vue",
"src/components/VWarningSuppressor.vue",
"src/components/VLink.vue",
"src/components/VLoadMore.vue",
"src/components/VTranslationStatusBanner.vue",
"src/components/VNotificationBanner.vue",
"src/components/VMigrationNotice.vue",
"src/components/VVariations.vue",
"src/components/VBackToSearchResultsLink.vue",
"src/components/VSnackbar.vue",
"src/components/VSourcesTable.vue",
"src/components/TableSortIcon.vue",
"src/components/VCopyButton.vue",
"src/components/VSketchFabViewer.vue",
"src/components/VAudioThumbnail/**.vue",
"src/components/VAudioTrack/**.vue",
"src/components/VCheckbox/**.vue",
"src/components/VContentLink/**.vue",
"src/components/VGlobalAudioSection/**.vue",
"src/components/VIcon/**.vue",
"src/components/VIconButton/**.vue",
"src/components/VImageGrid/**.vue",
"src/components/VInputField/**.vue",
"src/components/VItemGroup/**.vue",
"src/components/VLicense/**.vue",
"src/components/VLogoLoader/**.vue",
"src/components/VMediaInfo/**.vue",
"src/components/VMediaTag/**.vue",
"src/components/VPopover/**.vue",
"src/components/VRecentSearches/**.vue",
"src/components/VSkeleton/**.vue",
"src/components/VTabs/**.vue",
"src/components/VAllResultsGrid/VAudioCell.vue",
"src/components/VAllResultsGrid/VImageCellSquare.vue",
"src/components/VContentReport/VReportDescForm.vue",
"src/components/VContentSwitcher/VSearchTypeButton.vue",
"src/components/VContentSwitcher/VSearchTypeItem.vue",
"src/components/VContentSwitcher/VSearchTypeRadio.vue",
"src/components/VContentSwitcherOld/VSearchTypeButton.vue",
"src/components/VErrorSection/VErrorImage.vue",
"src/components/VFilters/VLicenseExplanation.vue",
"src/components/VHeader/VFilterButton.vue",
"src/components/VHeader/VPageLinks.vue",
"src/components/VHeader/VSearchBar/**.vue",
"src/components/VImageDetails/VRelatedImages.vue",
"src/components/VModal/VInputModal.vue",
"src/pages/feedback.vue",
"src/pages/search-help.vue",
"src/composables/types.js",
// This section cannot be converted to TypeScript because it's used in non-TS contexts (like Tailwind configuration)
"src/constants/screens.js",
"src/server-middleware/healthcheck.js"
],
"exclude": ["node_modules"],
"vueCompilerOptions": {
"experimentalCompatMode": 2,
"experimentalTemplateCompilerOptions": {
"compatConfig": { "MODE": 2 } // optional
},
"target": 2.7
}
}