Skip to content

Commit 63eeec0

Browse files
neSpeccgohaberegtasuku-sathul7744talyguryn
authored
Release / 2.18 (codex-team#1181)
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]>
1 parent 4ead91f commit 63eeec0

File tree

106 files changed

+5698
-3625
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

106 files changed

+5698
-3625
lines changed

.eslintignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
*.d.ts
3+
src/components/tools/paragraph
4+
src/polyfills.ts

.eslintrc

+42-89
Original file line numberDiff line numberDiff line change
@@ -1,92 +1,45 @@
11
{
2-
/** Enable ES6 features */
3-
"parserOptions": {
4-
"ecmaVersion": 2017,
5-
"sourceType": "module"
6-
},
7-
"rules": {
8-
9-
"arrow-spacing": [2, {
10-
"before": true,
11-
"after": true
12-
}],
13-
14-
/** Variables */
15-
"no-catch-shadow": 2,
16-
"no-delete-var": 2,
17-
"no-label-var": 2,
18-
"no-shadow-restricted-names": 2,
19-
"no-shadow": 2,
20-
"no-undef-init": 2,
21-
"no-undef": 2,
22-
"no-unused-vars": 0,
23-
24-
/** Style */
25-
"array-bracket-spacing": [2, "never", {
26-
"singleValue": true,
27-
"objectsInArrays": true,
28-
"arraysInArrays": true
29-
}],
30-
"quotes": [2, "single", {
31-
"avoidEscape": true,
32-
"allowTemplateLiterals": true
33-
}],
34-
"eqeqeq": 0,
35-
"brace-style": [2, "1tbs"],
36-
"comma-spacing": [2, {
37-
"before": false,
38-
"after": true
39-
}],
40-
"comma-style": [2, "last"],
41-
"eol-last": 0,
42-
"no-nested-ternary": 1,
43-
"no-trailing-spaces": 2,
44-
"no-mixed-spaces-and-tabs": 2,
45-
"padded-blocks": [2, "never"],
46-
"space-before-blocks": 1,
47-
"space-before-function-paren": [1, {
48-
"anonymous": "always",
49-
"named": "never"
50-
}],
51-
"spaced-comment": [2, "always", {
52-
"exceptions": ["-", "+"],
53-
"markers": ["=", "!"]
54-
}],
55-
"semi": [2, "always"],
56-
"indent": [2, 2, {
57-
"SwitchCase": 1
58-
}],
59-
"camelcase": [2, {
60-
"properties": "always"
61-
}],
62-
"newline-after-var": [1, "always"]
63-
64-
},
65-
"globals":{
66-
"document": true,
67-
"module": true,
68-
"require": true,
69-
"window": true,
70-
"console" : true,
71-
"codex": true,
72-
"VERSION" : true,
73-
"Promise" : true,
74-
"MutationObserver": true,
75-
"FormData": true,
76-
"XMLHttpRequest": true,
77-
"ActiveXObject": true,
78-
"RegExp": true,
79-
"Module": true,
80-
"Node": true,
81-
"Element": true,
82-
"DocumentFragment": true,
83-
"Proxy": true,
84-
"Symbol": true,
85-
"$": true,
86-
"_": true,
87-
"setTimeout": true,
88-
"process": true,
89-
"__dirname": true,
90-
"Map": true
2+
"extends": [
3+
"codex"
4+
],
5+
"rules": {
6+
/**
7+
* Temporary suppress some errors. We need to fix them partially in next patches
8+
*/
9+
"import/no-duplicates": ["warn"],
10+
},
11+
"settings": {
12+
"jsdoc": {
13+
"mode": "typescript"
9114
}
15+
},
16+
"globals": {
17+
"Node": true,
18+
"Range": true,
19+
"HTMLElement": true,
20+
"HTMLDivElement": true,
21+
"Element": true,
22+
"Selection": true,
23+
"SVGElement": true,
24+
"Text": true,
25+
"InsertPosition": true,
26+
"PropertyKey": true,
27+
"MouseEvent": true,
28+
"TouchEvent": true,
29+
"KeyboardEvent": true,
30+
"ClipboardEvent": true,
31+
"DragEvent": true,
32+
"Event": true,
33+
"EventTarget": true,
34+
"Document": true,
35+
"NodeList": true,
36+
"File": true,
37+
"FileList": true,
38+
"MutationRecord": true,
39+
"AddEventListenerOptions": true,
40+
"DataTransfer": true,
41+
"DOMRect": true,
42+
"ClientRect": true,
43+
"ArrayLike": true
44+
}
9245
}

.github/CODE_OF_CONDUCT.md

+76
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age, body
8+
size, disability, ethnicity, sex characteristics, gender identity and expression,
9+
level of experience, education, socio-economic status, nationality, personal
10+
appearance, race, religion, or sexual identity and orientation.
11+
12+
## Our Standards
13+
14+
Examples of behavior that contributes to creating a positive environment
15+
include:
16+
17+
* Using welcoming and inclusive language
18+
* Being respectful of differing viewpoints and experiences
19+
* Gracefully accepting constructive criticism
20+
* Focusing on what is best for the community
21+
* Showing empathy towards other community members
22+
23+
Examples of unacceptable behavior by participants include:
24+
25+
* The use of sexualized language or imagery and unwelcome sexual attention or
26+
advances
27+
* Trolling, insulting/derogatory comments, and personal or political attacks
28+
* Public or private harassment
29+
* Publishing others' private information, such as a physical or electronic
30+
address, without explicit permission
31+
* Other conduct which could reasonably be considered inappropriate in a
32+
professional setting
33+
34+
## Our Responsibilities
35+
36+
Project maintainers are responsible for clarifying the standards of acceptable
37+
behavior and are expected to take appropriate and fair corrective action in
38+
response to any instances of unacceptable behavior.
39+
40+
Project maintainers have the right and responsibility to remove, edit, or
41+
reject comments, commits, code, wiki edits, issues, and other contributions
42+
that are not aligned to this Code of Conduct, or to ban temporarily or
43+
permanently any contributor for other behaviors that they deem inappropriate,
44+
threatening, offensive, or harmful.
45+
46+
## Scope
47+
48+
This Code of Conduct applies both within project spaces and in public spaces
49+
when an individual is representing the project or its community. Examples of
50+
representing a project or community include using an official project e-mail
51+
address, posting via an official social media account, or acting as an appointed
52+
representative at an online or offline event. Representation of a project may be
53+
further defined and clarified by project maintainers.
54+
55+
## Enforcement
56+
57+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
58+
reported by contacting the project team at [email protected]. All
59+
complaints will be reviewed and investigated and will result in a response that
60+
is deemed necessary and appropriate to the circumstances. The project team is
61+
obligated to maintain confidentiality with regard to the reporter of an incident.
62+
Further details of specific enforcement policies may be posted separately.
63+
64+
Project maintainers who do not follow or enforce the Code of Conduct in good
65+
faith may face temporary or permanent repercussions as determined by other
66+
members of the project's leadership.
67+
68+
## Attribution
69+
70+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71+
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
72+
73+
[homepage]: https://www.contributor-covenant.org
74+
75+
For answers to common questions about this code of conduct, see
76+
https://www.contributor-covenant.org/faq

.github/ISSUE_TEMPLATE/bug_report.md

+17-25
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,30 @@
11
---
22
name: Bug report
3-
about: Create a report to help us improve
4-
title: "⚠️"
3+
about: Create a report to help us improve Editor.js
4+
title: "[Bug]"
55
labels: bug
66
assignees: ''
77

88
---
99

10-
**Describe the bug**
11-
A clear and concise description of what the bug is.
10+
Describe a bug.
1211

13-
**To Reproduce**
14-
Steps to reproduce the behavior:
15-
1. Go to '...'
16-
2. Click on '....'
17-
3. Scroll down to '....'
18-
4. See error
12+
Steps to reproduce:
13+
1. Go to …
14+
2. Click on …
15+
3.
1916

20-
**Expected behavior**
21-
A clear and concise description of what you expected to happen.
17+
Expected behavior:
2218

23-
**Screenshots**
24-
If applicable, add screenshots to help explain your problem.
19+
Screenshots:
2520

26-
**Desktop (please complete the following information):**
27-
- OS: [e.g. iOS]
28-
- Browser [e.g. chrome, safari]
29-
- Version [e.g. 22]
21+
Device, Browser, OS:
3022

31-
**Smartphone (please complete the following information):**
32-
- Device: [e.g. iPhone6]
33-
- OS: [e.g. iOS8.1]
34-
- Browser [e.g. stock browser, safari]
35-
- Version [e.g. 22]
23+
Editor.js version:
3624

37-
**Additional context**
38-
Add any other context about the problem here.
25+
Plugins you use with their versions:
26+
27+
<!--
28+
🤫 If you like Editor.js, please consider supporting us via OpenCollective:
29+
https://opencollective.com/editorjs
30+
-->

.github/ISSUE_TEMPLATE/discussion.md

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
name: Discussion
3+
about: Any question about the Editor.js to discuss
4+
title: ''
5+
labels: discussion
6+
assignees: ''
7+
8+
---
9+
10+
The question.
11+
12+
Why and how the question has come up.
13+
14+
<!--
15+
🤫 If you like Editor.js, please consider supporting us via OpenCollective:
16+
https://opencollective.com/editorjs
17+
-->
+8-9
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
---
22
name: Feature request
3-
about: Suggest an idea for this project
3+
about: Suggest an idea to improve Editor.js
44
title: "\U0001F4A1"
55
labels: feature
66
assignees: ''
77

88
---
99

10-
**Is your feature request related to a problem? Please describe.**
11-
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
10+
1. Describe a problem.
1211

13-
**Describe the solution you'd like**
14-
A clear and concise description of what you want to happen.
12+
2. Describe the solution you'd like. Mockups are welcome.
1513

16-
**Describe alternatives you've considered**
17-
A clear and concise description of any alternative solutions or features you've considered.
14+
3. Are there any alternatives?
1815

19-
**Additional context**
20-
Add any other context or screenshots about the feature request here.
16+
<!--
17+
🤫 If you like Editor.js, please consider supporting us via OpenCollective:
18+
https://opencollective.com/editorjs
19+
-->

.github/workflows/eslint.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: ESLint CodeX
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
lint:
7+
name: ESlint
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
12+
- name: Cache node modules
13+
uses: actions/cache@v1
14+
with:
15+
path: node_modules
16+
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}
17+
restore-keys: |
18+
${{ runner.OS }}-build-${{ env.cache-name }}-
19+
${{ runner.OS }}-build-
20+
${{ runner.OS }}-
21+
22+
- run: yarn install
23+
24+
- run: yarn lint

dist/editor.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)