Skip to content

Commit 5e171bf

Browse files
authored
Merge pull request #16 from zentered/fix/import-errors
fix: import errors
2 parents 7dcd603 + c190d6f commit 5e171bf

19 files changed

Lines changed: 5629 additions & 2610 deletions

.eslintrc

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es2021": true,
5+
"node": true
6+
},
7+
"parser": "@typescript-eslint/parser",
8+
"extends": ["eslint:recommended", "prettier", "plugin:solid/recommended"],
9+
"parserOptions": {
10+
"ecmaFeatures": {
11+
"jsx": true
12+
},
13+
"ecmaVersion": "latest",
14+
"sourceType": "module"
15+
},
16+
"plugins": ["solid"]
17+
}

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: github-actions
4+
directory: "/"
5+
schedule:
6+
interval: weekly

.github/workflows/publish.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
branches:
6+
- "main"
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v3
13+
- uses: actions/setup-node@v3
14+
with:
15+
node-version: 18
16+
- run: npx semantic-release
17+
env:
18+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
node_modules
2-
dist
2+
dist
3+
.eslintcache

.husky/commit-msg

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

.husky/pre-commit

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

.npmignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
example
2+
.husky

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"singleQuote": false,
3+
"semi": true,
4+
"trailingComma": "es5",
5+
"proseWrap": "preserve"
6+
}

README.md

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
The implementation is 90% shamelessly copied from https://github.com/remarkjs/react-markdown.
44

55
Changes include:
6+
67
- Replacing React specific component creation with SolidJS components
78
- Porting the implementation from javascript with JSDoc types to typescript
89

910
Please check the original repo for in-depth details on how to use.
1011

1112
## Installation
13+
1214
```
1315
npm install solid-markdown
1416
```
@@ -24,11 +26,12 @@ const markdown = `
2426
- here's
2527
- a
2628
- list
27-
`
29+
`;
2830
const App = () => {
29-
return <SolidMarkdown children={markdown} />
30-
}
31+
return <SolidMarkdown children={markdown} />;
32+
};
3133
```
3234

3335
## TODO
36+
3437
- [ ] Port unit tests from from original library

babel.config.json

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
11
{
2-
"presets": [
3-
"solid",
4-
"@babel/typescript"
5-
]
6-
}
2+
"presets": ["solid", "@babel/typescript"]
3+
}

0 commit comments

Comments
 (0)