Skip to content

Commit 7574cb3

Browse files
author
Hector Arce De Las Heras
committed
Initial release of React component library, version 1.0.0
This commit marks the initial release of our React component library. It includes the foundational setup, design system, hooks, providers, types, components, constants, and utilities. This is the first stable version 1.0.0 of the library.
1 parent 5c2e912 commit 7574cb3

File tree

1,887 files changed

+109672
-0
lines changed

Some content is hidden

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

1,887 files changed

+109672
-0
lines changed

.babelrc.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"sourceType": "unambiguous",
3+
"presets": [
4+
[
5+
"@babel/preset-env",
6+
{
7+
"targets": {
8+
"chrome": 100
9+
}
10+
}
11+
],
12+
"@babel/preset-typescript",
13+
"@babel/preset-react"
14+
],
15+
"plugins": []
16+
}

.eslintrc

Lines changed: 178 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,178 @@
1+
{
2+
"settings": {
3+
"react": {
4+
"version": "detect",
5+
},
6+
"import/parsers": {
7+
"@typescript-eslint/parser": [".ts", ".tsx"],
8+
},
9+
"import/resolver": {
10+
"typescript": {
11+
"project": "app/tsconfig.json",
12+
},
13+
},
14+
"import/ignore": ["react"],
15+
},
16+
"root": true,
17+
"extends": ["./node_modules/gts/", "eslint:recommended", "plugin:import/recommended"],
18+
"plugins": ["prettier", "unused-imports"],
19+
"env": {
20+
"browser": true,
21+
"commonjs": true,
22+
"es6": true,
23+
"es2021": true,
24+
"node": true,
25+
"jest": true,
26+
},
27+
"parserOptions": {
28+
"ecmaVersion": 2020,
29+
"sourceType": "module",
30+
"ecmaFeatures": {
31+
"jsx": true,
32+
},
33+
},
34+
"ignorePatterns": ["dist/**", "node_modules/**", "src/**/*.scss", "vite.config.ts"],
35+
"rules": {
36+
"prettier/prettier": ["error", {}],
37+
"curly": [2, "multi-line"],
38+
"comma-dangle": 0,
39+
"jsx-quotes": 1,
40+
"import/no-named-as-default": 0,
41+
"no-cond-assign": 2,
42+
"no-console": 2,
43+
"no-constant-condition": 0,
44+
"no-debugger": 2,
45+
"no-useless-escape": 0,
46+
"no-case-declarations": 0,
47+
"no-extra-boolean-cast": 0,
48+
"no-extra-semi": 2,
49+
"no-fallthrough": 0,
50+
"no-func-assign": 2,
51+
"no-inner-declarations": 2,
52+
"no-undef": 2,
53+
"no-unreachable": 2,
54+
"no-unused-vars": [
55+
2,
56+
{
57+
"args": "after-used",
58+
},
59+
],
60+
"no-use-before-define": 1,
61+
},
62+
"globals": {},
63+
"overrides": [
64+
{
65+
"files": ["src/**/*.ts", "src/**/*.tsx"],
66+
"parser": "@typescript-eslint/parser",
67+
"extends": [
68+
"eslint:recommended",
69+
"plugin:jest/recommended",
70+
"plugin:react/recommended",
71+
"plugin:react-hooks/recommended",
72+
"plugin:@typescript-eslint/eslint-recommended",
73+
"plugin:@typescript-eslint/recommended",
74+
"plugin:import/recommended",
75+
"plugin:jsx-a11y/recommended",
76+
],
77+
"plugins": ["jest", "react", "@typescript-eslint", "prettier", "jsx-a11y"],
78+
"rules": {
79+
"unused-imports/no-unused-imports": "error",
80+
"prettier/prettier": "error",
81+
"arrow-body-style": "off",
82+
"prefer-arrow-callback": "off",
83+
"react/jsx-sort-props": [
84+
"error",
85+
{
86+
//props like key, ref go first
87+
"reservedFirst": true,
88+
//props like disabled (not like disabled={state === ButtonStateType.DISABLED}) goes first but after reserved props
89+
"shorthandFirst": true,
90+
//callbacks are the last
91+
"callbacksLast": true,
92+
//When true the rule ignores the case-sensitivity of the props order.
93+
"ignoreCase": false,
94+
"noSortAlphabetically": false,
95+
},
96+
],
97+
"@typescript-eslint/no-unused-vars": ["off"],
98+
"@typescript-eslint/explicit-module-boundary-types": [
99+
"error",
100+
{
101+
"allowArgumentsExplicitlyTypedAsAny": true,
102+
},
103+
],
104+
"@typescript-eslint/no-explicit-any": "error",
105+
"@typescript-eslint/ban-ts-comment": [
106+
"error",
107+
{
108+
"ts-expect-error": "allow-with-description",
109+
},
110+
],
111+
"@typescript-eslint/no-empty-function": "error",
112+
"node/no-unpublished-import": "off",
113+
"@typescript-eslint/no-duplicate-enum-values": "off",
114+
"import/no-named-as-default": "off",
115+
"curly": ["error", "multi-line", "consistent"],
116+
"no-unused-vars": "off",
117+
"jest/no-test-prefixes": "off",
118+
"jest/no-focused-tests": "off",
119+
"comma-dangle": [
120+
"error",
121+
{
122+
"arrays": "only-multiline",
123+
"objects": "only-multiline",
124+
"imports": "only-multiline",
125+
"exports": "only-multiline",
126+
"functions": "never",
127+
},
128+
],
129+
"linebreak-style": ["error", "unix"],
130+
"quotes": ["error", "single"],
131+
"semi": ["error", "always"],
132+
"eqeqeq": ["error", "always"],
133+
"complexity": [
134+
"error",
135+
{
136+
"max": 10,
137+
},
138+
],
139+
"block-scoped-var": "error",
140+
"no-else-return": [
141+
"error",
142+
{
143+
"allowElseIf": true,
144+
},
145+
],
146+
"no-eval": "error",
147+
"no-lone-blocks": "error",
148+
"no-multi-spaces": "error",
149+
"no-useless-return": "error",
150+
"no-var": "error",
151+
"react-hooks/exhaustive-deps": "off",
152+
"no-console": [
153+
"error",
154+
{
155+
"allow": ["warn", "error"],
156+
},
157+
],
158+
"no-throw-literal": "error",
159+
"newline-per-chained-call": [
160+
"error",
161+
{
162+
"ignoreChainWithDepth": 4,
163+
},
164+
],
165+
"no-extra-boolean-cast": [
166+
"error",
167+
{
168+
"enforceForLogicalOperands": true,
169+
},
170+
],
171+
"no-fallthrough": "error",
172+
"no-use-before-define": "off",
173+
"no-case-declarations": "off",
174+
"import/no-cycle": [2, { "maxDepth": 4 }],
175+
},
176+
},
177+
],
178+
}

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
- OS: [e.g. iOS]
28+
- Browser [e.g. chrome, safari]
29+
- Version [e.g. 22]
30+
31+
**Smartphone (please complete the following information):**
32+
- Device: [e.g. iPhone6]
33+
- OS: [e.g. iOS8.1]
34+
- Browser [e.g. stock browser, safari]
35+
- Version [e.g. 22]
36+
37+
**Additional context**
38+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: ''
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Description
2+
3+
Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.
4+
5+
Fixes # (issue)
6+
7+
## Type of change
8+
9+
Please delete options that are not relevant.
10+
11+
- [ ] Bug fix (non-breaking change which fixes an issue)
12+
- [ ] New feature (non-breaking change which adds functionality)
13+
- [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
14+
- [ ] This change requires a documentation update
15+
16+
# How Has This Been Tested?
17+
18+
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
19+
20+
- [ ] Test A
21+
- [ ] Test B
22+
23+
# Checklist:
24+
25+
- [ ] My code follows the style guidelines of this project
26+
- [ ] I have performed a self-review of my code
27+
- [ ] I have commented my code, particularly in hard-to-understand areas
28+
- [ ] I have made corresponding changes to the documentation
29+
- [ ] My changes generate no new warnings
30+
- [ ] I have added tests that prove my fix is effective or that my feature works
31+
- [ ] New and existing unit tests pass locally with my changes
32+
- [ ] Any dependent changes have been merged and published in downstream modules

.gitignore

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
## IntelliJ files
2+
/.idea
3+
*.iml
4+
/bamboo-specs/.idea
5+
/bamboo-specs/*.iml
6+
7+
/__reports__/**/*.*
8+
junit.xml
9+
10+
/dist
11+
/sample
12+
/__reports__
13+
/node_modules/
14+
/dist/
15+
/bundle/
16+
/junit.xml
17+
/globalConfig
18+
/localConfig
19+
/cli/test-output/**/*.*
20+
/.vscode/
21+
.DS_Store
22+
*.log
23+
/bamboo-specs/target
24+
junit.xml
25+
26+
/config/webpack/microfront/config.js
27+
/config/webpack/microfront/config.json
28+
29+
/package-lock.json
30+
/*yalc*
31+
node_modules/
32+
33+
/storybook-static
34+
35+
/.jest-test-results.json
36+
37+
## vim files
38+
*.swp
39+
*.swo

.htmlvalidate.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"extends": ["html-validate:recommended"],
3+
4+
"rules": {
5+
"attribute-boolean-style": "off",
6+
"no-deprecated-attr": "off"
7+
}
8+
}

.jsbeautifyrc

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"js": {
3+
"brace_style": "collapse",
4+
"break_chained_methods": false,
5+
"e4x": true,
6+
"end_with_newline": true,
7+
"eval_code": false,
8+
"indent_char": " ",
9+
"indent_level": 0,
10+
"indent_size": 2,
11+
"indent_with_tabs": false,
12+
"jslint_happy": true,
13+
"keep_array_indentation": false,
14+
"keep_function_indentation": false,
15+
"max_preserve_newlines": 3,
16+
"preserve_newlines": false,
17+
"space_after_anon_function": true,
18+
"space_before_conditional": true,
19+
"space_in_paren": false,
20+
"unescape_strings": false,
21+
"wrap_line_length": 160
22+
}
23+
}

.prettierignore

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
dist/
2+
node_modules/
3+
plop-templates/
4+
public/
5+
vendor/
6+
.eslintrc.js
7+
tsconfig.json
8+
tsconfig.cli.json

.prettierrc.js

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
module.exports ={
2+
"tabWidth": 2,
3+
"useTabs": false,
4+
"semi": true,
5+
"singleQuote": true,
6+
"quoteProps": "consistent",
7+
"jsxSingleQuote": false,
8+
"trailingComma": "es5",
9+
"bracketSpacing": true,
10+
"bracketSameLine": false,
11+
"arrowParens": "avoid",
12+
"printWidth": 100,
13+
"endOfLine": "lf",
14+
"plugins": [require.resolve("@trivago/prettier-plugin-sort-imports")],
15+
"importOrder": ["react", "styled-components", "dayjs", "^(?!\\.|@)", "^@/", "^\\."],
16+
"importOrderSeparation": true,
17+
"importOrderSortSpecifiers": true,
18+
"overrides": [
19+
{
20+
"files": ["config/**/*.js"],
21+
"options": {
22+
"printWidth": 160
23+
}
24+
}
25+
]
26+
}

0 commit comments

Comments
 (0)