-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: George Berezhnoy <[email protected]> Co-authored-by: Georgy Berezhnoy <[email protected]> Co-authored-by: tasuku-s <[email protected]> Co-authored-by: Athul Anil Kumar <[email protected]> Co-authored-by: Taly <[email protected]> Co-authored-by: flaming-cl <[email protected]> Co-authored-by: Nguyen Ngoc Son <[email protected]> Co-authored-by: Sisir Das K <[email protected]> Co-authored-by: Sisir <[email protected]>
- Loading branch information
1 parent
4ead91f
commit 63eeec0
Showing
106 changed files
with
5,698 additions
and
3,625 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,4 @@ | ||
node_modules | ||
*.d.ts | ||
src/components/tools/paragraph | ||
src/polyfills.ts |
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,92 +1,45 @@ | ||
{ | ||
/** Enable ES6 features */ | ||
"parserOptions": { | ||
"ecmaVersion": 2017, | ||
"sourceType": "module" | ||
}, | ||
"rules": { | ||
|
||
"arrow-spacing": [2, { | ||
"before": true, | ||
"after": true | ||
}], | ||
|
||
/** Variables */ | ||
"no-catch-shadow": 2, | ||
"no-delete-var": 2, | ||
"no-label-var": 2, | ||
"no-shadow-restricted-names": 2, | ||
"no-shadow": 2, | ||
"no-undef-init": 2, | ||
"no-undef": 2, | ||
"no-unused-vars": 0, | ||
|
||
/** Style */ | ||
"array-bracket-spacing": [2, "never", { | ||
"singleValue": true, | ||
"objectsInArrays": true, | ||
"arraysInArrays": true | ||
}], | ||
"quotes": [2, "single", { | ||
"avoidEscape": true, | ||
"allowTemplateLiterals": true | ||
}], | ||
"eqeqeq": 0, | ||
"brace-style": [2, "1tbs"], | ||
"comma-spacing": [2, { | ||
"before": false, | ||
"after": true | ||
}], | ||
"comma-style": [2, "last"], | ||
"eol-last": 0, | ||
"no-nested-ternary": 1, | ||
"no-trailing-spaces": 2, | ||
"no-mixed-spaces-and-tabs": 2, | ||
"padded-blocks": [2, "never"], | ||
"space-before-blocks": 1, | ||
"space-before-function-paren": [1, { | ||
"anonymous": "always", | ||
"named": "never" | ||
}], | ||
"spaced-comment": [2, "always", { | ||
"exceptions": ["-", "+"], | ||
"markers": ["=", "!"] | ||
}], | ||
"semi": [2, "always"], | ||
"indent": [2, 2, { | ||
"SwitchCase": 1 | ||
}], | ||
"camelcase": [2, { | ||
"properties": "always" | ||
}], | ||
"newline-after-var": [1, "always"] | ||
|
||
}, | ||
"globals":{ | ||
"document": true, | ||
"module": true, | ||
"require": true, | ||
"window": true, | ||
"console" : true, | ||
"codex": true, | ||
"VERSION" : true, | ||
"Promise" : true, | ||
"MutationObserver": true, | ||
"FormData": true, | ||
"XMLHttpRequest": true, | ||
"ActiveXObject": true, | ||
"RegExp": true, | ||
"Module": true, | ||
"Node": true, | ||
"Element": true, | ||
"DocumentFragment": true, | ||
"Proxy": true, | ||
"Symbol": true, | ||
"$": true, | ||
"_": true, | ||
"setTimeout": true, | ||
"process": true, | ||
"__dirname": true, | ||
"Map": true | ||
"extends": [ | ||
"codex" | ||
], | ||
"rules": { | ||
/** | ||
* Temporary suppress some errors. We need to fix them partially in next patches | ||
*/ | ||
"import/no-duplicates": ["warn"], | ||
}, | ||
"settings": { | ||
"jsdoc": { | ||
"mode": "typescript" | ||
} | ||
}, | ||
"globals": { | ||
"Node": true, | ||
"Range": true, | ||
"HTMLElement": true, | ||
"HTMLDivElement": true, | ||
"Element": true, | ||
"Selection": true, | ||
"SVGElement": true, | ||
"Text": true, | ||
"InsertPosition": true, | ||
"PropertyKey": true, | ||
"MouseEvent": true, | ||
"TouchEvent": true, | ||
"KeyboardEvent": true, | ||
"ClipboardEvent": true, | ||
"DragEvent": true, | ||
"Event": true, | ||
"EventTarget": true, | ||
"Document": true, | ||
"NodeList": true, | ||
"File": true, | ||
"FileList": true, | ||
"MutationRecord": true, | ||
"AddEventListenerOptions": true, | ||
"DataTransfer": true, | ||
"DOMRect": true, | ||
"ClientRect": true, | ||
"ArrayLike": true | ||
} | ||
} |
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,76 @@ | ||
# Contributor Covenant Code of Conduct | ||
|
||
## Our Pledge | ||
|
||
In the interest of fostering an open and welcoming environment, we as | ||
contributors and maintainers pledge to making participation in our project and | ||
our community a harassment-free experience for everyone, regardless of age, body | ||
size, disability, ethnicity, sex characteristics, gender identity and expression, | ||
level of experience, education, socio-economic status, nationality, personal | ||
appearance, race, religion, or sexual identity and orientation. | ||
|
||
## Our Standards | ||
|
||
Examples of behavior that contributes to creating a positive environment | ||
include: | ||
|
||
* Using welcoming and inclusive language | ||
* Being respectful of differing viewpoints and experiences | ||
* Gracefully accepting constructive criticism | ||
* Focusing on what is best for the community | ||
* Showing empathy towards other community members | ||
|
||
Examples of unacceptable behavior by participants include: | ||
|
||
* The use of sexualized language or imagery and unwelcome sexual attention or | ||
advances | ||
* Trolling, insulting/derogatory comments, and personal or political attacks | ||
* Public or private harassment | ||
* Publishing others' private information, such as a physical or electronic | ||
address, without explicit permission | ||
* Other conduct which could reasonably be considered inappropriate in a | ||
professional setting | ||
|
||
## Our Responsibilities | ||
|
||
Project maintainers are responsible for clarifying the standards of acceptable | ||
behavior and are expected to take appropriate and fair corrective action in | ||
response to any instances of unacceptable behavior. | ||
|
||
Project maintainers have the right and responsibility to remove, edit, or | ||
reject comments, commits, code, wiki edits, issues, and other contributions | ||
that are not aligned to this Code of Conduct, or to ban temporarily or | ||
permanently any contributor for other behaviors that they deem inappropriate, | ||
threatening, offensive, or harmful. | ||
|
||
## Scope | ||
|
||
This Code of Conduct applies both within project spaces and in public spaces | ||
when an individual is representing the project or its community. Examples of | ||
representing a project or community include using an official project e-mail | ||
address, posting via an official social media account, or acting as an appointed | ||
representative at an online or offline event. Representation of a project may be | ||
further defined and clarified by project maintainers. | ||
|
||
## Enforcement | ||
|
||
Instances of abusive, harassing, or otherwise unacceptable behavior may be | ||
reported by contacting the project team at [email protected]. All | ||
complaints will be reviewed and investigated and will result in a response that | ||
is deemed necessary and appropriate to the circumstances. The project team is | ||
obligated to maintain confidentiality with regard to the reporter of an incident. | ||
Further details of specific enforcement policies may be posted separately. | ||
|
||
Project maintainers who do not follow or enforce the Code of Conduct in good | ||
faith may face temporary or permanent repercussions as determined by other | ||
members of the project's leadership. | ||
|
||
## Attribution | ||
|
||
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, | ||
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html | ||
|
||
[homepage]: https://www.contributor-covenant.org | ||
|
||
For answers to common questions about this code of conduct, see | ||
https://www.contributor-covenant.org/faq |
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,38 +1,30 @@ | ||
--- | ||
name: Bug report | ||
about: Create a report to help us improve | ||
title: "⚠️" | ||
about: Create a report to help us improve Editor.js | ||
title: "[Bug]" | ||
labels: bug | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Describe the bug** | ||
A clear and concise description of what the bug is. | ||
Describe a bug. | ||
|
||
**To Reproduce** | ||
Steps to reproduce the behavior: | ||
1. Go to '...' | ||
2. Click on '....' | ||
3. Scroll down to '....' | ||
4. See error | ||
Steps to reproduce: | ||
1. Go to … | ||
2. Click on … | ||
3. … | ||
|
||
**Expected behavior** | ||
A clear and concise description of what you expected to happen. | ||
Expected behavior: | ||
|
||
**Screenshots** | ||
If applicable, add screenshots to help explain your problem. | ||
Screenshots: | ||
|
||
**Desktop (please complete the following information):** | ||
- OS: [e.g. iOS] | ||
- Browser [e.g. chrome, safari] | ||
- Version [e.g. 22] | ||
Device, Browser, OS: | ||
|
||
**Smartphone (please complete the following information):** | ||
- Device: [e.g. iPhone6] | ||
- OS: [e.g. iOS8.1] | ||
- Browser [e.g. stock browser, safari] | ||
- Version [e.g. 22] | ||
Editor.js version: | ||
|
||
**Additional context** | ||
Add any other context about the problem here. | ||
Plugins you use with their versions: | ||
|
||
<!-- | ||
🤫 If you like Editor.js, please consider supporting us via OpenCollective: | ||
https://opencollective.com/editorjs | ||
--> |
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,17 @@ | ||
--- | ||
name: Discussion | ||
about: Any question about the Editor.js to discuss | ||
title: '' | ||
labels: discussion | ||
assignees: '' | ||
|
||
--- | ||
|
||
The question. | ||
|
||
Why and how the question has come up. | ||
|
||
<!-- | ||
🤫 If you like Editor.js, please consider supporting us via OpenCollective: | ||
https://opencollective.com/editorjs | ||
--> |
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,20 +1,19 @@ | ||
--- | ||
name: Feature request | ||
about: Suggest an idea for this project | ||
about: Suggest an idea to improve Editor.js | ||
title: "\U0001F4A1" | ||
labels: feature | ||
assignees: '' | ||
|
||
--- | ||
|
||
**Is your feature request related to a problem? Please describe.** | ||
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] | ||
1. Describe a problem. | ||
|
||
**Describe the solution you'd like** | ||
A clear and concise description of what you want to happen. | ||
2. Describe the solution you'd like. Mockups are welcome. | ||
|
||
**Describe alternatives you've considered** | ||
A clear and concise description of any alternative solutions or features you've considered. | ||
3. Are there any alternatives? | ||
|
||
**Additional context** | ||
Add any other context or screenshots about the feature request here. | ||
<!-- | ||
🤫 If you like Editor.js, please consider supporting us via OpenCollective: | ||
https://opencollective.com/editorjs | ||
--> |
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,24 @@ | ||
name: ESLint CodeX | ||
|
||
on: [pull_request] | ||
|
||
jobs: | ||
lint: | ||
name: ESlint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Cache node modules | ||
uses: actions/cache@v1 | ||
with: | ||
path: node_modules | ||
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }} | ||
restore-keys: | | ||
${{ runner.OS }}-build-${{ env.cache-name }}- | ||
${{ runner.OS }}-build- | ||
${{ runner.OS }}- | ||
- run: yarn install | ||
|
||
- run: yarn lint |
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.