|
11 | 11 | // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */
|
12 | 12 |
|
13 | 13 | /* 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*'. */ |
17 | 19 | // "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
|
18 | 20 | // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
|
19 | 21 | // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
|
20 | 22 | // "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*'. */ |
22 | 23 | // "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */
|
23 | 24 | // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */
|
24 |
| - // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */ |
25 | 25 | // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */
|
26 | 26 |
|
27 | 27 | /* Modules */
|
28 |
| - "module": "commonjs", /* Specify what module code is generated. */ |
| 28 | + "module": "ESNext", /* Specify what module code is generated. */ |
29 | 29 | // "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. */ |
31 | 31 | // "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 | + }, |
33 | 36 | // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */
|
34 | 37 | // "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. */ |
36 | 39 | // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */
|
37 | 40 | // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */
|
38 | 41 | // "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */
|
|
41 | 44 | // "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */
|
42 | 45 | // "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */
|
43 | 46 | // "noUncheckedSideEffectImports": true, /* Check side effect imports. */
|
44 |
| - // "resolveJsonModule": true, /* Enable importing .json files. */ |
| 47 | + "resolveJsonModule": true, /* Enable importing .json files. */ |
45 | 48 | // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */
|
46 | 49 | // "noResolve": true, /* Disallow 'import's, 'require's or '<reference>'s from expanding the number of files TypeScript should add to a project. */
|
47 | 50 |
|
48 | 51 | /* 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. */ |
50 | 53 | // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */
|
51 | 54 | // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */
|
52 | 55 |
|
53 | 56 | /* Emit */
|
54 | 57 | // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */
|
55 | 58 | // "declarationMap": true, /* Create sourcemaps for d.ts files. */
|
56 | 59 | // "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. */ |
58 | 61 | // "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. */ |
60 | 63 | // "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. */
|
61 | 64 | // "outDir": "./", /* Specify an output folder for all emitted files. */
|
62 | 65 | // "removeComments": true, /* Disable emitting comments. */
|
|
74 | 77 | // "declarationDir": "./", /* Specify the output directory for generated declaration files. */
|
75 | 78 |
|
76 | 79 | /* 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. */ |
78 | 81 | // "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. */
|
79 | 82 | // "isolatedDeclarations": true, /* Require sufficient annotation on exports so other tools can trivially generate declaration files. */
|
80 | 83 | // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */
|
|
107 | 110 | /* Completeness */
|
108 | 111 | // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */
|
109 | 112 | "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 | + ] |
111 | 120 | }
|
0 commit comments