Skip to content

Commit 12d14ea

Browse files
committed
Updates
0 parents  commit 12d14ea

21 files changed

+248
-0
lines changed

.editorconfig

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Editor configuration, see http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.snap]
12+
max_line_length = off
13+
trim_trailing_whitespace = false
14+
15+
[*.md]
16+
max_line_length = off
17+
trim_trailing_whitespace = false

.eslintrc.js

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
module.exports = {
2+
// tells eslint to use the TypeScript parser
3+
"parser": "@typescript-eslint/parser",
4+
// tell the TypeScript parser that we want to use JSX syntax
5+
"parserOptions": {
6+
"tsx": true,
7+
"jsx": true,
8+
"js": true,
9+
"useJSXTextNode": true,
10+
"project": "./tsconfig.json",
11+
"tsconfigRootDir": "."
12+
},
13+
// we want to use the recommended rules provided from the typescript plugin
14+
"extends": [
15+
"eslint:recommended",
16+
"plugin:react/recommended",
17+
"plugin:@typescript-eslint/recommended"
18+
],
19+
"globals": {
20+
"window": "readonly",
21+
"describe": "readonly",
22+
"test": "readonly",
23+
"expect": "readonly",
24+
"it": "readonly",
25+
"process": "readonly",
26+
"document": "readonly",
27+
"insights": "readonly",
28+
"shallow": "readonly",
29+
"render": "readonly",
30+
"mount": "readonly"
31+
},
32+
"overrides": [
33+
{
34+
"files": ["src/**/*.ts", "src/**/*.tsx"],
35+
"parser": "@typescript-eslint/parser",
36+
"plugins": ["@typescript-eslint"],
37+
"extends": ["plugin:@typescript-eslint/recommended"],
38+
"rules": {
39+
"react/prop-types": "off",
40+
"@typescript-eslint/no-unused-vars": "error"
41+
},
42+
},
43+
],
44+
"settings": {
45+
"react": {
46+
"version": "^16.11.0"
47+
}
48+
},
49+
// includes the typescript specific rules found here: https://github.com/typescript-eslint/typescript-eslint/tree/master/packages/eslint-plugin#supported-rules
50+
"plugins": [
51+
"@typescript-eslint",
52+
"react-hooks",
53+
"eslint-plugin-react-hooks"
54+
],
55+
"rules": {
56+
"sort-imports": [
57+
"error",
58+
{
59+
"ignoreDeclarationSort": true
60+
}
61+
],
62+
"@typescript-eslint/explicit-function-return-type": "off",
63+
"react-hooks/rules-of-hooks": "error",
64+
"react-hooks/exhaustive-deps": "warn",
65+
"@typescript-eslint/interface-name-prefix": "off",
66+
"prettier/prettier": "off",
67+
"import/no-unresolved": "off",
68+
"import/extensions": "off",
69+
"react/prop-types": "off"
70+
},
71+
"env": {
72+
"browser": true,
73+
"node": true
74+
}
75+
}
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve the react seed
4+
title: ''
5+
labels: needs triage
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+
16+
**Expected behavior**
17+
A clear and concise description of what you expected to happen.
18+
19+
**Screenshots**
20+
If applicable, add screenshots to help explain your problem.
21+
22+
**Additional context**
23+
Add any other context about the problem here.

.github/workflows/ci.yaml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: CI
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- main
7+
- release*
8+
9+
jobs:
10+
lint:
11+
name: Lint
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v3
16+
- name: Setup Node.js
17+
uses: actions/setup-node@v3
18+
with:
19+
node-version: lts/*
20+
- name: Install dependencies
21+
run: npm install
22+
- name: Run eslint
23+
run: npm run lint
24+
test:
25+
name: Test
26+
runs-on: ubuntu-latest
27+
steps:
28+
- name: Checkout
29+
uses: actions/checkout@v3
30+
- name: Setup Node.js
31+
uses: actions/setup-node@v3
32+
with:
33+
node-version: lts/*
34+
- name: Install dependencies
35+
run: npm install
36+
- name: Run tests
37+
run: npm run test
38+
build:
39+
name: Build
40+
runs-on: ubuntu-latest
41+
steps:
42+
- name: Checkout
43+
uses: actions/checkout@v3
44+
- name: Setup Node.js
45+
uses: actions/setup-node@v3
46+
with:
47+
node-version: lts/*
48+
- name: Install dependencies
49+
run: npm install
50+
- name: Attempt a build
51+
run: npm run build

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
**/node_modules
2+
dist
3+
yarn-error.log
4+
yarn.lock
5+
stats.json
6+
coverage
7+
storybook-static
8+
.DS_Store
9+
.idea
10+
.env
11+
.history

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package.json

.prettierrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"singleQuote": true,
3+
"printWidth": 120
4+
}

078865af129336cde269.woff2

40.2 KB
Binary file not shown.

18ca482120faaa701d8b.woff2

38.8 KB
Binary file not shown.

463d4ddeac4dae277fc4.woff2

18 KB
Binary file not shown.

0 commit comments

Comments
 (0)