Skip to content

Commit 0f21abe

Browse files
vilson-junior-squadrajunioroga
authored andcommitted
Format styles for ScrollViewWithBottomPadding
0 parents  commit 0f21abe

2,121 files changed

Lines changed: 139625 additions & 0 deletions

File tree

Some content is hidden

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

.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

.eslintrc.cjs

Lines changed: 230 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,230 @@
1+
module.exports = {
2+
root: true,
3+
plugins: [
4+
"@typescript-eslint",
5+
"react",
6+
"react-native",
7+
"jest",
8+
"import",
9+
"react-compiler",
10+
"eslint-comments",
11+
"prettier",
12+
"react-perf",
13+
"jsdoc",
14+
],
15+
extends: [
16+
"@react-native",
17+
"prettier",
18+
"eslint:recommended",
19+
"plugin:@typescript-eslint/recommended",
20+
"plugin:jest/recommended",
21+
"plugin:import/typescript",
22+
"plugin:eslint-comments/recommended",
23+
"plugin:react-perf/recommended",
24+
],
25+
settings: {
26+
"import/parsers": {
27+
"@typescript-eslint/parser": [".ts", ".tsx"],
28+
},
29+
"import/resolver": {
30+
typescript: {
31+
alwaysTryTypes: true,
32+
project: "<root>/tsconfig.json",
33+
},
34+
},
35+
},
36+
rules: {
37+
"prettier/prettier": [
38+
"error",
39+
{
40+
quoteProps: "consistent",
41+
trailingComma: "all",
42+
},
43+
],
44+
// react-hooks
45+
"react-hooks/exhaustive-deps": "warn",
46+
// react
47+
"react/jsx-sort-props": [
48+
"error",
49+
{
50+
callbacksLast: true,
51+
shorthandFirst: true,
52+
shorthandLast: false,
53+
ignoreCase: true,
54+
noSortAlphabetically: false,
55+
reservedFirst: ["ref", "key"],
56+
},
57+
],
58+
"react/jsx-no-bind": [
59+
"warn",
60+
{
61+
// should be an error, but we need to fix a lot of places
62+
ignoreDOMComponents: false,
63+
ignoreRefs: false,
64+
allowArrowFunctions: false,
65+
allowFunctions: false,
66+
allowBind: false,
67+
},
68+
],
69+
// react-perf
70+
"react-perf/jsx-no-new-function-as-prop": "off", // because we have jsx-no-bind
71+
"react-perf/jsx-no-jsx-as-prop": "warn",
72+
"react-perf/jsx-no-new-array-as-prop": "warn",
73+
"react-perf/jsx-no-new-object-as-prop": "warn",
74+
// typescript
75+
"@typescript-eslint/consistent-type-imports": [
76+
"error",
77+
{ prefer: "type-imports" },
78+
],
79+
"@typescript-eslint/no-import-type-side-effects": "error",
80+
"@typescript-eslint/no-var-requires": "warn",
81+
// import
82+
"sort-imports": [
83+
"error",
84+
{
85+
// sort destructure imports
86+
ignoreCase: false,
87+
ignoreDeclarationSort: true,
88+
ignoreMemberSort: false,
89+
memberSyntaxSortOrder: ["none", "all", "single", "multiple"],
90+
allowSeparatedGroups: true,
91+
},
92+
],
93+
"import/order": [
94+
"error",
95+
{
96+
"groups": [
97+
"builtin",
98+
"external",
99+
"internal",
100+
"parent",
101+
"sibling",
102+
"index",
103+
"type",
104+
],
105+
"alphabetize": {
106+
order: "asc",
107+
caseInsensitive: true,
108+
},
109+
"newlines-between": "always",
110+
},
111+
],
112+
"import/no-cycle": ["error", { maxDepth: "∞" }],
113+
// jest
114+
"jest/expect-expect": [
115+
"warn",
116+
{
117+
assertFunctionNames: [
118+
"expect",
119+
"expectBitmapsToBeEqual",
120+
"expectElementBitmapsToBeEqual",
121+
],
122+
additionalTestBlockFunctions: [],
123+
},
124+
],
125+
// react-compiler
126+
"react-compiler/react-compiler": "error",
127+
// eslint-comments
128+
"eslint-comments/no-unused-disable": "error",
129+
// eslint
130+
"curly": "error",
131+
"eqeqeq": ["error", "always"], // check “===”
132+
"no-nested-ternary": "error",
133+
"padding-line-between-statements": [
134+
"error",
135+
{
136+
blankLine: "always",
137+
prev: "*",
138+
next: ["return", "try", "throw", "function", "for", "while", "do"],
139+
},
140+
{ blankLine: "always", prev: ["const", "let", "var"], next: "*" },
141+
{
142+
blankLine: "any",
143+
prev: ["const", "let", "var"],
144+
next: ["const", "let", "var"],
145+
},
146+
{ blankLine: "always", prev: "*", next: "if" },
147+
{ blankLine: "any", prev: "if", next: "if" },
148+
],
149+
"no-param-reassign": "error",
150+
"max-lines": ["warn", { max: 300 }],
151+
},
152+
overrides: [
153+
{
154+
files: ["src/specs/**"],
155+
rules: {
156+
"@typescript-eslint/ban-types": [
157+
"error",
158+
{
159+
extendDefaults: true,
160+
types: {
161+
"{}": false,
162+
},
163+
},
164+
],
165+
},
166+
},
167+
{
168+
files: ["src/**"],
169+
excludedFiles: ["src/specs/**"],
170+
rules: {
171+
"jsdoc/check-access": "error",
172+
"jsdoc/check-alignment": "error",
173+
"jsdoc/check-indentation": 1,
174+
"jsdoc/check-line-alignment": 1,
175+
"jsdoc/check-param-names": "error",
176+
"jsdoc/check-template-names": 1,
177+
"jsdoc/check-property-names": "error",
178+
"jsdoc/check-syntax": 1,
179+
"jsdoc/check-tag-names": ["error", { definedTags: ["platform"] }],
180+
"jsdoc/check-types": "error",
181+
"jsdoc/check-values": "error",
182+
"jsdoc/empty-tags": "error",
183+
"jsdoc/implements-on-classes": "error",
184+
"jsdoc/informative-docs": 1,
185+
"jsdoc/match-description": 1,
186+
"jsdoc/multiline-blocks": "error",
187+
"jsdoc/no-bad-blocks": 1,
188+
"jsdoc/no-blank-block-descriptions": 1,
189+
"jsdoc/no-defaults": 1,
190+
"jsdoc/no-multi-asterisks": "error",
191+
"jsdoc/no-types": 1,
192+
"jsdoc/require-asterisk-prefix": 1,
193+
"jsdoc/require-description": 1,
194+
"jsdoc/require-description-complete-sentence": 1,
195+
"jsdoc/require-example": 1,
196+
"jsdoc/require-hyphen-before-param-description": 1,
197+
"jsdoc/require-jsdoc": "error",
198+
"jsdoc/require-param": "error",
199+
"jsdoc/require-param-description": "error",
200+
"jsdoc/require-param-name": "error",
201+
"jsdoc/require-property": "error",
202+
"jsdoc/require-property-description": "error",
203+
"jsdoc/require-property-name": "error",
204+
"jsdoc/require-returns": "error",
205+
"jsdoc/require-returns-check": "error",
206+
"jsdoc/require-returns-description": "error",
207+
"jsdoc/require-template": 1,
208+
"jsdoc/require-throws": 1,
209+
"jsdoc/require-yields": "error",
210+
"jsdoc/require-yields-check": "error",
211+
"jsdoc/sort-tags": 1,
212+
"jsdoc/tag-lines": ["error", "never", { startLines: 1 }],
213+
"jsdoc/valid-types": "error",
214+
"jsdoc/no-restricted-syntax": "off",
215+
"jsdoc/require-file-overview": "off",
216+
"jsdoc/no-missing-syntax": "off",
217+
"jsdoc/check-examples": "off",
218+
"jsdoc/no-undefined-types": "off",
219+
"jsdoc/require-param-type": "off",
220+
"jsdoc/require-property-type": "off",
221+
"jsdoc/require-returns-type": "off",
222+
},
223+
},
224+
],
225+
env: {
226+
"react-native/react-native": true,
227+
"jest/globals": true,
228+
},
229+
ignorePatterns: ["node_modules/**", "lib/**", "scripts/**", "docs/build/**"],
230+
};

