-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
32 changed files
with
13,229 additions
and
344 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
node_modules | ||
/built | ||
/coverage | ||
/.eslintrc.js | ||
/jest.config.ts | ||
parser.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
module.exports = { | ||
root: true, | ||
parser: '@typescript-eslint/parser', | ||
plugins: [ | ||
'@typescript-eslint', | ||
], | ||
extends: [ | ||
'eslint:recommended', | ||
'plugin:@typescript-eslint/recommended', | ||
], | ||
rules: { | ||
'indent': ['error', 'tab', { | ||
'SwitchCase': 1, | ||
'flatTernaryExpressions': true, | ||
}], | ||
'eol-last': ['error', 'always'], | ||
'semi': ['error', 'always'], | ||
'quotes': ['error', 'single'], | ||
'keyword-spacing': ['error', { | ||
'before': true, | ||
'after': true, | ||
}], | ||
'no-multi-spaces': ['error'], | ||
'no-var': ['error'], | ||
'prefer-arrow-callback': ['error'], | ||
'no-throw-literal': ['error'], | ||
'no-param-reassign': ['warn'], | ||
'no-constant-condition': ['warn'], | ||
'no-empty-pattern': ['warn'], | ||
'@typescript-eslint/no-inferrable-types': ['warn'], | ||
}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
contact_links: | ||
- name: 👪 Misskey Forum | ||
url: https://forum.misskey.io/ | ||
about: Ask questions and share knowledge | ||
- name: 💬 Misskey official Discord | ||
url: https://discord.gg/Wp8gVStHW3 | ||
about: Chat freely about Misskey |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<!-- ℹ お読みください | ||
PRありがとうございます! PRを作成する前に、コントリビューションガイドをご確認ください: | ||
https://github.com/misskey-dev/misskey.js/blob/develop/CONTRIBUTING.md | ||
--> | ||
<!-- ℹ README | ||
Thank you for your PR! Before creating a PR, please check the contribution guide: | ||
https://github.com/misskey-dev/misskey.js/blob/develop/docs/CONTRIBUTING.en.md | ||
--> | ||
|
||
# What | ||
<!-- このPRで何をしたのか? どう変わるのか? --> | ||
<!-- What did you do with this PR? How will it change things? --> | ||
|
||
# Why | ||
<!-- なぜそうするのか? どういう意図なのか? 何が困っているのか? --> | ||
<!-- Why do you do it? What are your intentions? What is the problem? --> | ||
|
||
# Additional info (optional) | ||
<!-- テスト観点など --> | ||
<!-- Test perspective, etc --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: API report | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
report: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 16.5.0 | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.npm | ||
key: npm-${{ hashFiles('package-lock.json') }} | ||
restore-keys: npm- | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Build | ||
run: npm run build | ||
|
||
- name: Check files | ||
run: ls built | ||
|
||
- name: API report | ||
run: npm run api-prod | ||
|
||
- name: Show report | ||
if: always() | ||
run: cat temp/mfm-js.api.md |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Lint | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
lint: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Node.js | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: 16.5.0 | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.npm | ||
key: npm-${{ hashFiles('package-lock.json') }} | ||
restore-keys: npm- | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Lint | ||
run: npm run lint |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions | ||
|
||
name: Test and coverage | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
test: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [16.5.0] | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Setup Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: ~/.npm | ||
key: npm-${{ hashFiles('package-lock.json') }} | ||
restore-keys: npm- | ||
|
||
- name: Install dependencies | ||
run: npm ci | ||
|
||
- name: Build | ||
run: npm run build | ||
|
||
- name: Test | ||
run: npm test | ||
env: | ||
CI: true | ||
|
||
- name: Upload Coverage | ||
uses: codecov/codecov-action@v1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
# npm | ||
node_modules | ||
package-lock.json | ||
|
||
# editor | ||
.vscode | ||
|
||
# app dir | ||
built | ||
temp | ||
|
||
coverage | ||
|
||
src/internal/parser.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
<!-- | ||
## 0.x.x (unreleased) | ||
### Features | ||
### Improvements | ||
### Changes | ||
### Bugfixes | ||
--> | ||
|
||
## 0.20.0 | ||
|
||
npm: https://www.npmjs.com/package/mfm-js/v/0.20.0 | ||
|
||
### Features | ||
- Add tag syntaxes of bold and strikethrough. (#76) | ||
- Supports whitelisting of MFM function names. (#77) | ||
|
||
### Improvements | ||
- Mentions in the link label are parsed as text. (#66) | ||
- Add a property to the URL node indicating whether it was enclosed in `<>`. (#69) | ||
- Disallows `<` and `>` in hashtags. (#74) | ||
- Improves security. | ||
|
||
### Changes | ||
- Abolished MFM function v1 syntax. (#79) | ||
|
||
## 0.19.0 | ||
|
||
npm: https://www.npmjs.com/package/mfm-js/v/0.19.0 | ||
|
||
### Improvements | ||
- Ignores a blank line after quote lines. (#61) | ||
|
||
## 0.18.0 | ||
|
||
npm: https://www.npmjs.com/package/mfm-js/v/0.18.0 | ||
|
||
### Improvements | ||
- Twemoji v13.1 is supported. | ||
|
||
## 0.17.0 | ||
|
||
npm: https://www.npmjs.com/package/mfm-js/v/0.17.0 | ||
|
||
### Improvements | ||
- Improves syntax of inline code. | ||
- Improves syntax of url. | ||
- Improves syntax of hashtag. |
Oops, something went wrong.