Skip to content

Commit d480c9e

Browse files
committed
VSCode tasks / Use default export
1 parent 0cd8716 commit d480c9e

32 files changed

+10938
-10957
lines changed

.eslintrc.cjs

Lines changed: 92 additions & 92 deletions
Original file line numberDiff line numberDiff line change
@@ -1,92 +1,92 @@
1-
/**
2-
* @type {import("eslint").Linter.Config}
3-
*/
4-
module.exports = {
5-
root: true,
6-
env: {
7-
es6: true,
8-
},
9-
10-
extends: [
11-
"eslint:recommended",
12-
"plugin:import/typescript",
13-
"google",
14-
"plugin:react/recommended",
15-
"plugin:react/jsx-runtime",
16-
"plugin:react-hooks/recommended",
17-
"plugin:@typescript-eslint/recommended",
18-
"plugin:prettier/recommended",
19-
],
20-
21-
parser: "@typescript-eslint/parser",
22-
parserOptions: {
23-
project: ["tsconfig.eslint.json"],
24-
sourceType: "module",
25-
ecmaVersion: "latest",
26-
},
27-
ignorePatterns: ["/dist/**/*", "/typings/**/*", "/docs/**/*", "/coverage/**/*"],
28-
plugins: ["@typescript-eslint", "react", "react-hooks", "import", "prettier"],
29-
30-
rules: {
31-
"@typescript-eslint/explicit-function-return-type": "error",
32-
"@typescript-eslint/no-empty-interface": "off",
33-
"@typescript-eslint/no-explicit-any": "off",
34-
"@typescript-eslint/no-namespace": "off",
35-
"@typescript-eslint/no-non-null-assertion": "off",
36-
"@typescript-eslint/no-unused-vars": "off",
37-
"@typescript-eslint/no-var-requires": "off",
38-
39-
"import/default": "error",
40-
"import/export": "error",
41-
"import/named": "off",
42-
"import/namespace": "error",
43-
"import/newline-after-import": "warn",
44-
"import/no-duplicates": "warn",
45-
"import/no-named-as-default": "warn",
46-
"import/no-named-as-default-member": "warn",
47-
"import/no-unresolved": "off",
48-
"import/order": "warn",
49-
50-
"new-cap": ["error", { capIsNew: false }],
51-
"no-console": "off",
52-
"no-inner-declarations": "off",
53-
"no-invalid-this": "off",
54-
"prefer-promise-reject-errors": "off",
55-
"require-jsdoc": "off",
56-
"spaced-comment": ["error", "always", { markers: ["/"] }],
57-
"valid-jsdoc": "off",
58-
59-
"prettier/prettier": [
60-
"warn",
61-
{},
62-
{
63-
usePrettierrc: true,
64-
},
65-
],
66-
},
67-
68-
overrides: [
69-
{
70-
files: ["./src/__tests__/**/*.ts", "./.eslintrc.cjs", "./jest.config.js", "./scripts/**/*.js"],
71-
72-
env: {
73-
es6: true,
74-
node: true,
75-
},
76-
},
77-
78-
{
79-
files: "./scripts/**/*.js",
80-
81-
rules: {
82-
"@typescript-eslint/explicit-function-return-type": "off",
83-
},
84-
},
85-
],
86-
87-
settings: {
88-
react: {
89-
version: "detect",
90-
},
91-
},
92-
};
1+
/**
2+
* @type {import("eslint").Linter.Config}
3+
*/
4+
module.exports = {
5+
root: true,
6+
env: {
7+
es6: true,
8+
},
9+
10+
extends: [
11+
"eslint:recommended",
12+
"plugin:import/typescript",
13+
"google",
14+
"plugin:react/recommended",
15+
"plugin:react/jsx-runtime",
16+
"plugin:react-hooks/recommended",
17+
"plugin:@typescript-eslint/recommended",
18+
"plugin:prettier/recommended",
19+
],
20+
21+
parser: "@typescript-eslint/parser",
22+
parserOptions: {
23+
project: ["tsconfig.eslint.json"],
24+
sourceType: "module",
25+
ecmaVersion: "latest",
26+
},
27+
ignorePatterns: ["/dist/**/*", "/typings/**/*", "/docs/**/*", "/coverage/**/*"],
28+
plugins: ["@typescript-eslint", "react", "react-hooks", "import", "prettier"],
29+
30+
rules: {
31+
"@typescript-eslint/explicit-function-return-type": "error",
32+
"@typescript-eslint/no-empty-interface": "off",
33+
"@typescript-eslint/no-explicit-any": "off",
34+
"@typescript-eslint/no-namespace": "off",
35+
"@typescript-eslint/no-non-null-assertion": "off",
36+
"@typescript-eslint/no-unused-vars": "off",
37+
"@typescript-eslint/no-var-requires": "off",
38+
39+
"import/default": "error",
40+
"import/export": "error",
41+
"import/named": "off",
42+
"import/namespace": "error",
43+
"import/newline-after-import": "warn",
44+
"import/no-duplicates": "warn",
45+
"import/no-named-as-default": "warn",
46+
"import/no-named-as-default-member": "warn",
47+
"import/no-unresolved": "off",
48+
"import/order": "warn",
49+
50+
"new-cap": ["error", { capIsNew: false }],
51+
"no-console": "off",
52+
"no-inner-declarations": "off",
53+
"no-invalid-this": "off",
54+
"prefer-promise-reject-errors": "off",
55+
"require-jsdoc": "off",
56+
"spaced-comment": ["error", "always", { markers: ["/"] }],
57+
"valid-jsdoc": "off",
58+
59+
"prettier/prettier": [
60+
"warn",
61+
{},
62+
{
63+
usePrettierrc: true,
64+
},
65+
],
66+
},
67+
68+
overrides: [
69+
{
70+
files: ["./src/__tests__/**/*.ts", "./.eslintrc.cjs", "./jest.config.js", "./scripts/**/*.js"],
71+
72+
env: {
73+
es6: true,
74+
node: true,
75+
},
76+
},
77+
78+
{
79+
files: "./scripts/**/*.js",
80+
81+
rules: {
82+
"@typescript-eslint/explicit-function-return-type": "off",
83+
},
84+
},
85+
],
86+
87+
settings: {
88+
react: {
89+
version: "detect",
90+
},
91+
},
92+
};

