Files
mattermost-mobile/tsconfig.json
Daniel Espino García 4c8594d330 Add linter rules for import order and type member delimiters (#5514)
* Add linter rules for import order and type member delimiters

* Remove unneeded group

* Group all app/* imports before the internal imports

* Move app/ imports before parent imports

* Separate @node_modules imports into a different group

* Substitute app paths by aliases

* Fix @node_modules import order and add test related modules

* Add aliases for types and test, and group import types
2021-07-23 11:06:04 +02:00

73 lines
2.4 KiB
JSON

{
"compilerOptions": {
"target": "esnext",
"lib": [
"es6"
],
"allowJs": true,
"skipLibCheck": true,
"allowSyntheticDefaultImports": true,
"esModuleInterop": true,
"isolatedModules": true,
"jsx": "react",
"moduleResolution": "node",
"noEmit": false,
"strict": false,
"importHelpers": true,
"declaration": true,
"sourceMap": false,
"rootDir": "./",
"outDir": "./",
"noImplicitAny": true,
"strictNullChecks": true,
"strictFunctionTypes": false,
"strictPropertyInitialization": true,
"noImplicitThis": false,
"alwaysStrict": true,
"noUnusedLocals": false,
"downlevelIteration": true,
"noUnusedParameters": false,
"noImplicitReturns": true,
"noFallthroughCasesInSwitch": true,
"resolveJsonModule": true,
"baseUrl": ".",
"paths": {
"@actions/*": ["app/actions/*"],
"@assets/*": ["dist/assets/*"],
"@client/*": ["app/client/*"],
"@components/*": ["app/components/*"],
"@constants/*": ["app/constants/*"],
"@constants": ["app/constants/index"],
"@hooks": ["app/hooks/index"],
"@hooks/*": ["app/hooks/*"],
"@i18n": ["app/i18n/index"],
"@init/*": ["app/init/*"],
"@mattermost-managed": ["app/mattermost_managed/index"],
"@mm-redux/*": ["app/mm-redux/*"],
"@screens/*": ["app/screens/*"],
"@selectors/*": ["app/selectors/*"],
"@share/*": ["share_extension/*"],
"@store": ["app/store/index"],
"@store/*": ["app/store/*"],
"@telemetry": ["app/telemetry/index"],
"@test/*": ["test/*"],
"@mm-types/*": ["types/*"],
"@typings/*": ["types/*"],
"@utils/*": ["app/utils/*"],
"@websocket": ["app/client/websocket"],
"*": ["./*", "node_modules/*"],
"react-native-redash/lib/module/v1": [
"./node_modules/react-native-redash/lib/typescript/v1/index.d.ts"
]
}
},
"include": ["app/**/*", "share_extensionn/**/*", "test/**/*", "detox/**/*", "types/**/*"],
"exclude": [
"node_modules",
"build",
"babel.config.js",
"metro.config.js",
"jest.config.js",
]
}