Skip to content

Commit a0ed86b

Browse files
author
Tomáš Winkler
authored
Merge pull request #37 from kontent-ai/migration
Migration
2 parents 8aafa51 + 1d02293 commit a0ed86b

File tree

18 files changed

+256
-217
lines changed

18 files changed

+256
-217
lines changed

.eslintrc.js

Lines changed: 156 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,156 @@
1+
/*
2+
👋 Hi! This file was autogenerated by tslint-to-eslint-config.
3+
https://github.com/typescript-eslint/tslint-to-eslint-config
4+
5+
It represents the closest reasonable ESLint configuration to this
6+
project's original TSLint configuration.
7+
8+
We recommend eventually switching this configuration to extend from
9+
the recommended rulesets in typescript-eslint.
10+
https://github.com/typescript-eslint/tslint-to-eslint-config/blob/master/docs/FAQs.md
11+
12+
Happy linting! 💖
13+
*/
14+
module.exports = {
15+
"env": {
16+
"browser": true,
17+
"es6": true,
18+
"node": true
19+
},
20+
"extends": [
21+
"prettier"
22+
],
23+
"parser": "@typescript-eslint/parser",
24+
"parserOptions": {
25+
"project": "tsconfig.json",
26+
"sourceType": "module"
27+
},
28+
"plugins": [
29+
"@typescript-eslint"
30+
],
31+
"root": true,
32+
"rules": {
33+
"@typescript-eslint/consistent-type-definitions": "error",
34+
"@typescript-eslint/dot-notation": "off",
35+
"@typescript-eslint/explicit-member-accessibility": [
36+
"off",
37+
{
38+
"accessibility": "explicit"
39+
}
40+
],
41+
"@typescript-eslint/member-delimiter-style": [
42+
"error",
43+
{
44+
"multiline": {
45+
"delimiter": "semi",
46+
"requireLast": true
47+
},
48+
"singleline": {
49+
"delimiter": "semi",
50+
"requireLast": false
51+
}
52+
}
53+
],
54+
"@typescript-eslint/member-ordering": "error",
55+
"@typescript-eslint/no-empty-function": "off",
56+
"@typescript-eslint/no-empty-interface": "off",
57+
"@typescript-eslint/no-inferrable-types": [
58+
"off",
59+
{
60+
"ignoreParameters": true
61+
}
62+
],
63+
"@typescript-eslint/no-shadow": [
64+
"off",
65+
{
66+
"hoist": "all"
67+
}
68+
],
69+
"@typescript-eslint/no-unused-expressions": "off",
70+
"@typescript-eslint/prefer-function-type": "error",
71+
"@typescript-eslint/semi": [
72+
"error"
73+
],
74+
"@typescript-eslint/type-annotation-spacing": "error",
75+
"@typescript-eslint/unified-signatures": "error",
76+
"brace-style": [
77+
"error",
78+
"1tbs"
79+
],
80+
"curly": "error",
81+
"dot-notation": "off",
82+
"eol-last": "error",
83+
"eqeqeq": [
84+
"error",
85+
"smart"
86+
],
87+
"guard-for-in": "error",
88+
"id-denylist": "off",
89+
"id-match": "off",
90+
"indent": "off",
91+
"max-len": [
92+
"error",
93+
{
94+
"code": 250
95+
}
96+
],
97+
"no-bitwise": "error",
98+
"no-caller": "error",
99+
"no-console": [
100+
"error",
101+
{
102+
"allow": [
103+
"log",
104+
"warn",
105+
"dir",
106+
"timeLog",
107+
"assert",
108+
"clear",
109+
"count",
110+
"countReset",
111+
"group",
112+
"groupEnd",
113+
"table",
114+
"dirxml",
115+
"error",
116+
"groupCollapsed",
117+
"Console",
118+
"profile",
119+
"profileEnd",
120+
"timeStamp",
121+
"context"
122+
]
123+
}
124+
],
125+
"no-debugger": "error",
126+
"no-empty": "off",
127+
"no-empty-function": "off",
128+
"no-eval": "error",
129+
"no-fallthrough": "error",
130+
"no-new-wrappers": "error",
131+
"no-redeclare": "error",
132+
"no-restricted-imports": "error",
133+
"no-shadow": "off",
134+
"no-throw-literal": "error",
135+
"no-trailing-spaces": "error",
136+
"no-underscore-dangle": "off",
137+
"no-unused-expressions": "off",
138+
"no-unused-labels": "error",
139+
"no-var": "error",
140+
"prefer-const": "error",
141+
"quotes": "off",
142+
"radix": "error",
143+
"semi": "off",
144+
"spaced-comment": [
145+
"error",
146+
"always",
147+
{
148+
"markers": [
149+
"/"
150+
]
151+
}
152+
],
153+
"no-multi-spaces": ["error"],
154+
"no-irregular-whitespace": ["error"]
155+
}
156+
};

