Skip to content

Commit d0feff1

Browse files
author
Sravan S
committed
Initial commit
0 parents  commit d0feff1

File tree

587 files changed

+75083
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

587 files changed

+75083
-0
lines changed

.env.example

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// appID for dev mode using storybook
2+
STORYBOOK_APP_ID=xxxx
3+
4+
// for frozen channel testing
5+
STORYBOOK_FROZEN_APP_ID=
6+
STORYBOOK_FROZEN_GROUP_ID=
7+
STORYBOOK_FROZEN_USER_ID=

.eslintignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# common files to ignore
2+
__test__/*/**.js
3+
__test__/*/**.jsx
4+
*.spec.js
5+
*.mock.js
6+
7+
__snapshots__/**/*
8+
*.spec.js.snap
9+
10+
*.stories.js
11+
12+
*.css
13+
*.scss
14+
15+
*.svg
16+
*.md

.eslintrc.js

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
module.exports = {
2+
env: {
3+
browser: true,
4+
es6: true,
5+
},
6+
ignorePatterns: ['**/*.ts', '**/*.tsx', 'node_modules'],
7+
extends: [
8+
'plugin:react/recommended',
9+
'airbnb',
10+
],
11+
globals: {
12+
Atomics: 'readonly',
13+
SharedArrayBuffer: 'readonly',
14+
},
15+
parser: 'babel-eslint',
16+
parserOptions: {
17+
ecmaFeatures: {
18+
jsx: true,
19+
},
20+
ecmaVersion: 2018,
21+
sourceType: 'module',
22+
},
23+
plugins: [
24+
'react',
25+
],
26+
rules: {
27+
// uncomment 'linebreak-style' to build in windows - its not adviced to commit from windows
28+
// read more - https://community.perforce.com/s/article/3096
29+
// ['linebreak-style']: 0,
30+
"import/extensions": [
31+
"error",
32+
"ignorePackages",
33+
{
34+
"js": "never",
35+
"jsx": "never",
36+
"ts": "never",
37+
"tsx": "never",
38+
},
39+
],
40+
},
41+
settings: {
42+
"import/resolver": {
43+
node: {
44+
extensions: [".js", ".jsx", ".ts", ".tsx"],
45+
},
46+
},
47+
},
48+
};

.eslintrc.json

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"root": true,
3+
"parser": "@typescript-eslint/parser",
4+
"parserOptions": {
5+
"ecmaVersion": 2020,
6+
"sourceType": "module",
7+
"ecmaFeatures": {
8+
"jsx": true
9+
}
10+
},
11+
"settings": {
12+
"react": {
13+
"version": "detect"
14+
}
15+
},
16+
"rules": {
17+
"@typescript-eslint/ban-ts-comment": "off"
18+
},
19+
"extends": [
20+
"plugin:react/recommended",
21+
"plugin:@typescript-eslint/recommended"
22+
],
23+
"plugins": [
24+
"react",
25+
"@typescript-eslint"
26+
],
27+
"ignorePatterns": "['**/*.js', '**/*.jsx', 'node_modules']"
28+
}

.gitconfig

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[core]
2+
autocrlf = false

.github/pull_request_template.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
## Jira Ticket
2+
[<TICKET_ID>](https://sendbird.atlassian.net/browse/<TICKET_ID>)
3+
4+
## Description Of Changes
5+
6+
Add a brief description of the changes that you have involved in this PR
7+
8+
## Types Of Changes
9+
10+
What types of changes does your code introduce to this project?
11+
Put an `x` in the boxes that apply_
12+
13+
- [ ] Bugfix
14+
- [ ] New feature
15+
- [ ] Documentation (correction or otherwise)
16+
- [ ] Cosmetics (whitespace, appearance (ex) Prettier)
17+
- [ ] Build configuration
18+
- [ ] Improvement (refactor code)

.github/workflows/test-n-lint.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
2+
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
3+
4+
name: Test and Lint
5+
6+
on: push
7+
8+
jobs:
9+
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
node-version: [v12.16]
16+
17+
steps:
18+
- uses: actions/checkout@v2
19+
- name: Use Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v1
21+
with:
22+
node-version: ${{ matrix.node-version }}
23+
- run: npm install
24+
- run: npm run eslint
25+
- run: npm run eslint-ts
26+
- run: npm run test

.gitignore

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
2+
# See https://help.github.com/ignore-files/ for more about ignoring files.
3+
4+
# dependencies
5+
node_modules
6+
7+
# builds
8+
build
9+
dist
10+
.rpt2_cache
11+
12+
# misc
13+
.DS_Store
14+
.env
15+
.env.local
16+
.env.development.local
17+
.env.test.local
18+
.env.production.local
19+
20+
npm-debug.log*
21+
yarn-debug.log*
22+
yarn-error.log*

0 commit comments

Comments
 (0)