-
Notifications
You must be signed in to change notification settings - Fork 0
/
tsconfig.cjs
42 lines (39 loc) · 1.08 KB
/
tsconfig.cjs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/* eslint-disable @typescript-eslint/no-var-requires */
const { generatePaths } = require('tsconfig-paths-autogen');
const { onmyjs } = require('onmyjs');
const baseUrl = 'src';
module.exports = {
compilerOptions: {
lib: ['dom', 'dom.iterable', 'esnext'],
allowJs: true,
skipLibCheck: true,
esModuleInterop: true,
allowSyntheticDefaultImports: true,
exactOptionalPropertyTypes: true,
noImplicitReturns: true,
strict: true,
strictNullChecks: true,
forceConsistentCasingInFileNames: true,
target: 'es6',
module: 'esnext',
moduleResolution: 'node',
resolveJsonModule: true,
isolatedModules: true,
noEmit: false,
jsx: 'react',
newLine: 'lf',
baseUrl,
paths: generatePaths(baseUrl, {
rootAlias: '@',
maxDirectoryDepth: 2,
excludeAliasForDirectories: ['dist'],
excludeAliasForSubDirectories: [],
includeAliasForDirectories: {
common: 'ui/fragments/common',
},
}),
},
include: ['src', './jest-setup.ts'],
exclude: ['**/lib', 'build', '**/dist', 'node_modules', 'scripts', 'webpack', '**/templates'],
};
onmyjs(module.exports, undefined, false);