.github/CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# Users referenced in this file will automatically be requested as reviewers for PRs that modify the given paths.
22
# See https://help.github.com/articles/about-code-owners/
33

4-
* @winklertomas @Kentico/developer-experience
4+
* @winklertomas @kontent-ai/js-maintainers

.husky/pre-commit

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

CODE_OF_CONDUCT.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ This Code of Conduct applies both within project spaces and in public spaces whe
3434

3535
## Enforcement
3636

37-
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at devrel@kentico.com. The project team will review and investigate all complaints, and will respond in a way that it deems 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.
37+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at devrel@kontent.ai. The project team will review and investigate all complaints, and will respond in a way that it deems 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.
3838

3939
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.
4040

CONTRIBUTING.md

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,26 +4,24 @@
44
There are many different ways in which you can contribute. One of the easiest ways is simply to use our software and provide us with your feedback through the right channel. You can also help us improve the open-source projects by submitting pull requests with code and documentation changes.
55

66
## Where to get support
7-
Please note that the **level of provided support is always determined by the [LICENSE](LICENSE.md)** of a given open-source project. Also, always make sure you use the **[latest version](../../releases)** of any given OS project. We can't provide any help for older versions. We don't want to make things complicated so we try to take the same approach in all our repositories.
7+
Please note that **level of provided support is always determined by the [LICENSE](LICENSE.md)** of a given open-source project. Also, always make sure you use the **[latest version](../../releases)** of any given OS project. We can't provide any help for older versions. We don't want to make things complicated so we try to take the same approach in all our repositories.
88

9-
### I found a bug in a Kentico's open-source project
9+
### I found a bug in a Kontent.ai open-source project
1010
<img align="right" width="100" height="100" src="https://i.imgur.com/TYIQdpv.png">
1111

1212
Sorry to hear that. Just log a new [GitHub issue](../../issues) and someone will take a look at it. Remember, the more information you provide, the easier it will be to fix the issue. If you feel like it, you can also fix the bug on your own and submit a new pull request.
1313

1414
### I need help with using the projects and/or coding
1515
<img align="right" width="100" height="100" src="https://cdn.sstatic.net/Sites/stackoverflow/company/img/logos/so/so-icon.svg">
1616

