Skip to content

Commit 0c6cf40

Browse files
committed
new: eslintrc and tsconfig are updated
1 parent e61a647 commit 0c6cf40

File tree

1 file changed

+14
-33
lines changed

1 file changed

+14
-33
lines changed

tsconfig.json

Lines changed: 14 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,47 +1,28 @@
11
{
22
"compilerOptions": {
33
"target": "esnext",
4-
"module": "esnext",
5-
"lib": ["esnext"],
4+
"module": "commonjs",
5+
"lib": ["es6"],
66
"allowJs": true,
77
"jsx": "react-native",
8-
"noEmit": true,
9-
"isolatedModules": false,
8+
"noImplicitAny": false,
9+
"incremental": true /* Enable incremental compilation */,
10+
"isolatedModules": true,
1011
"strict": true,
1112
"moduleResolution": "node",
13+
"skipLibCheck": true,
14+
"baseUrl": "./",
15+
"outDir": "build/dist",
16+
"noEmitHelpers": true,
17+
"importHelpers": true,
18+
"experimentalDecorators": true,
1219
"allowSyntheticDefaultImports": true,
1320
"esModuleInterop": true,
14-
// ? Custom ones
15-
"skipLibCheck": true,
16-
"resolveJsonModule": true,
17-
"noImplicitAny": true,
18-
"strictNullChecks": true,
19-
"strictFunctionTypes": true,
20-
"strictPropertyInitialization": true,
21-
"noImplicitThis": true,
22-
"alwaysStrict": true,
23-
"noUnusedLocals": true,
24-
"noUnusedParameters": true,
25-
"noImplicitReturns": true,
26-
"noFallthroughCasesInSwitch": true,
27-
"forceConsistentCasingInFileNames": true,
28-
// ? Babel Plugin Module Resolver
29-
"baseUrl": "./src",
30-
"paths": {
31-
"@shared-components/*": ["./shared/components/*"],
32-
"@shared-constants": ["./shared/constants"],
33-
"@font-size": ["./shared/theme/font-size"],
34-
"@api": ["./services/api/index"],
35-
"@fonts": ["./shared/theme/fonts/index"],
36-
"@colors": ["./shared/theme/colors"],
37-
"@theme": ["./shared/theme/*"],
38-
"@services/*": ["./services/*"],
39-
"@screens/*": ["./screens/*"],
40-
"@utils": ["./utils/"],
41-
"@assets": ["./assets/"]
42-
}
21+
"declaration": true /* Generates corresponding '.d.ts' file. */,
22+
"sourceMap": true /* Generates corresponding '.map' file. */
4323
},
4424
"exclude": [
25+
"example",
4526
"node_modules",
4627
"babel.config.js",
4728
"metro.config.js",

0 commit comments

Comments
 (0)