Skip to content

Instantly share code, notes, and snippets.

@the-joat
Created June 19, 2018 02:08
// package.json
{
"name": "tsmapsbase",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start --reset-cache",
"clean": "rimraf -rf build",
"tsc": "tsc",
"build": "npm run clean && npm run tsc",
"copy": "cpx 'src/**/!(*.ts*)' ./build",
"watch:tsc": "tsc --watch --pretty",
"develop": "npm run build && concurrently 'npm run start' 'npm run copy -- --watch' 'npm run watch:tsc'",
"ios": "node node_modules/react-native/local-cli/cli.js run-ios"
},
"dependencies": {
"react": "16.3.1",
"react-native": "0.55.4",
"react-native-maps": "0.21.0"
},
"devDependencies": {
"babel-plugin-inline-import": "3.0.0",
"babel-plugin-transform-remove-console": "6.9.4",
"babel-plugin-transform-remove-strict-mode": "0.0.2",
"babel-preset-react-native": "4.0.0",
"concurrently": "3.5.1",
"cpx": "1.5.0",
"react-test-renderer": "16.3.1",
"rimraf": "2.6.2",
"tslint": "5.10.0",
"tslint-config-prettier": "1.13.0",
"typescript": "2.9.2"
}
}
// tsconfig.json
{
"compilerOptions": {
"target": "es2015",
"lib": ["es2017", "dom", "esnext.asynciterable"],
"module": "es2015",
"moduleResolution": "node",
"jsx": "react",
"outDir": "build",
"rootDir": "src",
"allowSyntheticDefaultImports": true,
"noImplicitAny": false,
"experimentalDecorators": true,
"preserveConstEnums": true,
"allowJs": true,
"sourceMap": true,
"skipLibCheck": true,
"downlevelIteration": true
},
"filesGlob": ["src/**/*.ts", "src/**/*.tsx"],
"exclude": [
"**/*.js",
"index.js",
"build",
"node_modules",
"android",
"ios",
],
"compileOnSave": false
}
// tslint.json
{
"enable": true,
"extends": ["tslint:recommended", "tslint-config-prettier"],
"rules": {
"quotemark": [true, "double", "jsx-double"],
"indent": [true, "spaces", 4],
"ordered-imports": false,
"trailing-comma": [
true,
{ "multiline": "always", "singleline": "never" }
],
"interface-name": false,
"max-line-length": [true, 200],
"max-classes-per-file": [false],
"no-console": true,
"object-literal-sort-keys": false,
"member-ordering": false,
"no-empty-interface": false,
"no-var-requires": false,
"no-unused-variable": true,
"jsx-no-multiline-js": false,
"jsx-no-string-ref": false,
"no-shadowed-variable": false
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment