@@ -60,6 +60,126 @@ module.exports = {
60
60
"@typescript-eslint/unbound-method" : "off" ,
61
61
"jest/unbound-method" : "error" ,
62
62
} ,
63
+ } , {
64
+ files : [ "tsconfig.json" , "tsconfig.*.json" ] ,
65
+ parser : "jsonc-eslint-parser" ,
66
+ rules : {
67
+ "jsonc/sort-keys" : [
68
+ "error" ,
69
+ {
70
+ pathPattern : "^$" ,
71
+ order : [
72
+ "extends" ,
73
+ "compilerOptions" ,
74
+ "references" ,
75
+ "files" ,
76
+ "include" ,
77
+ "exclude" ,
78
+ ] ,
79
+ } ,
80
+ {
81
+ pathPattern : "^compilerOptions$" ,
82
+ order : [
83
+ /* Projects */
84
+ "incremental" ,
85
+ "composite" ,
86
+ "tsBuildInfoFile" ,
87
+ "disableSourceOfProjectReferenceRedirect" ,
88
+ "disableSolutionSearching" ,
89
+ "disableReferencedProjectLoad" ,
90
+ /* Language and Environment */
91
+ "target" ,
92
+ "lib" ,
93
+ "jsx" ,
94
+ "experimentalDecorators" ,
95
+ "emitDecoratorMetadata" ,
96
+ "jsxFactory" ,
97
+ "jsxFragmentFactory" ,
98
+ "jsxImportSource" ,
99
+ "reactNamespace" ,
100
+ "noLib" ,
101
+ "useDefineForClassFields" ,
102
+ "moduleDetection" ,
103
+ /* Modules */
104
+ "module" ,
105
+ "rootDir" ,
106
+ "moduleResolution" ,
107
+ "baseUrl" ,
108
+ "paths" ,
109
+ "rootDirs" ,
110
+ "typeRoots" ,
111
+ "types" ,
112
+ "allowUmdGlobalAccess" ,
113
+ "moduleSuffixes" ,
114
+ "allowImportingTsExtensions" ,
115
+ "resolvePackageJsonExports" ,
116
+ "resolvePackageJsonImports" ,
117
+ "customConditions" ,
118
+ "resolveJsonModule" ,
119
+ "allowArbitraryExtensions" ,
120
+ "noResolve" ,
121
+ /* JavaScript Support */
122
+ "allowJs" ,
123
+ "checkJs" ,
124
+ "maxNodeModuleJsDepth" ,
125
+ /* Emit */
126
+ "declaration" ,
127
+ "declarationMap" ,
128
+ "emitDeclarationOnly" ,
129
+ "sourceMap" ,
130
+ "inlineSourceMap" ,
131
+ "outFile" ,
132
+ "outDir" ,
133
+ "removeComments" ,
134
+ "noEmit" ,
135
+ "importHelpers" ,
136
+ "importsNotUsedAsValues" ,
137
+ "downlevelIteration" ,
138
+ "sourceRoot" ,
139
+ "mapRoot" ,
140
+ "inlineSources" ,
141
+ "emitBOM" ,
142
+ "newLine" ,
143
+ "stripInternal" ,
144
+ "noEmitHelpers" ,
145
+ "noEmitOnError" ,
146
+ "preserveConstEnums" ,
147
+ "declarationDir" ,
148
+ "preserveValueImports" ,
149
+ /* Interop Constraints */
150
+ "isolatedModules" ,
151
+ "verbatimModuleSyntax" ,
152
+ "allowSyntheticDefaultImports" ,
153
+ "esModuleInterop" ,
154
+ "preserveSymlinks" ,
155
+ "forceConsistentCasingInFileNames" ,
156
+ /* Type Checking */
157
+ "strict" ,
158
+ "noImplicitAny" ,
159
+ "strictNullChecks" ,
160
+ "strictFunctionTypes" ,
161
+ "strictBindCallApply" ,
162
+ "strictPropertyInitialization" ,
163
+ "noImplicitThis" ,
164
+ "useUnknownInCatchVariables" ,
165
+ "alwaysStrict" ,
166
+ "noUnusedLocals" ,
167
+ "noUnusedParameters" ,
168
+ "exactOptionalPropertyTypes" ,
169
+ "noImplicitReturns" ,
170
+ "noFallthroughCasesInSwitch" ,
171
+ "noUncheckedIndexedAccess" ,
172
+ "noImplicitOverride" ,
173
+ "noPropertyAccessFromIndexSignature" ,
174
+ "allowUnusedLabels" ,
175
+ "allowUnreachableCode" ,
176
+ /* Completeness */
177
+ "skipDefaultLibCheck" ,
178
+ "skipLibCheck" ,
179
+ ] ,
180
+ } ,
181
+ ] ,
182
+ } ,
63
183
} ] ,
64
184
) ,
65
185
rules : {
0 commit comments