Skip to content

Commit 0cd8716

Browse files
committed
ESBuild
1 parent 04dc389 commit 0cd8716

28 files changed

+5504
-1075
lines changed

.editorconfig

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,3 @@ quote_type = double
1313
[*.yml]
1414
indent_style = space
1515
indent_size = 2
16-
17-
[*.md]
18-
max_line_length = off
19-
trim_trailing_whitespace = false

.eslintrc.cjs

Lines changed: 92 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +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+
};

.github/CODE_OF_CONDUCT.md

Lines changed: 30 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@
88

99
## Our Pledge
1010

11-
We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, caste, color, religion, or sexual identity and orientation.
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.
1215

1316
We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
1417

@@ -32,55 +35,70 @@ Examples of unacceptable behavior include:
3235

3336
## Enforcement Responsibilities
3437

35-
Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
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.
3640

37-
Community leaders 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, and will communicate reasons for moderation decisions when appropriate.
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.
3843

3944
## Scope
4045

41-
This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
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.
4249

4350
## Enforcement
4451

45-
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at [[email protected]](mailto:[email protected]). All complaints will be reviewed and investigated promptly and fairly.
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.
4655

4756
All community leaders are obligated to respect the privacy and security of the reporter of any incident.
4857

4958
## Enforcement Guidelines
5059

51-
Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
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:
5262

5363
### 1. Correction
5464

5565
**Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
5666

57-
**Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
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.
5869

5970
### 2. Warning
6071

6172
**Community Impact**: A violation through a single incident or series of actions.
6273

63-
**Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
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.
6477

6578
### 3. Temporary Ban
6679

6780
**Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
6881

69-
**Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
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.
7085

7186
### 4. Permanent Ban
7287

73-
**Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
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.
7490

7591
**Consequence**: A permanent ban from any sort of public interaction within the community.
7692

7793
## Attribution
7894

79-
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.1, available at [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
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].
8097

8198
Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder][mozilla coc].
8299

83-
For answers to common questions about this code of conduct, see the FAQ at [https://www.contributor-covenant.org/faq][faq]. Translations are available at [https://www.contributor-covenant.org/translations][translations].
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].
84102

