Skip to content

Commit 806116a

Browse files
committed
Change eslint config to @callstack.
1 parent 6d0acd0 commit 806116a

File tree

4 files changed

+257
-158
lines changed

4 files changed

+257
-158
lines changed

.eslintrc

+5-7
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
{
2-
"extends": [
3-
"airbnb-base",
4-
"plugin:flowtype/recommended"
5-
],
6-
"plugins": [
7-
"flowtype"
8-
]
2+
"extends": "@callstack",
3+
"rules": {
4+
"global-require": 0,
5+
"prefer-destructuring": 0
6+
}
97
}

index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,11 +40,11 @@ const searchForLocations = (
4040
searchText: string,
4141
region: Region,
4242
callback: Callback,
43-
debounceMs: number = 200,
43+
debounceMs: number = 200
4444
) => {
4545
debounce(
4646
RNReverseGeocode.searchForLocations(searchText, region, callback),
47-
debounceMs,
47+
debounceMs
4848
);
4949
};
5050

package.json

+1-6
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,8 @@
2222
"url": "https://github.com/kiwicom/react-native-reverse-geocode"
2323
},
2424
"devDependencies": {
25-
"babel-cli": "^6.26.0",
26-
"babel-eslint": "^10.0.1",
27-
"babel-preset-flow": "^6.23.0",
25+
"@callstack/eslint-config": "^2.0.0",
2826
"eslint": "^5.6.1",
29-
"eslint-config-airbnb-base": "^13.1.0",
30-
"eslint-plugin-flowtype": "^2.50.1",
31-
"eslint-plugin-import": "^2.14.0",
3227
"flow-bin": "0.78.0",
3328
"react": "^16.5.2",
3429
"react-native": "^0.57.2"

0 commit comments

Comments
 (0)