Skip to content

Commit b7a3396

Browse files
committed
refactor(tsconfig): rearrange options
1 parent bf9cbb9 commit b7a3396

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

tsconfig.json

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33
/* Visit https://aka.ms/tsconfig.json to read more about this file */
44

55
/* Basic Options */
6-
// "incremental": true, /* Enable incremental compilation */
6+
"incremental": true /* Enable incremental compilation */,
77
"target": "ESNext" /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */,
88
"module": "ESNext" /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */,
99
"lib": [
1010
"dom",
1111
"es2017",
1212
"esnext"
1313
] /* Specify library files to be included in the compilation. */,
14-
// "allowJs": true, /* Allow javascript files to be compiled. */
14+
"allowJs": true /* Allow javascript files to be compiled. */,
1515
// "checkJs": true, /* Report errors in .js files. */
1616
"jsx": "preserve" /* Specify JSX code generation: 'preserve', 'react-native', 'react', 'react-jsx' or 'react-jsxdev'. */,
1717
// "declaration": true, /* Generates corresponding '.d.ts' file. */
@@ -26,7 +26,7 @@
2626
"noEmit": true /* Do not emit outputs. */,
2727
// "importHelpers": true, /* Import emit helpers from 'tslib'. */
2828
// "downlevelIteration": true, /* Provide full support for iterables in 'for-of', spread, and destructuring when targeting 'ES5' or 'ES3'. */
29-
// "isolatedModules": true, /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */
29+
"isolatedModules": true /* Transpile each file as a separate module (similar to 'ts.transpileModule'). */,
3030

3131
/* Strict Type-Checking Options */
3232
"strict": true /* Enable all strict type-checking options. */,
@@ -64,22 +64,18 @@
6464
// "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */
6565
// "inlineSourceMap": true, /* Emit a single file with source maps instead of having a separate file. */
6666
// "inlineSources": true, /* Emit the source alongside the sourcemaps within a single file; requires '--inlineSourceMap' or '--sourceMap' to be set. */
67+
"resolveJsonModule": true,
68+
6769
/* Experimental Options */
6870
"experimentalDecorators": true /* Enables experimental support for ES7 decorators. */,
6971
"emitDecoratorMetadata": true /* Enables experimental support for emitting type metadata for decorators. */,
7072

7173
/* Advanced Options */
7274
"skipLibCheck": true /* Skip type checking of declaration files. */,
7375
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */,
74-
"plugins": [
75-
{
76-
"name": "next"
77-
}
78-
],
79-
"allowJs": true,
80-
"incremental": true,
81-
"resolveJsonModule": true,
82-
"isolatedModules": true
76+
77+
/** Editor Support */
78+
"plugins": [{ "name": "next" }]
8379
},
8480
"include": [
8581
"next-env.d.ts",

0 commit comments

Comments
 (0)