17-
To get help with coding and structuring your projects, use [StackOverflow](https://stackoverflow.com/) to ask questions with one of the following tags:
18-
- [`kentico-kontent`](https://stackoverflow.com/questions/tagged/kentico-kontent)
19-
- [`kentico`](https://stackoverflow.com/questions/tagged/kentico)
17+
To get help with coding and structuring your projects, use [StackOverflow](https://stackoverflow.com/) and tag your questions with [`kontent-ai`](https://stackoverflow.com/questions/tagged/kontent-ai) tag.
2018

2119
Our team members and the community monitor these channels on a regular basis.
2220

2321
### I want to report a security bug
2422
<img align="right" width="100" height="100" src="https://i.imgur.com/z82nnJB.png">
2523

26-
Security issues and bugs should be reported privately, via email, to the Kentico Developer Community Team [email protected]. You should receive a response within 24 hours. If for some reason you do not, please follow up via email to ensure we received your original message.
24+
Security issues and bugs should be reported privately, via email, to Kontent.ai Developer Relations Team [email protected]. You should receive a response within 24 hours. If for some reason you do not, send us a follow up email to ensure we received your original message.
2725

2826

2927
### I have an idea for a new feature (or feedback on existing functionality)
@@ -36,7 +34,7 @@ Everybody loves new features! You can submit a new [feature request](../../issue
3634
<img align="right" width="100" height="100" src="https://i.imgur.com/aSeiliy.png">
3735

3836
Unless you're fixing a typo, it's usually a good idea to discuss the feature before you submit a pull request with code changes, so let's start with submitting a new [GitHub issue](../../issues) and discussing the whether it fits the vision of a given project.
39-
You might also read these two blogs posts on contributing code: [Open Source Contribution Etiquette](http://tirania.org/blog/archive/2010/Dec-31.html) by Miguel de Icaza and [Don't "Push" Your Pull Requests](https://www.igvita.com/2011/12/19/dont-push-your-pull-requests/) by Ilya Grigorik. Note that all code submissions will be rigorously reviewed and tested by the Kentico Maintainers teams, and only those that meet an high bar for both quality and design/roadmap appropriateness will be merged into the source.
37+
You might also read these two blogs posts on contributing code: [Open Source Contribution Etiquette](http://tirania.org/blog/archive/2010/Dec-31.html) by Miguel de Icaza and [Don't "Push" Your Pull Requests](https://www.igvita.com/2011/12/19/dont-push-your-pull-requests/) by Ilya Grigorik. Note that all code submissions will be rigorously reviewed and tested by Kontent.ai maintainer teams, and only those that meet an high bar for both quality and design/roadmap appropriateness will be merged into the source.
4038

4139

4240
### Example - process of contribution
@@ -61,10 +59,10 @@ To start with coding, fork the repository you want to contribute to, create a ne
6159
### Feedback
6260
<img align="right" width="100" height="100" src="https://i.imgur.com/ZQfNzJJ.png">
6361

64-
Your pull request will now go through extensive checks by the subject matter experts on our team. Please be patient. Update your pull request according to feedback until it is approved by one of the Kentico maintainers. After that, one of our team members may adjust the branch you merge into based on the expected release schedule.
62+
Your pull request will now go through extensive checks by the subject matter experts on our team. Please be patient. Update your pull request according to feedback until it is approved by one of Kontent.ai maintainers. After that, one of our team members may adjust the branch you merge into based on the expected release schedule.
6563

6664

6765
## Code of Conduct
6866
<img align="right" width="100" height="100" src="https://i.imgur.com/cObdKQy.png">
6967

70-
The Kentico team is committed to fostering a welcoming community, therefore this project has adopted the [Contributor Covenant Code of Conduct](CODE_OF_CONDUCT.md). If you have any additional questions or comments, you can contact us directly at devrel@kentico.com.
68+
The Kontent.ai team is committed to fostering a welcoming community, therefore this project has adopted the [Contributor Covenant Code of Conduct](CODE_OF_CONDUCT.md). If you have any additional questions or comments, you can contact us directly at devrel@kontent.ai.

LICENSE

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019 Kentico
3+
Copyright (c) 2022 Kontent s.r.o.
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal
@@ -10,7 +10,7 @@ copies of the Software, and to permit persons to whom the Software is
1010
furnished to do so, subject to the following conditions:
1111

1212
The above copyright notice and this permission notice shall be included in all
13-
copies or substantial portions of the Software.f
13+
copies or substantial portions of the Software.
1414

1515
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1616
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,

0 commit comments

Comments
 (0)