Disallow imports with extensions
Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
/* Bundler mode */
|
/* Bundler mode */
|
||||||
"moduleResolution": "bundler",
|
"moduleResolution": "bundler",
|
||||||
"allowImportingTsExtensions": true,
|
"allowImportingTsExtensions": false,
|
||||||
"verbatimModuleSyntax": true,
|
"verbatimModuleSyntax": true,
|
||||||
"moduleDetection": "force",
|
"moduleDetection": "force",
|
||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
/* Bundler mode */
|
/* Bundler mode */
|
||||||
"moduleResolution": "bundler",
|
"moduleResolution": "bundler",
|
||||||
"allowImportingTsExtensions": true,
|
"allowImportingTsExtensions": false,
|
||||||
"verbatimModuleSyntax": true,
|
"verbatimModuleSyntax": true,
|
||||||
"moduleDetection": "force",
|
"moduleDetection": "force",
|
||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ import { NDADialog } from "#/components/NDADialog";
|
|||||||
import { OrganizationSidebar } from "#/components/OrganizationSidebar";
|
import { OrganizationSidebar } from "#/components/OrganizationSidebar";
|
||||||
import { TrustCenterProvider } from "#/providers/TrustCenterProvider";
|
import { TrustCenterProvider } from "#/providers/TrustCenterProvider";
|
||||||
import { Viewer } from "#/providers/Viewer";
|
import { Viewer } from "#/providers/Viewer";
|
||||||
import type { TrustGraphCurrentQuery } from "#/queries/__generated__/TrustGraphCurrentQuery.graphql.ts";
|
import type { TrustGraphCurrentQuery } from "#/queries/__generated__/TrustGraphCurrentQuery.graphql";
|
||||||
import { currentTrustGraphQuery } from "#/queries/TrustGraph.ts";
|
import { currentTrustGraphQuery } from "#/queries/TrustGraph";
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
queryRef: PreloadedQuery<TrustGraphCurrentQuery>;
|
queryRef: PreloadedQuery<TrustGraphCurrentQuery>;
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
/* Bundler mode */
|
/* Bundler mode */
|
||||||
"moduleResolution": "bundler",
|
"moduleResolution": "bundler",
|
||||||
"allowImportingTsExtensions": true,
|
"allowImportingTsExtensions": false,
|
||||||
"verbatimModuleSyntax": true,
|
"verbatimModuleSyntax": true,
|
||||||
"moduleDetection": "force",
|
"moduleDetection": "force",
|
||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
/* Bundler mode */
|
/* Bundler mode */
|
||||||
"moduleResolution": "bundler",
|
"moduleResolution": "bundler",
|
||||||
"allowImportingTsExtensions": true,
|
"allowImportingTsExtensions": false,
|
||||||
"verbatimModuleSyntax": true,
|
"verbatimModuleSyntax": true,
|
||||||
"moduleDetection": "force",
|
"moduleDetection": "force",
|
||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
|
|||||||
@@ -13,6 +13,7 @@
|
|||||||
"imports": {
|
"imports": {
|
||||||
"#baseConfigs": "./src/baseConfigs.ts",
|
"#baseConfigs": "./src/baseConfigs.ts",
|
||||||
"#tsConfigs": "./src/tsConfigs.ts",
|
"#tsConfigs": "./src/tsConfigs.ts",
|
||||||
|
"#reactConfigs": "./src/reactConfigs.ts",
|
||||||
"#importsConfigs": "./src/importsConfigs.ts",
|
"#importsConfigs": "./src/importsConfigs.ts",
|
||||||
"#languageOptionsConfigs": "./src/languageOptionsConfigs.ts",
|
"#languageOptionsConfigs": "./src/languageOptionsConfigs.ts",
|
||||||
"#stylisticConfigs": "./src/stylisticConfigs.ts"
|
"#stylisticConfigs": "./src/stylisticConfigs.ts"
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
import { baseConfigs } from "./baseConfigs.ts";
|
import { baseConfigs } from "#baseConfigs";
|
||||||
import { importsConfigs } from "./importsConfigs.ts";
|
import { importsConfigs } from "#importsConfigs";
|
||||||
import { browserLanguageOptionsConfigs, nodeLanguageOptionsConfigs } from "./languageOptionsConfigs.ts";
|
import { browserLanguageOptionsConfigs, nodeLanguageOptionsConfigs } from "#languageOptionsConfigs";
|
||||||
import { reactConfigs } from "./reactConfigs.ts";
|
import { reactConfigs } from "#reactConfigs";
|
||||||
import { stylisticConfigs } from "./stylisticConfigs.ts";
|
import { stylisticConfigs } from "#stylisticConfigs";
|
||||||
import { tsConfigs } from "./tsConfigs.ts";
|
import { tsConfigs } from "#tsConfigs";
|
||||||
|
|
||||||
export const configs = {
|
export const configs = {
|
||||||
base: baseConfigs,
|
base: baseConfigs,
|
||||||
|
|||||||
@@ -3,9 +3,9 @@
|
|||||||
"lib": ["ES2023"],
|
"lib": ["ES2023"],
|
||||||
"allowJs": true,
|
"allowJs": true,
|
||||||
"skipLibCheck": true,
|
"skipLibCheck": true,
|
||||||
"module": "NodeNext",
|
"module": "EsNext",
|
||||||
"moduleResolution": "NodeNext",
|
"moduleResolution": "Bundler",
|
||||||
"allowImportingTsExtensions": true,
|
"allowImportingTsExtensions": false,
|
||||||
"moduleDetection": "force",
|
"moduleDetection": "force",
|
||||||
"verbatimModuleSyntax": true,
|
"verbatimModuleSyntax": true,
|
||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
/* Bundler mode */
|
/* Bundler mode */
|
||||||
"moduleResolution": "bundler",
|
"moduleResolution": "bundler",
|
||||||
"allowImportingTsExtensions": true,
|
"allowImportingTsExtensions": false,
|
||||||
"verbatimModuleSyntax": true,
|
"verbatimModuleSyntax": true,
|
||||||
"moduleDetection": "force",
|
"moduleDetection": "force",
|
||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
|
|||||||
@@ -9,7 +9,7 @@
|
|||||||
|
|
||||||
/* Bundler mode */
|
/* Bundler mode */
|
||||||
"moduleResolution": "bundler",
|
"moduleResolution": "bundler",
|
||||||
"allowImportingTsExtensions": true,
|
"allowImportingTsExtensions": false,
|
||||||
"verbatimModuleSyntax": true,
|
"verbatimModuleSyntax": true,
|
||||||
"moduleDetection": "force",
|
"moduleDetection": "force",
|
||||||
"noEmit": true,
|
"noEmit": true,
|
||||||
|
|||||||
Reference in New Issue
Block a user