Skip to content

Commit

Permalink
feat(transformer): initial release moving transformation code from Re…
Browse files Browse the repository at this point in the history
…mix-Image
  • Loading branch information
Josh-McFarlin committed Feb 17, 2022
0 parents commit 32ba58d
Show file tree
Hide file tree
Showing 68 changed files with 54,600 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .commitlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"extends": ["@commitlint/config-conventional"],
"rules": {
"header-max-length": [2, "always", 70],
"scope-case": [2, "always", ["camel-case", "kebab-case", "upper-case"]],
"subject-case": [0, "always"]
}
}
3 changes: 3 additions & 0 deletions .czrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"path": "cz-conventional-changelog"
}
14 changes: 14 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
out/
build/
coverage/
dist/
node_modules/
.idea_modules/
.idea/

examples/
docs/

rollup.config.js
jest.config.js
jest.setup.ts
65 changes: 65 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"parser": "@typescript-eslint/parser",
"extends": [
"eslint:recommended",
"plugin:import/recommended",
"plugin:import/typescript",
"plugin:@typescript-eslint/recommended",
"prettier"
],
"plugins": ["@typescript-eslint", "import"],
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"modules": true
},
"project": "./tsconfig.json"
},
"env": {
"browser": true,
"es6": true,
"jest": true,
"node": true
},
"settings": {
"import/parsers": {
"@typescript-eslint/parser": [".ts", ".tsx"]
},
"import/resolver": {
"node": {
"extensions": [".ts", ".tsx"]
}
}
},
"rules": {
"import/no-unresolved": "error",
"no-console": ["warn", { "allow": ["warn", "error"] }],
"no-return-await": "error",
"import/no-relative-parent-imports": "off",
"import/no-anonymous-default-export": "warn",
"import/order": [
"warn",
{
"newlines-between": "never",
"alphabetize": {
"order": "asc",
"caseInsensitive": true
}
}
],
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/ban-ts-ignore": "off",
"@typescript-eslint/require-await": "off",
"@typescript-eslint/ban-ts-comment": [
"warn",
{
"ts-ignore": "allow-with-description"
}
],
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-empty-function": "off"
}
}
85 changes: 85 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
name: '🐛 Bug report'
description: Create a report to help us improve
body:
- type: markdown
attributes:
value: |
Thank you for reporting an issue :pray:.
This issue tracker is for reporting bugs found in `js-image-lib` (https://github.com/Josh-McFarlin/js-image-lib).
If you have a question about how to achieve something and are struggling, please post a question
inside of `js-image-lib` Discussions tab: https://github.com/Josh-McFarlin/js-image-lib/discussions
Before submitting a new bug/issue, please check the links below to see if there is a solution or question posted there already:
- `js-image-lib` Issues tab: https://github.com/Josh-McFarlin/js-image-lib/issues?q=is%3Aissue+is%3Aopen+sort%3Aupdated-desc
- `js-image-lib` closed issues tab: https://github.com/Josh-McFarlin/js-image-lib/issues?q=is%3Aissue+sort%3Aupdated-desc+is%3Aclosed
- `js-image-lib` Discussions tab: https://github.com/Josh-McFarlin/js-image-lib/discussions
The more information you fill in, the better the community can help you.
- type: textarea
id: description
attributes:
label: Describe the bug
description: Provide a clear and concise description of the challenge you are running into.
validations:
required: true
- type: input
id: link
attributes:
label: Your Example Website or App
description: |
Which website or app were you using when the bug happened?
Note:
- Your bug will may get fixed much faster if we can run your code and it doesn't have dependencies other than the Remix Image npm package.
- To create a shareable code example you can use Stackblitz (https://stackblitz.com/). Please no localhost URLs.
- Please read these tips for providing a minimal example: https://stackoverflow.com/help/mcve.
placeholder: |
e.g. https://stackblitz.com/edit/...... OR Github Repo
validations:
required: false
- type: textarea
id: steps
attributes:
label: Steps to Reproduce the Bug or Issue
description: Describe the steps we have to take to reproduce the behavior.
placeholder: |
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
validations:
required: true
- type: textarea
id: expected
attributes:
label: Expected behavior
description: Provide a clear and concise description of what you expected to happen.
placeholder: |
As a user, I expected ___ behavior but i am seeing ___
validations:
required: true
- type: textarea
id: screenshots_or_videos
attributes:
label: Screenshots or Videos
description: |
If applicable, add screenshots or a video to help explain your problem.
For more information on the supported file image/file types and the file size limits, please refer
to the following link: https://docs.github.com/en/github/writing-on-github/working-with-advanced-formatting/attaching-files
placeholder: |
You can drag your video or image files inside of this editor ↓
- type: textarea
id: platform
attributes:
label: Platform
value: |
- OS: [e.g. macOS, Windows, Linux]
- Browser: [e.g. Chrome, Safari, Firefox]
- Version: [e.g. 91.1]
validations:
required: true
- type: textarea
id: additional
attributes:
label: Additional context
description: Add any other context about the problem here.
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: 🤔 Feature Requests & Questions
url: https://github.com/Josh-McFarlin/js-image-lib/discussions
about: Please ask and answer questions here.
Loading

0 comments on commit 32ba58d

Please sign in to comment.