Skip to content

Commit 2a6e57f

Browse files
committed
chore: rebuild project
1 parent 833101b commit 2a6e57f

File tree

147 files changed

+26047
-2
lines changed

Some content is hidden

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

147 files changed

+26047
-2
lines changed

.config/commitlint.config.mjs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export default { extends: ["@commitlint/config-conventional"] };

.config/cspell.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"version": "0.2",
3+
"language": "en",
4+
"ignoreWords": ["ianvs", "lawlor", "dpcm", "dppx"]
5+
}

.config/eslint.config.mjs

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
import eslint from "@eslint/js";
2+
import prettier from "eslint-plugin-prettier/recommended";
3+
import { globalIgnores } from "eslint/config";
4+
import tseslint from "typescript-eslint";
5+
6+
export default tseslint.config(
7+
eslint.configs.recommended,
8+
tseslint.configs.strictTypeChecked,
9+
tseslint.configs.stylisticTypeChecked,
10+
prettier,
11+
{
12+
languageOptions: {
13+
parserOptions: {
14+
projectService: true,
15+
tsconfigRootDir: import.meta.dirname,
16+
},
17+
},
18+
},
19+
globalIgnores([
20+
"dist/*",
21+
".yarn/*",
22+
"**/eslint.config.[cm]js",
23+
"**/babel.config.js",
24+
"**/metro.config.js",
25+
]),
26+
{
27+
rules: {
28+
"prefer-const": [
29+
"error",
30+
{
31+
destructuring: "all",
32+
},
33+
],
34+
"no-unused-vars": "off",
35+
"@typescript-eslint/no-unused-vars": [
36+
"warn",
37+
{
38+
args: "after-used",
39+
ignoreRestSiblings: true,
40+
argsIgnorePattern: "^_",
41+
},
42+
],
43+
},
44+
},
45+
// Test file specific rules
46+
// These rules are causing false positives with @react-native/testing-library
47+
{
48+
files: ["**/__tests__/**/*", "**/*.test.*", "**/*.spec.*"],
49+
rules: {
50+
"@typescript-eslint/no-unsafe-assignment": "off",
51+
"@typescript-eslint/no-unsafe-member-access": "off",
52+
},
53+
},
54+
);

.config/jest.config.cjs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/* eslint-disable no-undef */
2+
/* eslint-disable @typescript-eslint/no-require-imports */
3+
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
4+
const jestExpo = require("jest-expo/jest-preset");
5+
6+
module.exports = {
7+
...jestExpo,
8+
testPathIgnorePatterns: ["dist/"],
9+
};

.config/jest.setup.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// import { setUpTests } from "react-native-reanimated";
2+
3+
// setUpTests();

.config/prettier.config.mjs

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/**
2+
* @see https://prettier.io/docs/en/configuration.html
3+
* @type {import("prettier").Config}
4+
*/
5+
const config = {
6+
plugins: ["@ianvs/prettier-plugin-sort-imports"],
7+
importOrderParserPlugins: ["typescript", "jsx"],
8+
importOrder: [
9+
"^react$|^react-native$",
10+
"",
11+
"<BUILTIN_MODULES>",
12+
"",
13+
"<THIRD_PARTY_MODULES>",
14+
"",
15+
"^[.]",
16+
],
17+
};
18+
19+
export default config;

.config/tsconfig.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"extends": "../tsconfig.json",
3+
"compilerOptions": {
4+
"noEmit": true,
5+
"allowJs": true
6+
},
7+
"include": [
8+
"./*"
9+
]
10+
}

.editorconfig

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# EditorConfig helps developers define and maintain consistent
2+
# coding styles between different editors and IDEs
3+
# editorconfig.org
4+
5+
root = true
6+
7+
[*]
8+
9+
indent_style = space
10+
indent_size = 2
11+
12+
end_of_line = lf
13+
charset = utf-8
14+
trim_trailing_whitespace = true
15+
insert_final_newline = true

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
*.pbxproj -text
2+
# specific for windows script files
3+
*.bat text eol=crlf

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
name: 🐛 Bug report
2+
description: Report a reproducible bug or regression in this library.
3+
labels: [bug]
4+
body:
5+
- type: markdown
6+
attributes:
7+
value: |
8+
# Bug report
9+
10+
👋 Hi!
11+
12+
**Please fill the following carefully before opening a new issue ❗**
13+
*(Your issue may be closed if it doesn't provide the required pieces of information)*
14+
- type: checkboxes
15+
attributes:
16+
label: Before submitting a new issue
17+
description: Please perform simple checks first.
18+
options:
19+
- label: I tested using the latest version of the library, as the bug might be already fixed.
20+
required: true
21+
- label: I tested using a [supported version](https://github.com/reactwg/react-native-releases/blob/main/docs/support.md) of react native.
22+
required: true
23+
- label: I checked for possible duplicate issues, with possible answers.
24+
required: true
25+
- type: textarea
26+
id: summary
27+
attributes:
28+
label: Bug summary
29+
description: |
30+
Provide a clear and concise description of what the bug is.
31+
If needed, you can also provide other samples: error messages / stack traces, screenshots, gifs, etc.
32+
validations:
33+
required: true
34+
- type: input
35+
id: library-version
36+
attributes:
37+
label: Library version
38+
description: What version of the library are you using?
39+
placeholder: "x.x.x"
40+
validations:
41+
required: true
42+
- type: textarea
43+
id: react-native-info
44+
attributes:
45+
label: Environment info
46+
description: Run `react-native info` in your terminal and paste the results here.
47+
render: shell
48+
validations:
49+
required: true
50+
- type: textarea
51+
id: steps-to-reproduce
52+
attributes:
53+
label: Steps to reproduce
54+
description: |
55+
You must provide a clear list of steps and code to reproduce the problem.
56+
value: |
57+
1. …
58+
2. …
59+
validations:
60+
required: true
61+
- type: input
62+
id: reproducible-example
63+
attributes:
64+
label: Reproducible example repository
65+
description: Please provide a link to a repository on GitHub with a reproducible example.
66+
validations:
67+
required: true

0 commit comments

Comments
 (0)