Skip to content

Commit 2f40057

Browse files
authored
feat: enable prettier by default (#57)
1 parent 15ad256 commit 2f40057

File tree

9 files changed

+610
-184
lines changed

9 files changed

+610
-184
lines changed

.prettierrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"requirePragma": true,
32
"singleQuote": true,
43
"trailingComma": "all",
54
"bracketSpacing": false,

example/__tests__/App.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
/**
2-
* @format
32
* @lint-ignore-every XPLATJSCOPYRIGHT1
43
*/
54

example/e2e/init.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ const adapter = require('detox/runners/jest/adapter');
55
jest.setTimeout(300000);
66
jasmine.getEnv().addReporter(adapter);
77

8-
beforeAll(async () => {
9-
await detox.init(config);
8+
beforeAll(async () => {
9+
await detox.init(config);
1010
});
1111

12-
beforeEach(async () => {
12+
beforeEach(async () => {
1313
await adapter.beforeEach();
1414
});
1515

16-
afterAll(async () => {
16+
afterAll(async () => {
1717
await adapter.afterAll();
1818
await detox.cleanup();
1919
});

example/e2e/testCases/example.e2e.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
it('finds example text', async () => {
32
await expect(element(by.id('headerText'))).toBeVisible();
43
});

example/index.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7-
* @format
87
* @flow
98
*/
109

example/src/App.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
* This source code is licensed under the MIT license found in the
55
* LICENSE file in the root directory of this source tree.
66
*
7-
* @format
87
* @flow
98
*/
109

lib/ImageEditor.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
* LICENSE file in the root directory of this source tree.
66
*
77
* @flow
8-
* @format
98
*/
109

1110
import {NativeModules} from 'react-native';

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"scripts": {
2323
"start": "node node_modules/react-native/local-cli/cli.js start",
2424
"test:flow": "flow check",
25-
"test:eslint": "eslint 'lib/**/*.js' 'example/**/*.js'",
25+
"test:eslint": "eslint \"lib/**/*.js\" \"example/**/*.js\"",
2626
"release": "release-it",
2727
"test:detox:android:test:debug": "detox test -c android.emu.debug",
2828
"test:detox:android:test:release": "detox test -c android.emu.release",
@@ -42,13 +42,13 @@
4242
},
4343
"devDependencies": {
4444
"@babel/core": "^7.0.0",
45-
"@react-native-community/eslint-config": "^0.0.2",
45+
"@react-native-community/eslint-config": "^0.0.7",
4646
"babel-core": "^7.0.0-bridge.0",
4747
"babel-eslint": "9.0.0",
4848
"babel-jest": "24.1.0",
4949
"babel-plugin-module-resolver": "^3.1.3",
5050
"detox": "^12.4.9",
51-
"eslint": "5.10.0",
51+
"eslint": "^6.8.0",
5252
"flow-bin": "0.86.0",
5353
"jest": "24.1.0",
5454
"metro-react-native-babel-preset": "0.51.1",

0 commit comments

Comments
 (0)