Skip to content

Commit ab4280f

Browse files
remidejjoshuaellis
andauthored
chore: init repository tooling (#1)
* Init Vite react app * setup jest * Export types * setup husky and eslint * Delete public dir * feedback fixes pre pack-up * use pack-up * chore(tsconfig): fix types exporting * chore: set yarn berry version * Restore strapi eslint config * Use lint-staged via npx * Add github and markdown files --------- Co-authored-by: Josh <37798644+joshuaellis@users.noreply.github.com>
1 parent 7e08a25 commit ab4280f

26 files changed

Lines changed: 10154 additions & 2 deletions

.editorconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
root = true
2+
3+
[*]
4+
indent_style = space
5+
indent_size = 2
6+
end_of_line = lf
7+
charset = utf-8
8+
trim_trailing_whitespace = true
9+
insert_final_newline = true
10+
11+
[{package.json,*.yml}]
12+
indent_style = space
13+
indent_size = 2
14+
15+
[*.md]
16+
trim_trailing_whitespace = false

.eslintignore

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

.eslintrc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"root": true,
3+
"extends": ["@strapi/eslint-config/front/typescript"],
4+
"parserOptions": {
5+
"project": ["./tsconfig.eslint.json"]
6+
},
7+
"settings": {
8+
"import/resolver": {
9+
"typescript": {
10+
"project": "./tsconfig.eslint.json"
11+
}
12+
}
13+
},
14+
"rules": {
15+
"check-file/no-index": "off"
16+
},
17+
"overrides": []
18+
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: 🐛 Bug Report
2+
description: Create a report to help us improve this repo.
3+
title: '[bug]: '
4+
labels: ['issue: bug']
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thank you for filing a bug report!
10+
- type: textarea
11+
attributes:
12+
label: What version of `@strapi/blocks-react-renderer` are you using?
13+
placeholder: |
14+
- Npm version
15+
- Node.js version
16+
- React version:
17+
- `@strapi/blocks-react-renderer` version
18+
- Browser
19+
validations:
20+
required: true
21+
- type: textarea
22+
attributes:
23+
label: "What's Wrong?"
24+
description: A concise description of what you expected to happen (please provide screenshots).
25+
validations:
26+
required: true
27+
- type: textarea
28+
attributes:
29+
label: To Reproduce
30+
description: Steps to reproduce the behavior
31+
validations:
32+
required: true
33+
- type: textarea
34+
attributes:
35+
label: Expected Behaviour
36+
description: What you expected to happen
37+
validations:
38+
required: true
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: 🚀 Feature Request
2+
description: Submit a request for a new feature
3+
title: '[feat]: '
4+
labels: ['issue: enhancement']
5+
body:
6+
- type: markdown
7+
attributes:
8+
value: |
9+
Thank you for contributing a feature request!
10+
- type: textarea
11+
attributes:
12+
label: A clear and concise description of what the feature is
13+
validations:
14+
required: true
15+
- type: textarea
16+
attributes:
17+
label: Why should this feature be included?
18+
validations:
19+
required: true
20+
- type: textarea
21+
attributes:
22+
label: Please provide an example for how this would work

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
### What does it do?
2+
3+
Describe the technical changes you did.
4+
5+
### Why is it needed?
6+
7+
Describe the issue you are solving.
8+
9+
### How to test it?
10+
11+
Provide information about the environment and the path to verify the behaviour.
12+
13+
### Related issue(s)/PR(s)
14+
15+
Let us know if this is related to any issue/pull request

.gitignore

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.
2+
3+
# dependencies
4+
node_modules
5+
.pnp
6+
.pnp.js
7+
8+
# testing
9+
coverage
10+
11+
# production
12+
dist
13+
14+
# misc
15+
.DS_Store
16+
*.pem
17+
18+
# debug
19+
npm-debug.log*
20+
yarn-debug.log*
21+
yarn-error.log*
22+
23+
# local env files
24+
.env
25+
.env.local
26+
.env.development.local
27+
.env.test.local
28+
.env.production.local
29+
30+
# yarn
31+
.pnp.*
32+
.yarn/*
33+
!.yarn/patches
34+
!.yarn/plugins
35+
!.yarn/releases
36+
!.yarn/sdks
37+
!.yarn/versions

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/usr/bin/env sh
2+
. "$(dirname -- "$0")/_/husky.sh"
3+
4+
npx --no-install lint-staged

.lintstagedrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"*.{js,jsx,ts,tsx}": ["yarn lint:fix"]
3+
}

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
dist
2+
coverage

0 commit comments

Comments
 (0)