Skip to content

Commit

Permalink
Fixed iOS App and cleanup project (microsoft#17)
Browse files Browse the repository at this point in the history
* update dependencies
* remove unused files
* migration to androidx dependencies
* setup prettier config
* simplify npm scripts
* added Android App Bundle support
* enable nvm & nodenv
* update gitignore
* fixed iOS
  • Loading branch information
vyas-n authored Dec 25, 2019
1 parent 25d795f commit 667dd6a
Show file tree
Hide file tree
Showing 53 changed files with 7,170 additions and 19,469 deletions.
6 changes: 0 additions & 6 deletions .buckconfig

This file was deleted.

39 changes: 37 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,39 @@
const path = require("path");
module.exports = {
root: true,
extends: '@react-native-community',
};
parser: "@typescript-eslint/parser",
plugins: [
"@typescript-eslint"
// any other eslint plugins your team might need/use
],
env: {
// pick your environments
browser: true,
jest: true,
node: true
},
parserOptions: {
// this can be an array or string (if you only have one tsconfig.json)
project: [
// include all of your `tsconfig.json` files in here
// the example here is taken from portal
path.resolve(__dirname, "./tsconfig.json"),
path.resolve(__dirname, "./server/tsconfig.json"),
path.resolve(__dirname, "./fixtures/tsconfig.json")
],
tsconfigRootDir: __dirname,
ecmaVersion: 2018,
sourceType: "module"
},
// for getting help/started on picking rules, a good place to look for
// a minimal setup that includes only a couple stylistic rules is
// in the portal's eslintrc.js file
rules: {
// ...
},
extends: [
// any other plugins here,
"prettier",
"prettier/@typescript-eslint"
]
};
102 changes: 0 additions & 102 deletions .flowconfig

This file was deleted.

5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ DerivedData
*.hmap
*.ipa
*.xcuserstate
project.xcworkspace
*.xcworkspace

# Android/IntelliJ
#
Expand Down Expand Up @@ -56,3 +56,6 @@ buck-out/
*.jsbundle
# CocoaPods
/ios/Pods/

# VS Code
.project
1 change: 1 addition & 0 deletions .node-version
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
12.13.1
18 changes: 18 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"arrowParens": "always",
"bracketSpacing": true,
"htmlWhitespaceSensitivity": "css",
"insertPragma": false,
"jsxBracketSameLine": false,
"jsxSingleQuote": false,
"printWidth": 135,
"proseWrap": "preserve",
"quoteProps": "as-needed",
"requirePragma": false,
"semi": true,
"singleQuote": false,
"tabWidth": 2,
"trailingComma": "none",
"useTabs": false
}

6 changes: 0 additions & 6 deletions .prettierrc.js

This file was deleted.

1 change: 0 additions & 1 deletion .watchmanconfig

This file was deleted.

12 changes: 6 additions & 6 deletions __tests__/App.tsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import * as React from 'react';
import App from '../src/App';
import * as renderer from 'react-test-renderer';
jest.mock('react-native-code-push', () => 'CodePush');
jest.mock('appcenter-crashes', () => 'AppCenterCrashes');
import * as React from "react";
import App from "../src/App";
import * as renderer from "react-test-renderer";
jest.mock("react-native-code-push", () => "CodePush");
jest.mock("appcenter-crashes", () => "AppCenterCrashes");

it('renders correctly', () => {
it("renders correctly", () => {
const tree = renderer.create(<App />);
});
55 changes: 0 additions & 55 deletions android/app/BUCK

This file was deleted.

Loading

0 comments on commit 667dd6a

Please sign in to comment.