Skip to content

Commit abe8e9c

Browse files
authored
Merge pull request #305 from open-source-labs/dev
Dev
2 parents 9575b0e + 5d8983b commit abe8e9c

File tree

188 files changed

+21339
-16007
lines changed

Some content is hidden

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

188 files changed

+21339
-16007
lines changed

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/dist
2+
/build
3+
/node_modules

.eslintrc.js

Lines changed: 189 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -1,77 +1,189 @@
1-
module.exports = {
2-
env: {
3-
es6: true,
4-
jest: true,
5-
node: true,
6-
},
7-
extends: [
8-
"airbnb",
9-
"prettier",
10-
"prettier/@typescript-eslint",
11-
"prettier/react",
12-
],
13-
globals: {
14-
Atomics: "readonly",
15-
SharedArrayBuffer: "readonly",
16-
},
17-
parser: "babel-eslint",
18-
19-
parserOptions: {
20-
ecmaVersion: 2020,
21-
ecmaFeatures: {
22-
jsx: true,
23-
classes: true,
24-
},
25-
},
26-
plugins: ["react", "jsx-a11y", "import", "jest", "react-hooks"],
27-
rules: {
28-
"arrow-body-style": 0,
29-
"class-methods-use-this": 0,
30-
"consistent-return": 0,
31-
"comma-dangle": 0,
32-
"dot-notation": 0,
33-
"func-names": 0,
34-
"guard-for-in": 0,
35-
"import/extensions": 0,
36-
"import/no-extraneous-dependencies": 0,
37-
"import/no-unresolved": 0,
38-
"import/prefer-default-export": 0,
39-
"max-len": 0,
40-
"no-alert": 0,
41-
"no-console": 0,
42-
"no-param-reassign": 0,
43-
"no-plusplus": 0,
44-
"no-restricted-globals": 1,
45-
"no-restricted-syntax": 0,
46-
"no-shadow": 0,
47-
"no-undef": 0,
48-
"no-unused-vars": 0,
49-
"no-use-before-define": 0,
50-
"no-useless-constructor": 0,
51-
"no-underscore-dangle": 0,
52-
"no-unused-expressions": 0,
53-
"no-return-assign": 0,
54-
"prefer-const": 1,
55-
"prefer-destructuring": 0,
56-
"prefer-template": 0,
57-
"react/button-has-type": 0,
58-
"react/destructuring-assignment": 0,
59-
"react/forbid-prop-types": 0,
60-
"react/jsx-filename-extension": 0,
61-
"react/jsx-no-duplicate-props": 0,
62-
"react/no-access-state-in-setstate": 0,
63-
"react/no-array-index-key": 0,
64-
"react/no-did-update-set-state": 0,
65-
"react/no-unused-state": 0,
66-
"react/prefer-stateless-function": 0,
67-
"react/sort-comp": [
68-
2,
69-
{
70-
order: ["lifecycle", "everything-else", "rendering"],
71-
},
72-
],
73-
"react/prop-types": 0,
74-
"spaced-comment": 0,
75-
strict: 0,
76-
},
77-
};
1+
module.exports = {
2+
// Global ESLint Settings
3+
// =================================
4+
root: true,
5+
env: {
6+
browser: true,
7+
es6: true,
8+
node: true,
9+
jest: true,
10+
},
11+
globals: {
12+
Atomics: 'readonly',
13+
SharedArrayBuffer: 'readonly',
14+
},
15+
ignorePatterns: ['cypress/*'],
16+
settings: {
17+
react: {
18+
version: 'detect',
19+
},
20+
'import/resolver': {
21+
typescript: {},
22+
'babel-module': {
23+
root: ['.'],
24+
alias: {
25+
'~/static': './public/static/',
26+
'~': './',
27+
},
28+
},
29+
},
30+
},
31+
32+
// ===========================================
33+
// Set up ESLint for .js / .jsx files
34+
// ===========================================
35+
// .js / .jsx uses babel-eslint
36+
parser: 'babel-eslint',
37+
parserOptions: {
38+
ecmaVersion: 2020,
39+
sourceType: 'module',
40+
ecmaFeatures: {
41+
jsx: true,
42+
},
43+
},
44+
45+
// Plugins
46+
// =================================
47+
plugins: ['react', 'jsx-a11y', 'import', 'jest', 'react-hooks', 'prettier'],
48+
49+
// Extend Other Configs
50+
// =================================
51+
extends: [
52+
'airbnb',
53+
'eslint:recommended',
54+
'plugin:import/errors',
55+
'plugin:import/warnings',
56+
'plugin:react/recommended',
57+
// Disable rules that conflict with Prettier
58+
// Prettier must be last to override other configs
59+
'prettier',
60+
],
61+
rules: {
62+
'react/function-component-definition': 0,
63+
'react/boolean-prop-naming': 0,
64+
'react/prop-types': 0,
65+
'react-hooks/exhaustive-deps': 1,
66+
'react/react-in-jsx-scope': 0,
67+
'react/display-name': [0],
68+
// from old
69+
'arrow-body-style': 0,
70+
'class-methods-use-this': 0,
71+
'consistent-return': 0,
72+
'comma-dangle': 0,
73+
'dot-notation': 0,
74+
'func-names': 0,
75+
'guard-for-in': 0,
76+
'import/extensions': 0,
77+
'import/no-extraneous-dependencies': 0,
78+
'import/no-unresolved': 0,
79+
'import/prefer-default-export': 0,
80+
'max-len': 0,
81+
'no-alert': 0,
82+
'no-console': 0,
83+
'no-param-reassign': 0,
84+
'no-plusplus': 0,
85+
'no-restricted-globals': 1,
86+
'no-restricted-syntax': 0,
87+
'no-shadow': 0,
88+
'no-undef': 0,
89+
'no-unused-vars': 0,
90+
'no-use-before-define': 0,
91+
'no-useless-constructor': 0,
92+
'no-underscore-dangle': 0,
93+
'no-unused-expressions': 0,
94+
'no-return-assign': 0,
95+
'prefer-const': 1,
96+
'prefer-destructuring': 0,
97+
'prefer-template': 0,
98+
'react/button-has-type': 0,
99+
'react/destructuring-assignment': 0,
100+
'react/forbid-prop-types': 0,
101+
'react/jsx-filename-extension': 0,
102+
'react/jsx-no-duplicate-props': 0,
103+
'react/no-access-state-in-setstate': 0,
104+
'react/no-array-index-key': 0,
105+
'react/no-did-update-set-state': 0,
106+
'react/no-unused-state': 0,
107+
'react/prefer-stateless-function': 0,
108+
'react/sort-comp': [
109+
2,
110+
{
111+
order: ['lifecycle', 'everything-else', 'rendering'],
112+
},
113+
],
114+
'spaced-comment': 0,
115+
strict: 0,
116+
},
117+
118+
// =================================
119+
// Overrides for Specific Files
120+
// =================================
121+
overrides: [
122+
// Match TypeScript Files
123+
// =================================
124+
{
125+
files: ['**/*.{ts,tsx}'],
126+
127+
// Global ESLint Settings
128+
// =================================
129+
env: {
130+
jest: true,
131+
},
132+
globals: {
133+
React: 'writable',
134+
},
135+
settings: {
136+
'import/parsers': {
137+
'@typescript-eslint/parser': ['.ts', '.tsx'],
138+
},
139+
'import/resolver': {
140+
typescript: {
141+
project: './tsconfig.json',
142+
},
143+
},
144+
},
145+
146+
// Parser Settings
147+
// =================================
148+
// allow ESLint to understand TypeScript syntax
149+
// https://github.com/iamturns/eslint-config-airbnb-typescript/blob/master/lib/shared.js#L10
150+
parser: '@typescript-eslint/parser',
151+
parserOptions: {
152+
// Lint with Type Information
153+
// https://github.com/typescript-eslint/typescript-eslint/blob/master/docs/getting-started/linting/TYPED_LINTING.md
154+
tsconfigRootDir: __dirname,
155+
project: './tsconfig.json',
156+
},
157+
158+
// Plugins
159+
// =================================
160+
plugins: ['jsx-a11y'],
161+
162+
// Extend Other Configs
163+
// =================================
164+
extends: [
165+
'eslint:recommended',
166+
'plugin:@typescript-eslint/eslint-recommended',
167+
'plugin:@typescript-eslint/recommended',
168+
'plugin:@typescript-eslint/recommended-requiring-type-checking',
169+
'plugin:react/recommended',
170+
'plugin:import/errors',
171+
'plugin:import/warnings',
172+
'plugin:import/typescript',
173+
'prettier',
174+
],
175+
rules: {
176+
'react/react-in-jsx-scope': 'off',
177+
'react/prop-types': [0],
178+
// temp allowing during TS migration
179+
'@typescript-eslint/ban-ts-comment': [
180+
'error',
181+
{
182+
'ts-ignore': 'allow-with-description',
183+
minimumDescriptionLength: 4,
184+
},
185+
],
186+
},
187+
},
188+
],
189+
};

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 33 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,33 @@
1-
---
2-
name: Bug report
3-
about: Create a report to help us improve
4-
title: ''
5-
labels: ''
6-
assignees: ''
7-
8-
---
9-
10-
**Describe the bug**
11-
A clear and concise description of what the bug is.
12-
13-
**To Reproduce**
14-
Steps to reproduce the behavior:
15-
1. Go to '...'
16-
2. Click on '....'
17-
3. Scroll down to '....'
18-
4. See error
19-
20-
**Expected behavior**
21-
A clear and concise description of what you expected to happen.
22-
23-
**Screenshots**
24-
If applicable, add screenshots to help explain your problem.
25-
26-
**Desktop (please complete the following information):**
27-
- OS: [e.g. iOS]
28-
- Browser [e.g. chrome, safari]
29-
- Version [e.g. 22]
30-
31-
**Additional context**
32-
Add any other context about the problem here.
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
---
8+
9+
**Describe the bug**
10+
A clear and concise description of what the bug is.
11+
12+
**To Reproduce**
13+
Steps to reproduce the behavior:
14+
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
28+
- OS: [e.g. iOS]
29+
- Browser [e.g. chrome, safari]
30+
- Version [e.g. 22]
31+
32+
**Additional context**
33+
Add any other context about the problem here.
Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
1-
---
2-
name: Feature request
3-
about: Suggest an idea for this project
4-
title: ''
5-
labels: ''
6-
assignees: ''
7-
8-
---
9-
10-
**Is your feature request related to a problem? Please describe.**
11-
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12-
13-
**Describe the solution you'd like**
14-
A clear and concise description of what you want to happen.
15-
16-
**Describe alternatives you've considered**
17-
A clear and concise description of any alternative solutions or features you've considered.
18-
19-
**Additional context**
20-
Add any other context or screenshots about the feature request here.
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
---
8+
9+
**Is your feature request related to a problem? Please describe.**
10+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
11+
12+
**Describe the solution you'd like**
13+
A clear and concise description of what you want to happen.
14+
15+
**Describe alternatives you've considered**
16+
A clear and concise description of any alternative solutions or features you've considered.
17+
18+
**Additional context**
19+
Add any other context or screenshots about the feature request here.

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
11
# Build folder and files #
22
##########################
3-
builds/
3+
build/
44
release/
55

66
# Development folders and files #
77
#################################
88
.tmp/
99
dist/
10-
node_modules/
10+
node_modules
1111
*.compiled.*
1212
package-lock.json
1313
coverage/
1414
.vscode
15+
src/client/docs/
1516

1617
# Folder config file #
1718
######################

0 commit comments

Comments
 (0)