85103
[homepage]: https://www.contributor-covenant.org
86104
[v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html

.github/CONTRIBUTING.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,13 @@ If you wish to contribute to the **Float Toolkit for React** source code, feel f
88

99
## Steps
1010

11-
1. Refer to the [documentation](https://float-toolkit.web.app) and [README file](https://github.com/float-toolkit/react/blob/master/README.md) to make sure the error is actually a bug and not a mistake of your own.
11+
1. Refer to the [documentation](https://float-toolkit.web.app) and
12+
[README file](https://github.com/float-toolkit/react/blob/master/README.md) to make sure the error is actually a bug and not a
13+
mistake of your own.
1214
1. Make sure the issue hasn't already been reported or suggested.
13-
1. Fork and clone the repository, and checkout the corresponding branch (`docs` for documentation, `master` for anything else). **DO NOT** modify the `stable` branch.
15+
1. Fork and clone the repository, and checkout the corresponding branch (`docs` for documentation, `master` for anything else). **DO
16+
NOT** modify the `stable` branch.
1417
1. Make your changes (add or modify tests and documentation comments as necessary to cover your changes).
15-
1. Run `npm run build` (or VSCode task _NPM: Build_) to run the tests and build the package (you can use `npm link` to try it locally).
18+
1. Run `npm run build` (or VSCode task _NPM: Build_) to run the tests and build the package (you can use `npm link` to try it
19+
locally).
1620
1. [Submit a pull request](https://github.com/float-toolkit/react/compare).

.github/ISSUE_TEMPLATE.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66

77
## Before you go ANY further...
88

9-
- Refer to the [documentation](https://float-toolkit.web.app) and [README file](https://github.com/float-toolkit/react/blob/master/README.md) to make sure the error is actually a bug and not a mistake of your own.
10-
- Please help us process your issue efficiently and in detail by using one of our [issue templates](https://github.com/float-toolkit/react/issues/new/choose).
9+
- Refer to the [documentation](https://float-toolkit.web.app) and
10+
[README file](https://github.com/float-toolkit/react/blob/master/README.md) to make sure the error is actually a bug and not a
11+
mistake of your own.
12+
- Please help us process your issue efficiently and in detail by using one of our
13+
[issue templates](https://github.com/float-toolkit/react/issues/new/choose).
1114

1215
Thank you for contributing to the **Float Toolkit** codebase!

.github/ISSUE_TEMPLATE/bug-report.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ body:
2828
id: package-version
2929
attributes:
3030
label: Package version
31-
description: Which package version are you using? You can check it in your `package.json` file or by running `npm list <package>`.
31+
description:
32+
Which package version are you using? You can check it in your `package.json` file or by running `npm list <package>`.
3233
placeholder: X.X.X
3334
validations:
3435
required: true
@@ -97,9 +98,14 @@ body:
9798
options:
9899
- label: This is a bug, not you [asking for support](https://github.com/float-toolkit/react/discussions/categories/q-a).
99100
required: true
100-
- label: You have read the [documentation](https://float-toolkit.web.app) and [README file](https://github.com/float-toolkit/react/blob/master/README.md), and made sure this is not intended behavior.
101+
- label:
102+
You have read the [documentation](https://float-toolkit.web.app) and [README
103+
file](https://github.com/float-toolkit/react/blob/master/README.md), and made sure this is not intended behavior.
101104
required: true
102105
- label: The issue has not already been reported.
103106
required: true
104-
- label: You are following the project's [Code of Conduct](https://github.com/float-toolkit/react/blob/master/.github/CODE_OF_CONDUCT.md) and [contribution guidelines](https://github.com/float-toolkit/react/blob/master/.github/CONTRIBUTING.md).
107+
- label:
108+
You are following the project's [Code of
109+
Conduct](https://github.com/float-toolkit/react/blob/master/.github/CODE_OF_CONDUCT.md) and [contribution
110+
guidelines](https://github.com/float-toolkit/react/blob/master/.github/CONTRIBUTING.md).
105111
required: true

.github/ISSUE_TEMPLATE/feature-request.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,21 @@ body:
5959
label: Contribution guidelines
6060
description: By submitting this issue, you agree that...
6161
options:
62-
- label: This is a suggestion, not you [asking for support](https://github.com/float-toolkit/react/discussions/categories/q-a).
62+
- label:
63+
This is a suggestion, not you [asking for support](https://github.com/float-toolkit/react/discussions/categories/q-a).
6364
required: true
64-
- label: You have read the [documentation](https://float-toolkit.web.app) and [README file](https://github.com/float-toolkit/react/blob/master/README.md) and made sure this is not already implemented.
65+
- label:
66+
You have read the [documentation](https://float-toolkit.web.app) and [README
67+
file](https://github.com/float-toolkit/react/blob/master/README.md) and made sure this is not already implemented.
6568
required: true
6669
- label: The issue has not already been suggested.
6770
required: true
6871
- label: This new feature will not break any existing code.
6972
required: true
7073
- label: This feature fits with Float Toolkit's philosophy and goals.
7174
required: true
72-
- label: You are following the project's [Code of Conduct](https://github.com/float-toolkit/react/blob/master/.github/CODE_OF_CONDUCT.md) and [contribution guidelines](https://github.com/float-toolkit/react/blob/master/.github/CONTRIBUTING.md).
75+
- label:
76+
You are following the project's [Code of
77+
Conduct](https://github.com/float-toolkit/react/blob/master/.github/CODE_OF_CONDUCT.md) and [contribution
78+
guidelines](https://github.com/float-toolkit/react/blob/master/.github/CONTRIBUTING.md).
7379
required: true

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@
66

77
## First things first...
88

9-
- Make sure to read the [contribution guidelines](https://github.com/float-toolkit/react/blob/master/.github/CONTRIBUTING.md) before you go any further.
10-
- Is there an issue related to your changes? If so, link to it here. If not, create an issue before submitting your pull request in order to discuss.
9+
- Make sure to read the [contribution guidelines](https://github.com/float-toolkit/react/blob/master/.github/CONTRIBUTING.md)
10+
before you go any further.
11+
- Is there an issue related to your changes? If so, link to it here. If not, create an issue before submitting your pull request in
12+
order to discuss.
1113

1214
## (How) do your changes work?
1315

.gitignore

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@
88
# testing and coverage
99
/coverage
1010

11+
# bun (not production ready)
12+
bun.lockb
13+
bunfig.toml
14+
node_modules.bun
15+
1116
# IDEs and editors
1217
/.idea
1318
.project
@@ -26,5 +31,5 @@
2631
.history/*
2732

2833
# misc
29-
npm-debug.log
30-
yarn-error.log
34+
*-debug.log
35+
*-error.log

.npmignore

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@
1111
vitest.config.ts
1212
/coverage
1313

14+
# bun (not production ready)
15+
bun.lockb
16+
bunfig.toml
17+
node_modules.bun
18+
1419
# IDEs and editors
1520
/.idea
1621
.project
@@ -21,6 +26,7 @@ vitest.config.ts
2126
*.sublime-workspace
2227
/.vscode
2328
.editorconfig
29+
.eslintrc.cjs
30+
.prettierrc
2431
.prettierignore
25-
tsconfig.json
26-
tsconfig.test.json
32+
tsconfig*.json

0 commit comments

Comments
 (0)