.github/CODE_OF_CONDUCT.md

Lines changed: 107 additions & 107 deletions
Original file line numberDiff line numberDiff line change
@@ -1,107 +1,107 @@
1-
<div align="center" style="margin-bottom: 0.5rem">
2-
<a href="https://www.contributor-covenant.org/" title="Contributor Covenant homepage">
3-
<img src="https://raw.githubusercontent.com/EthicalSource/contributor_covenant/HEAD/static/images/logo-inverted.svg" width="50" />
4-
</a>
5-
</div>
6-
7-
<h1 align="center">Contributor Covenant Code of Conduct</h1>
8-
9-
## Our Pledge
10-
11-
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone,
12-
regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level
13-
of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity
14-
and orientation.
15-
16-
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
17-
18-
## Our Standards
19-
20-
Examples of behavior that contributes to a positive environment for our community include:
21-
22-
- Demonstrating empathy and kindness toward other people
23-
- Being respectful of differing opinions, viewpoints, and experiences
24-
- Giving and gracefully accepting constructive feedback
25-
- Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
26-
- Focusing on what is best not just for us as individuals, but for the overall community
27-
28-
Examples of unacceptable behavior include:
29-
30-
- The use of sexualized language or imagery, and sexual attention or advances of any kind
31-
- Trolling, insulting or derogatory comments, and personal or political attacks
32-
- Public or private harassment
33-
- Publishing others' private information, such as a physical or email address, without their explicit permission
34-
- Other conduct which could reasonably be considered inappropriate in a professional setting
35-
36-
## Enforcement Responsibilities
37-
38-
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and
39-
fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
40-
41-
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other
42-
contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
43-
44-
## Scope
45-
46-
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the
47-
community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official
48-
social media account, or acting as an appointed representative at an online or offline event.
49-
50-
## Enforcement
51-
52-
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for
53-
enforcement at [[email protected]](mailto:[email protected]). All complaints will be reviewed and investigated promptly and
54-
fairly.
55-
56-
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
57-
58-
## Enforcement Guidelines
59-
60-
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation
61-
of this Code of Conduct:
62-
63-
### 1. Correction
64-
65-
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
66-
67-
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an
68-
explanation of why the behavior was inappropriate. A public apology may be requested.
69-
70-
### 2. Warning
71-
72-
**Community Impact**: A violation through a single incident or series of actions.
73-
74-
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited
75-
interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in
76-
community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
77-
78-
### 3. Temporary Ban
79-
80-
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
81-
82-
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of
83-
time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of
84-
Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
85-
86-
### 4. Permanent Ban
87-
88-
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior,
89-
harassment of an individual, or aggression toward or disparagement of classes of individuals.
90-
91-
**Consequence**: A permanent ban from any sort of public interaction within the community.
92-
93-
## Attribution
94-
95-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.1, available at
96-
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
97-
98-
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder][mozilla coc].
99-
100-
For answers to common questions about this code of conduct, see the FAQ at [https://www.contributor-covenant.org/faq][faq].
101-
Translations are available at [https://www.contributor-covenant.org/translations][translations].
102-
103-
[homepage]: https://www.contributor-covenant.org
104-
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
105-
[mozilla coc]: https://github.com/mozilla/diversity
106-
[faq]: https://www.contributor-covenant.org/faq
107-
[translations]: https://www.contributor-covenant.org/translations
1+
<div align="center" style="margin-bottom: 0.5rem">
2+
<a href="https://www.contributor-covenant.org/" title="Contributor Covenant homepage">
3+
<img src="https://raw.githubusercontent.com/EthicalSource/contributor_covenant/HEAD/static/images/logo-inverted.svg" width="50" />
4+
</a>
5+
</div>
6+
7+
<h1 align="center">Contributor Covenant Code of Conduct</h1>
8+
9+
## Our Pledge
10+
11+
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone,
12+
regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level
13+
of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity
14+
and orientation.
15+
16+
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
17+
18+
## Our Standards
19+
20+
Examples of behavior that contributes to a positive environment for our community include:
21+
22+
- Demonstrating empathy and kindness toward other people
23+
- Being respectful of differing opinions, viewpoints, and experiences
24+
- Giving and gracefully accepting constructive feedback
25+
- Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
26+
- Focusing on what is best not just for us as individuals, but for the overall community
27+
28+
Examples of unacceptable behavior include:
29+
30+
- The use of sexualized language or imagery, and sexual attention or advances of any kind
31+
- Trolling, insulting or derogatory comments, and personal or political attacks
32+
- Public or private harassment
33+
- Publishing others' private information, such as a physical or email address, without their explicit permission
34+
- Other conduct which could reasonably be considered inappropriate in a professional setting
35+
36+
## Enforcement Responsibilities
37+
38+
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and
39+
fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
40+
41+
Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other
42+
contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
43+
44+
## Scope
45+
46+
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the
47+
community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official
48+
social media account, or acting as an appointed representative at an online or offline event.
49+
50+
## Enforcement
51+
52+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for
53+
enforcement at [[email protected]](mailto:[email protected]). All complaints will be reviewed and investigated promptly and
54+
fairly.
55+
56+
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
57+
58+
## Enforcement Guidelines
59+
60+
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation
61+
of this Code of Conduct:
62+
63+
### 1. Correction
64+
65+
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
66+
67+
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an
68+
explanation of why the behavior was inappropriate. A public apology may be requested.
69+
70+
### 2. Warning
71+
72+
**Community Impact**: A violation through a single incident or series of actions.
73+
74+
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited
75+
interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in
76+
community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
77+
78+
### 3. Temporary Ban
79+
80+
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
81+
82+
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of
83+
time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of
84+
Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
85+
86+
### 4. Permanent Ban
87+
88+
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior,
89+
harassment of an individual, or aggression toward or disparagement of classes of individuals.
90+
91+
**Consequence**: A permanent ban from any sort of public interaction within the community.
92+
93+
## Attribution
94+
95+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.1, available at
96+
[https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
97+
98+
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder][mozilla coc].
99+
100+
For answers to common questions about this code of conduct, see the FAQ at [https://www.contributor-covenant.org/faq][faq].
101+
Translations are available at [https://www.contributor-covenant.org/translations][translations].
102+
103+
[homepage]: https://www.contributor-covenant.org
104+
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
105+
[mozilla coc]: https://github.com/mozilla/diversity
106+
[faq]: https://www.contributor-covenant.org/faq
107+
[translations]: https://www.contributor-covenant.org/translations

0 commit comments

Comments
 (0)