Skip to content

Commit e0aebc8

Browse files
Anto Aravinthmihar-22
authored andcommitted
chore: initial commit
0 parents  commit e0aebc8

37 files changed

+1750
-0
lines changed

.all-contributorsrc

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"projectName": "preact-testing-library",
3+
"projectOwner": "mihar-22",
4+
"repoType": "github",
5+
"files": [
6+
"README.md"
7+
],
8+
"imageSize": 100,
9+
"commit": false,
10+
"contributors": [
11+
{
12+
"login": "mihar-22",
13+
"name": "Rahim Alwer",
14+
"avatar_url": "https://avatars3.githubusercontent.com/u/14304599?s=460&v=4",
15+
"profile": "https://github.com/mihar-22",
16+
"contributions": [
17+
"code",
18+
"doc",
19+
"test",
20+
"infra"
21+
]
22+
}
23+
],
24+
"contributorsPerLine": 7,
25+
"repoHost": "https://github.com"
26+
}

.babelrc

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"presets": [
3+
["@babel/preset-env", {
4+
"targets": { "node": "8" }
5+
}]
6+
],
7+
"plugins": [
8+
["@babel/plugin-transform-runtime"],
9+
["@babel/plugin-proposal-class-properties"],
10+
["@babel/plugin-transform-react-jsx", { "pragma": "h" }],
11+
["@babel/plugin-transform-modules-commonjs", {"allowTopLevelThis": true}]
12+
]
13+
}

.editorconfig

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_style = space
6+
indent_size = 2
7+
insert_final_newline = true
8+
trim_trailing_whitespace = true
9+
10+
[*.md]
11+
max_line_length = off
12+
trim_trailing_whitespace = false

.eslintrc.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
module.exports = {
2+
root: true,
3+
env: {
4+
browser: true,
5+
es6: true,
6+
jest: true
7+
},
8+
parser: 'babel-eslint',
9+
extends: [
10+
'airbnb-base',
11+
],
12+
plugins: [
13+
'simple-import-sort',
14+
],
15+
rules: {
16+
'max-len': ['warn', {'code': 100}],
17+
'comma-dangle': 'off',
18+
'no-underscore-dangle': 'off',
19+
'simple-import-sort/sort': 'error',
20+
'class-methods-use-this': 'off',
21+
'no-unused-vars': 'off',
22+
'max-classes-per-file': 'off',
23+
},
24+
globals: {
25+
document: 'readonly',
26+
window: 'readonly',
27+
}
28+
};

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
* text=auto
2+
*.js text eol=lf

.github/ISSUE_TEMPLATE.md

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
<!--
2+
3+
HI! PLEASE STOP TO READ THIS!! IF YOU DO NOT FOLLOW THE INSTRUCTIONS, YOUR ISSUE
4+
WILL LIKELY BE CLOSED.
5+
6+
Thanks for your interest in the project. We appreciate bugs filed and PRs submitted!
7+
8+
- Please make sure that you are familiar with and follow the Code of Conduct for
9+
this project (found in the CODE_OF_CONDUCT.md file).
10+
11+
- Please review the Issues policies before filing an issue:
12+
13+
🐛 Bugs:
14+
File an issue for bugs, missing documentation, or unexpected behavior.
15+
16+
💡 Feature Requests:
17+
File an issue to suggest new features.
18+
Vote on feature requests by adding a 👍. This helps maintainers prioritize
19+
what to work on.
20+
21+
❓ Questions:
22+
For questions related to using the library, please visit a support community
23+
instead of filing an issue on GitHub.
24+
* Preact Slack
25+
https://preact-slack.now.sh
26+
* Stack Overflow
27+
https://stackoverflow.com/questions/tagged/preact-testing-library
28+
29+
**ISSUES WHICH ARE QUESTIONS WILL BE CLOSED**
30+
31+
- Please fill out this template with all the relevant information so we can
32+
understand what's going on and fix the issue.
33+
34+
- If you're issue is regarding one of the query APIs (`getByText`,
35+
`getByLabelText`, etc), then please file it on the `dom-testing-library`
36+
repository instead. If you file it here it will be closed. Thanks :)
37+
38+
We'll probably ask you to submit the fix (after giving some direction). If
39+
you've never done that before, that's great! Check this free short video
40+
tutorial to learn how: http://kcd.im/pull-request
41+
42+
-->
43+
44+
- `preact-testing-library` version:
45+
- `preact` version:
46+
- `node` version:
47+
- `npm` (or `yarn`) version:
48+
49+
Relevant code or config
50+
51+
```javascript
52+
```
53+
54+
What you did:
55+
56+
What happened:
57+
58+
<!-- Please provide the full error message/screenshots/anything -->
59+
60+
Reproduction repository:
61+
62+
<!--
63+
If possible, please create a repository that reproduces the issue with the
64+
minimal amount of code possible. You may fork the template here:
65+
https://github.com/alexkrolick/dom-testing-library-template
66+
67+
Or if you can, try to reproduce the issue in a codesandbox.
68+
-->
69+
70+
Problem description:
71+
72+
<!-- Please describe why the current behavior is a problem -->
73+
74+
Suggested solution:
75+
76+
<!--
77+
It's ok if you don't have a suggested solution, but it really helps if you could
78+
do a little digging to come up with some suggestion of how to improve things.
79+
-->

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
<!--
2+
Thanks for your interest in the project. Bugs filed and PRs submitted are appreciated!
3+
4+
Please make sure that you are familiar with and follow the Code of Conduct for
5+
this project (found in the CODE_OF_CONDUCT.md file).
6+
7+
Also, please make sure you're familiar with and follow the instructions in the
8+
contributing guidelines (found in the CONTRIBUTING.md file).
9+
10+
If you're new to contributing to open source projects, you might find this free
11+
video course helpful: http://kcd.im/pull-request
12+
13+
Please fill out the information below to expedite the review and (hopefully)
14+
merge of your pull request!
15+
-->
16+
17+
<!-- What changes are being made? (What feature/bug is being fixed here?) -->
18+
19+
**What**:
20+
21+
<!-- Why are these changes necessary? -->
22+
23+
**Why**:
24+
25+
<!-- How were these changes implemented? -->
26+
27+
**How**:
28+
29+
<!-- Have you done all of these things? -->
30+
31+
**Checklist**:
32+
33+
<!-- add "N/A" to the end of each line that's irrelevant to your changes -->
34+
35+
<!-- to check an item, place an "x" in the box like so: "- [x] Documentation" -->
36+
37+
- [ ] Documentation added
38+
- [ ] Tests
39+
- [ ] Typescript definitions updated
40+
- [ ] Ready to be merged
41+
<!-- In your opinion, is this ready to be merged as soon as it's reviewed? -->
42+
43+
<!-- feel free to add additional comments -->

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
node_modules
2+
coverage
3+
dist
4+
.opt-in
5+
.opt-out
6+
.DS_Store
7+
.eslintcache
8+
.idea
9+
10+
yarn-error.log
11+
package-lock.json
12+
yarn.lock

.npmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
registry=http://registry.npmjs.org/

.prettierignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
package.json
2+
node_modules
3+
dist
4+
coverage

0 commit comments

Comments
 (0)