Skip to content

Commit 86dea1f

Browse files
committed
Add prettier & eslint
1 parent d29a80c commit 86dea1f

File tree

4 files changed

+762
-29
lines changed

4 files changed

+762
-29
lines changed

.prettierrc.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"overrides": [
3+
{
4+
"files": "package.json",
5+
"options": { "parser": "json" }
6+
}
7+
],
8+
"proseWrap": "never",
9+
"trailingComma": "all",
10+
"useTabs": true
11+
}

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { NativeModules } from 'react-native';
1+
import { NativeModules } from "react-native";
22

33
const RNZendeskChatModule = NativeModules.RNZendeskChatModule;
44

package.json

Lines changed: 40 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,42 @@
11
{
2-
"name": "react-native-zendesk-chat",
3-
"version": "0.3.1",
4-
"description": "React Native Wrapper around Zopim Zendesk Chat",
5-
"main": "index.js",
6-
"repository": {
7-
"type": "git",
8-
"url": "https://github.com/taskrabbit/react-native-zendesk-chat"
9-
},
10-
"keywords": [
11-
"zendesk",
12-
"chat",
13-
"react-native",
14-
"react",
15-
"ios",
16-
"android",
17-
"react-component"
18-
],
19-
"homepage": "https://github.com/taskrabbit/react-native-zendesk-chat.git",
20-
"bugs": "https://github.com/taskrabbit/react-native-zendesk-chat/issues",
21-
"author": "jrichardlai",
22-
"contributors": [
23-
"Robert Murray <rmurray@taskrabbit.com>"
24-
],
25-
"license": "MIT",
26-
"peerDependencies": {
27-
"react": "^16.11.0",
28-
"react-native": "^0.60.0"
29-
}
2+
"name": "react-native-zendesk-chat",
3+
"version": "0.3.1",
4+
"description": "React Native Wrapper around Zopim Zendesk Chat",
5+
"main": "index.js",
6+
"repository": {
7+
"type": "git",
8+
"url": "https://github.com/taskrabbit/react-native-zendesk-chat"
9+
},
10+
"scripts": {
11+
"prettier": "prettier",
12+
"prettier:all": "prettier --write '**/*.json' '**/*.js' '**/*.ts' ",
13+
"lint": "eslint"
14+
},
15+
"keywords": [
16+
"zendesk",
17+
"chat",
18+
"react-native",
19+
"react",
20+
"ios",
21+
"android",
22+
"react-component"
23+
],
24+
"homepage": "https://github.com/taskrabbit/react-native-zendesk-chat.git",
25+
"bugs": "https://github.com/taskrabbit/react-native-zendesk-chat/issues",
26+
"author": "jrichardlai",
27+
"contributors": [
28+
"Brian Leonard <brian@taskrabbit.com>",
29+
"Frederic Barthelemy <frederic@taskrabbit.com>",
30+
"Jean-Richard Lai <github.com/jrichardlai>",
31+
"Jordan Smith <jordan@taskrabbit.com>",
32+
"Michael Kachanovskyi <mikach27@gmail.com>",
33+
"Robert Murray <rmurray@taskrabbit.com>",
34+
"Zane Chua <github.com/zanechua>"
35+
],
36+
"license": "MIT",
37+
"devDependencies": { "prettier": "2.0.x", "eslint": "7.3.x" },
38+
"peerDependencies": {
39+
"react": "^16.11.0",
40+
"react-native": "^0.60.0"
41+
}
3042
}

0 commit comments

Comments
 (0)