.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/FUNDING.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# These are supported funding model platforms
2+
3+
github: kirillzyusko
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ""
5+
labels: bug
6+
assignees: kirillzyusko
7+
---
8+
9+
**Describe the bug**
10+
A clear and concise description of what the bug is.
11+
12+
**Code snippet**
13+
Add your code snippet where error has been occurred.
14+
15+
**Repo for reproducing**
16+
I would be highly appreciate if you can provide repository for reproducing your issue. It can significantly reduce the time for discovering and fixing the problem.
17+
18+
**To Reproduce**
19+
Steps to reproduce the behavior:
20+
21+
1. Go to '...'
22+
2. Click on '....'
23+
3. Scroll down to '....'
24+
4. See error
25+
26+
**Expected behavior**
27+
A clear and concise description of what you expected to happen.
28+
29+
**Screenshots**
30+
If applicable, add screenshots to help explain your problem.
31+
32+
**Smartphone (please complete the following information):**
33+
34+
- Desktop OS: [e.g. Windows 10, MacOS 10.15.5]
35+
- Device: [e.g. iPhone8]
36+
- OS: [e.g. iOS 10.0]
37+
- RN version: [e.g. 0.68.2]
38+
- RN architecture: [e.g. old/new or paper/fabric]
39+
- JS engine: [e.g. JSC, Hermes, v8]
40+
- Library version: [e.g. 1.2.0]
41+
42+
**Additional context**
43+
Add any other context about the problem here.
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ""
5+
labels: Feature
6+
assignees: kirillzyusko
7+
---
8+
9+
**Is your feature request related to a problem? Please describe.**
10+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
11+
12+
**Describe the solution you'd like**
13+
A clear and concise description of what you want to happen.
14+
15+
**Describe alternatives you've considered**
16+
A clear and concise description of any alternative solutions or features you've considered.
17+
18+
**Additional context**
19+
Add any other context or screenshots about the feature request here.

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
## 📜 Description
2+
3+
<!-- Describe your changes in detail -->
4+
5+
## 💡 Motivation and Context
6+
7+
<!-- Why is this change required? What problem does it solve? -->
8+
<!-- If it fixes an open issue, please link to the issue here. -->
9+
10+
## 📢 Changelog
11+
12+
<!-- High level overview of important changes -->
13+
<!-- For example: fixed status bar manipulation; added new types declarations; -->
14+
<!-- If your changes don't affect one of platform/language below - then remove this platform/language -->
15+
16+
### JS
17+
18+
-
19+
-
20+
21+
### iOS
22+
23+
-
24+
-
25+
26+
### Android
27+
28+
-
29+
-
30+
31+
## 🤔 How Has This Been Tested?
32+
33+
<!-- Please describe in detail how you tested your changes. -->
34+
<!-- Include details of your testing environment, and the tests you ran to -->
35+
<!-- see how your change affects other areas of the code, etc. -->
36+
37+
## 📸 Screenshots (if appropriate):
38+
39+
<!-- Add screenshots/video if needed -->
40+
<!-- That would be highly appreciated if you can add how it looked before and after your changes -->
41+
42+
## 📝 Checklist
43+
44+
- [ ] CI successfully passed
45+
- [ ] I added new mocks and corresponding unit-tests if library API was changed

0 commit comments

Comments
 (0)