Skip to content

Commit

Permalink
feat: enable prettier by default (callstack#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
vonovak committed Feb 3, 2020
1 parent aa3624f commit 7329cd9
Show file tree
Hide file tree
Showing 9 changed files with 610 additions and 184 deletions.
1 change: 0 additions & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"requirePragma": true,
"singleQuote": true,
"trailingComma": "all",
"bracketSpacing": false,
Expand Down
1 change: 0 additions & 1 deletion example/__tests__/App.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
/**
* @format
* @lint-ignore-every XPLATJSCOPYRIGHT1
*/

Expand Down
8 changes: 4 additions & 4 deletions example/e2e/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ const adapter = require('detox/runners/jest/adapter');
jest.setTimeout(300000);
jasmine.getEnv().addReporter(adapter);

beforeAll(async () => {
await detox.init(config);
beforeAll(async () => {
await detox.init(config);
});

beforeEach(async () => {
beforeEach(async () => {
await adapter.beforeEach();
});

afterAll(async () => {
afterAll(async () => {
await adapter.afterAll();
await detox.cleanup();
});
1 change: 0 additions & 1 deletion example/e2e/testCases/example.e2e.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

it('finds example text', async () => {
await expect(element(by.id('headerText'))).toBeVisible();
});
1 change: 0 additions & 1 deletion example/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
* @flow
*/

Expand Down
1 change: 0 additions & 1 deletion example/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @format
* @flow
*/

Expand Down
1 change: 0 additions & 1 deletion lib/ImageEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
* LICENSE file in the root directory of this source tree.
*
* @flow
* @format
*/

import {NativeModules} from 'react-native';
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test:flow": "flow check",
"test:eslint": "eslint 'lib/**/*.js' 'example/**/*.js'",
"test:eslint": "eslint \"lib/**/*.js\" \"example/**/*.js\"",
"release": "release-it",
"test:detox:android:test:debug": "detox test -c android.emu.debug",
"test:detox:android:test:release": "detox test -c android.emu.release",
Expand All @@ -42,13 +42,13 @@
},
"devDependencies": {
"@babel/core": "^7.0.0",
"@react-native-community/eslint-config": "^0.0.2",
"@react-native-community/eslint-config": "^0.0.7",
"babel-core": "^7.0.0-bridge.0",
"babel-eslint": "9.0.0",
"babel-jest": "24.1.0",
"babel-plugin-module-resolver": "^3.1.3",
"detox": "^12.4.9",
"eslint": "5.10.0",
"eslint": "^6.8.0",
"flow-bin": "0.86.0",
"jest": "24.1.0",
"metro-react-native-babel-preset": "0.51.1",
Expand Down
Loading

0 comments on commit 7329cd9

Please sign in to comment.