Skip to content

Commit a637d32

Browse files
apply formatting rules (#30)
1 parent 153b817 commit a637d32

File tree

17 files changed

+72
-78
lines changed

17 files changed

+72
-78
lines changed

.github/workflows/test.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ jobs:
122122
run: |
123123
cd tests
124124
yarn install --frozen-lockfile
125-
126-
- name: Install Cocoapods
125+
126+
- name: Install Cocoapods
127127
run: |
128128
cd tests/ios && pod install
129129

.mtslconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"ignore_dirs":[".git","node_modules","tests"]}
1+
{ "ignore_dirs": [".git", "node_modules", "tests"] }

.prettierignore

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Ignore all node_modules
2+
**/node_modules/**
3+
4+
# Autogenerated files
5+
**/.expo/**
6+
**/.next/**
7+
**/.idea/**
8+
**/.fleet/**
9+
10+
# Other
11+
**/android/**
12+
**/assets/**
13+
**/bin/**
14+
**/ios/**

.prettierrc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"semi": true,
3+
"singleQuote": true,
4+
"tabWidth": 2,
5+
"jsxBracketSameLine": true,
6+
"useTabs": false,
7+
"printWidth": 120,
8+
"trailingComma": "none"
9+
}

babel.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ module.exports = {
33
plugins: [
44
'babel-plugin-transform-typescript-metadata',
55
['@babel/plugin-proposal-decorators', { legacy: true }],
6-
['@babel/plugin-proposal-class-properties', { loose: true }],
7-
],
6+
['@babel/plugin-proposal-class-properties', { loose: true }]
7+
]
88
};

package.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
"scripts": {
3030
"build": "bob build",
3131
"clean": "rm -rf lib tsconfig.tsbuildinfo",
32+
"format": "prettier --write .",
3233
"typescript": "tsc --noEmit",
3334
"prepare": "bob build",
3435
"example": "yarn --cwd example",
@@ -50,6 +51,7 @@
5051
"@changesets/cli": "^2.26.2",
5152
"@types/lodash": "^4.14.200",
5253
"@types/uuid": "^9.0.1",
54+
"prettier": "^3.2.4",
5355
"react": "18.2.0",
5456
"react-native": "0.71.0",
5557
"react-native-builder-bob": "^0.18.2",
@@ -59,13 +61,6 @@
5961
"react": "*",
6062
"react-native": "*"
6163
},
62-
"prettier": {
63-
"quoteProps": "consistent",
64-
"singleQuote": true,
65-
"tabWidth": 2,
66-
"trailingComma": "es5",
67-
"useTabs": false
68-
},
6964
"react-native-builder-bob": {
7065
"source": "src",
7166
"output": "lib",

scripts/bootstrap.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ const options = {
77
cwd: process.cwd(),
88
env: process.env,
99
stdio: 'inherit',
10-
encoding: 'utf-8',
10+
encoding: 'utf-8'
1111
};
1212

1313
let result;

src/DBListenerManager.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export class DBListenerManagerInternal extends DBListenerManager {
5656
/**
5757
* COMMIT hooks occur before the commit is completed. This leads to race conditions.
5858
* Only use the rollback event to clear updates.
59-
*/
59+
*/
6060
case TransactionEvent.ROLLBACK:
6161
this.transactionReverted();
6262
break;

src/setup-open.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -117,12 +117,12 @@ export function setupOpen(QuickSQLite: ISQLite) {
117117
const res = await callback(context);
118118

119119
closeContextLock(dbName, id);
120-
resolve(res)
120+
resolve(res);
121121
} catch (ex) {
122122
closeContextLock(dbName, id);
123-
reject(ex)
123+
reject(ex);
124124
} finally {
125-
hooks?.lockReleased?.()
125+
hooks?.lockReleased?.();
126126
}
127127
}
128128
} as LockCallbackRecord);
@@ -236,4 +236,4 @@ export function setupOpen(QuickSQLite: ISQLite) {
236236
};
237237
}
238238
};
239-
}
239+
}

src/type-orm.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
// _________ _______ ______ ____ _____ __ __ _____ _____
2-
// |__ __\ \ / / __ \| ____/ __ \| __ \| \/ | /\ | __ \_ _|
3-
// | | \ \_/ /| |__) | |__ | | | | |__) | \ / | / \ | |__) || |
4-
// | | \ / | ___/| __|| | | | _ /| |\/| | / /\ \ | ___/ | |
5-
// | | | | | | | |___| |__| | | \ \| | | | / ____ \| | _| |_
6-
// |_| |_| |_| |______\____/|_| \_\_| |_| /_/ \_\_| |_____|
7-
8-
import _ from 'lodash';
91
import { QueryResult, TransactionContext, Open } from './types';
102

113
/**

0 commit comments

Comments
 (0)