-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: initial setup of editorjs-inline-tool plugin
- Loading branch information
1 parent
060cc62
commit 281d8e7
Showing
31 changed files
with
13,338 additions
and
50 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,26 @@ | ||
{ | ||
"projectName": "editorjs-inline-tool", | ||
"projectOwner": "natterstefan", | ||
"repoType": "github", | ||
"repoHost": "https://github.com", | ||
"files": [ | ||
"README.md" | ||
], | ||
"imageSize": 100, | ||
"commit": false, | ||
"commitConvention": "eslint", | ||
"contributors": [ | ||
{ | ||
"login": "natterstefan", | ||
"name": "Stefan Natter", | ||
"avatar_url": "https://avatars2.githubusercontent.com/u/1043668?v=4", | ||
"profile": "http://twitter.com/natterstefan", | ||
"contributions": [ | ||
"code", | ||
"doc", | ||
"example" | ||
] | ||
} | ||
], | ||
"contributorsPerLine": 7 | ||
} |
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,5 @@ | ||
dist | ||
es | ||
esm | ||
lib | ||
tmp |
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,47 @@ | ||
module.exports = { | ||
extends: [ | ||
'eslint-config-ns', | ||
'plugin:@typescript-eslint/recommended', | ||
'prettier/@typescript-eslint', | ||
], | ||
parser: '@typescript-eslint/parser', | ||
rules: { | ||
'class-methods-use-this': 0, | ||
'sort-keys': 0, | ||
'@typescript-eslint/interface-name-prefix': [ | ||
2, | ||
{ | ||
prefixWithI: 'always', | ||
allowUnderscorePrefix: true, | ||
}, | ||
], | ||
'@typescript-eslint/no-use-before-define': 0, | ||
}, | ||
overrides: [ | ||
{ | ||
files: [ | ||
'.storybook', | ||
'**/__stories__/**/*.ts', | ||
'**/__stories__/**/*.tsx', | ||
], | ||
rules: { | ||
'import/no-extraneous-dependencies': 0, | ||
'@typescript-eslint/explicit-function-return-type': 0, | ||
'@typescript-eslint/no-explicit-any': 0, | ||
}, | ||
}, | ||
{ | ||
files: ['@types/**/*.ts'], | ||
rules: { | ||
'@typescript-eslint/no-explicit-any': 0, | ||
}, | ||
}, | ||
], | ||
settings: { | ||
'import/resolver': { | ||
node: { | ||
extensions: ['.js', '.jsx', '.ts', '.tsx'], | ||
}, | ||
}, | ||
}, | ||
} |
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,18 @@ | ||
# Code ownership for pull request reviews | ||
|
||
# Docs | ||
# https://github.com/blog/2392-introducing-code-owners | ||
# https://help.github.com/articles/about-codeowners/ | ||
|
||
# These owners will be the default owners for everything in the repo. | ||
* @natterstefan | ||
|
||
# Order is important. The last matching pattern has the most precedence. | ||
# So if a pull request only touches javascript files, only these owners | ||
# will be requested to review. | ||
|
||
# For example: | ||
# *.js @octocat @github/js | ||
|
||
# You can also use email addresses if you prefer. | ||
# docs/* docs@example.com |
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,46 @@ | ||
--- | ||
name: Bug Report 🐞 | ||
about: Something isn't working as expected? Here is the right place to report. | ||
--- | ||
|
||
<!-- | ||
To make it easier for us to help you — please follow the suggested format below. | ||
Before opening a new issue, please search existing issues: https://github.com/natterstefan/editorjs-inline-tool/issues | ||
For general technical questions, contact me on [Twitter](http://twitter.com/natterstefan). | ||
--> | ||
|
||
# Bug Report | ||
|
||
## Relevant information | ||
|
||
<!-- Provide as much useful information as you can --> | ||
|
||
### Your Environment | ||
|
||
- Browser: **\_** | ||
- Browser version: **\_** | ||
- OS: **\_** | ||
- Node: **x.y.z** | ||
- Package Version: **x.y.z** | ||
|
||
#### Steps to reproduce | ||
|
||
1. Step 1 | ||
2. Step 2 | ||
3. Step 3 | ||
|
||
#### Observed Results | ||
|
||
- What happened? This could be a description, log output, etc. | ||
|
||
#### Expected Results | ||
|
||
- What did you expect to happen? | ||
|
||
#### Relevant Code (optional) | ||
|
||
```js | ||
// TODO(you): code here to reproduce the problem | ||
``` |
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,26 @@ | ||
--- | ||
name: Feature Request 💡 | ||
about: Suggest a new idea. | ||
--- | ||
|
||
<!-- | ||
To make it easier for us to help you — please follow the suggested format below. | ||
Before opening a new issue, please search existing issues: https://github.com/natterstefan/editorjs-inline-tool/issues | ||
For general technical questions, contact me on [Twitter](http://twitter.com/natterstefan). | ||
--> | ||
|
||
# Feature Request | ||
|
||
Brief explanation of the feature you have in mind. | ||
|
||
## Basic example | ||
|
||
If you want you can include a basic code example. Omit this section if it's | ||
not applicable. | ||
|
||
## Motivation | ||
|
||
Why are you suggesting this? What is the use case for it and what is the | ||
expected outcome? |
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,26 @@ | ||
--- | ||
name: Question 🤔 | ||
about: Usage question or discussion. | ||
--- | ||
|
||
<!-- | ||
To make it easier for us to help you — please follow the suggested format below. | ||
Before opening a new issue, please search existing issues: https://github.com/natterstefan/editorjs-inline-tool/issues | ||
For general technical questions, contact me on [Twitter](http://twitter.com/natterstefan). | ||
--> | ||
|
||
# Question | ||
|
||
## Relevant information | ||
|
||
Provide as much useful information as you can. | ||
|
||
### Your Environment | ||
|
||
- Browser: **\_** | ||
- Browser version: **\_** | ||
- OS: **\_** | ||
- Node: **x.y.z** | ||
- Package Version: **x.y.z** |
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 @@ | ||
<!-- | ||
Please submit all PRs to the `master` branch unless they are specific to current | ||
release. | ||
--> | ||
|
||
# Issue | ||
|
||
## What I did | ||
|
||
<!-- | ||
Please explain what you did in detail, and reference to an issue if you | ||
resolved one. | ||
--> | ||
|
||
## What it adds, solves and/or improves | ||
|
||
<!-- | ||
Please explain what's new after this PR. | ||
--> | ||
|
||
## How to test | ||
|
||
<!-- | ||
- Is this testable in storybook? | ||
- Does this need an update to the documentation? | ||
If your answer is yes to any of these, please make sure to include it in your PR. | ||
--> |
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,39 @@ | ||
# Number of days of inactivity before an issue becomes stale | ||
daysUntilStale: 60 | ||
# Number of days of inactivity before a stale issue is closed | ||
daysUntilClose: 7 | ||
# Issues with these labels will never be considered stale | ||
exemptLabels: | ||
- pinned | ||
- security | ||
- bug | ||
- help wanted | ||
|
||
exemptMilestones: true | ||
|
||
# Label to use when marking an issue as stale | ||
staleLabel: stale | ||
|
||
only: issues | ||
|
||
# Comment to post when removing the stale label. | ||
unmarkComment: > | ||
Okay, it looks like this issue or feature request might still be important. | ||
We'll re-open it for now. Thank you for letting us know! | ||
# Comment to post when marking an issue as stale. Set to `false` to disable | ||
markComment: > | ||
Is this still relevant? We haven't heard from anyone in a bit. If so, | ||
please comment with any updates or additional detail. | ||
This issue has been automatically marked as stale because it has not had | ||
recent activity. It will be closed if no further activity occurs. Don't | ||
take it personally, we just need to keep a handle on things. Thank you | ||
for your contributions! | ||
# Comment to post when closing a stale issue. Set to `false` to disable | ||
closeComment: > | ||
This issue has been automatically closed because it has not had | ||
recent activity. If you believe this is still an issue, please confirm that | ||
this issue is still happening in the most recent version and reply to this | ||
thread to re-open it. |
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,61 +1,27 @@ | ||
# Logs | ||
logs | ||
*.log | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# Runtime data | ||
pids | ||
*.pid | ||
*.seed | ||
*.pid.lock | ||
|
||
# Directory for instrumented libs generated by jscoverage/JSCover | ||
lib-cov | ||
|
||
# Coverage directory used by tools like istanbul | ||
coverage | ||
|
||
# nyc test coverage | ||
.nyc_output | ||
|
||
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files) | ||
.grunt | ||
|
||
# Bower dependency directory (https://bower.io/) | ||
bower_components | ||
|
||
# node-waf configuration | ||
.lock-wscript | ||
# OS, IDE, ... | ||
.DS_Store | ||
|
||
# Compiled binary addons (https://nodejs.org/api/addons.html) | ||
build/Release | ||
|
||
# Dependency directories | ||
node_modules/ | ||
jspm_packages/ | ||
# Development | ||
.awcache | ||
node_modules | ||
tmp | ||
*.log | ||
|
||
# TypeScript v1 declaration files | ||
typings/ | ||
# build | ||
.awcache | ||
build | ||
dist | ||
es | ||
esm | ||
lib | ||
*.tgz | ||
storybook-static | ||
|
||
# Optional npm cache directory | ||
.npm | ||
|
||
# Optional eslint cache | ||
.eslintcache | ||
|
||
# Optional REPL history | ||
.node_repl_history | ||
|
||
# Output of 'npm pack' | ||
*.tgz | ||
|
||
# Yarn Integrity file | ||
.yarn-integrity | ||
|
||
# dotenv environment variables file | ||
.env | ||
|
||
# next.js build output | ||
.next |
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 @@ | ||
v12 |
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,14 @@ | ||
{ | ||
"printWidth": 80, | ||
"semi": false, | ||
"singleQuote": true, | ||
"trailingComma": "all", | ||
"overrides": [ | ||
{ | ||
"files": "package*.json", | ||
"options": { | ||
"printWidth": 1000 | ||
} | ||
} | ||
] | ||
} |
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,2 @@ | ||
import '@storybook/addon-actions/register' | ||
import 'storybook-readme/register' |
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 @@ | ||
import { addDecorator, configure } from '@storybook/react' | ||
import { addReadme } from 'storybook-readme' | ||
|
||
addDecorator(addReadme) | ||
|
||
// automatically import all files ending in *.stories.tsx | ||
configure(require.context('../src', true, /\.stories\.tsx?$/), module) |
Oops, something went wrong.