Skip to content

Commit 718db16

Browse files
committed
adding updates to remove all red squigglies from source files
1 parent e84cf7b commit 718db16

File tree

1 file changed

+24
-15
lines changed

1 file changed

+24
-15
lines changed

tsconfig.json

Lines changed: 24 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -11,28 +11,31 @@
1111
// "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
1212

1313
/* Language and Environment */
14-
"target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
15-
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
16-
// "jsx": "preserve", /* Specify what JSX code is generated. */
14+
"target": "ESNext", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
15+
"useDefineForClassFields": true,
16+
"lib": ["ESNext", "DOM", "DOM.Iterable"], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
17+
"jsx": "preserve", /* Specify what JSX code is generated. */
18+
"jsxImportSource": "vue", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */
1719
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
1820
// "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
1921
// "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
2022
// "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */
21-
// "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */
2223
// "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */
2324
// "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
24-
// "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */
2525
// "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
2626

2727
/* Modules */
28-
"module": "commonjs", /* Specify what module code is generated. */
28+
"module": "ESNext", /* Specify what module code is generated. */
2929
// "rootDir": "./", /* Specify the root folder within your source files. */
30-
// "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */
30+
"moduleResolution": "bundler", /* Specify how TypeScript looks up a file from a given module specifier. */
3131
// "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */
32-
// "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */
32+
"paths": { /* Specify a set of entries that re-map imports to additional lookup locations. */
33+
"@/*": ["./resources/js/*"],
34+
"ziggy-js": ["./vendor/tightenco/ziggy"]
35+
},
3336
// "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
3437
// "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */
35-
// "types": [], /* Specify type package names to be included without being referenced in a source file. */
38+
"types": ["vite/client", "vue/jsx"], /* Specify type package names to be included without being referenced in a source file. */
3639
// "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
3740
// "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
3841
// "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
@@ -41,22 +44,22 @@
4144
// "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
4245
// "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */
4346
// "noUncheckedSideEffectImports": true, /* Check side effect imports. */
44-
// "resolveJsonModule": true, /* Enable importing .json files. */
47+
"resolveJsonModule": true, /* Enable importing .json files. */
4548
// "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
4649
// "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
4750

4851
/* JavaScript Support */
49-
// "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
52+
"allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */
5053
// "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
5154
// "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
5255

5356
/* Emit */
5457
// "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
5558
// "declarationMap": true, /* Create sourcemaps for d.ts files. */
5659
// "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */
57-
// "sourceMap": true, /* Create source map files for emitted JavaScript files. */
60+
"sourceMap": true, /* Create source map files for emitted JavaScript files. */
5861
// "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */
59-
// "noEmit": true, /* Disable emitting files from a compilation. */
62+
"noEmit": true, /* Disable emitting files from a compilation. */
6063
// "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */
6164
// "outDir": "./", /* Specify an output folder for all emitted files. */
6265
// "removeComments": true, /* Disable emitting comments. */
@@ -74,7 +77,7 @@
7477
// "declarationDir": "./", /* Specify the output directory for generated declaration files. */
7578

7679
/* Interop Constraints */
77-
// "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
80+
"isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */
7881
// "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */
7982
// "isolatedDeclarations": true, /* Require sufficient annotation on exports so other tools can trivially generate declaration files. */
8083
// "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
@@ -107,5 +110,11 @@
107110
/* Completeness */
108111
// "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
109112
"skipLibCheck": true /* Skip type checking all .d.ts files. */
110-
}
113+
},
114+
"include": ["resources/js/**/*.ts", "resources/js/**/*.d.ts", "resources/js/**/*.tsx", "resources/js/**/*.vue"],
115+
"references": [
116+
{
117+
"path": "./tsconfig.node.json"
118+
}
119+
]
111120
}

0 commit comments

Comments
 (0)