Skip to content

Commit cdf718f

Browse files
chore: Improve maintainability of the project (#40)
Co-authored-by: Atzin Escandia <[email protected]>
1 parent fcf63a5 commit cdf718f

File tree

5 files changed

+798
-35
lines changed

5 files changed

+798
-35
lines changed

.eslintrc.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es2021": true
5+
},
6+
"extends": [
7+
"eslint:recommended",
8+
"plugin:@typescript-eslint/recommended",
9+
"plugin:react/recommended",
10+
"plugin:storybook/recommended"
11+
],
12+
"parser": "@typescript-eslint/parser",
13+
"parserOptions": {
14+
"ecmaVersion": "latest",
15+
"sourceType": "module"
16+
},
17+
"plugins": [
18+
"@typescript-eslint",
19+
"react"
20+
],
21+
"settings": {
22+
"react": {
23+
"version": "detect"
24+
}
25+
},
26+
"rules": {}
27+
}

.github/pull_request_template.md

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
## Fixes Issue / Ticket
2+
3+
<!-- Link to Github Issue or Jira ticket -->
4+
5+
## Description
6+
7+
[Provide a brief description of the changes introduced by this pull request.]
8+
9+
## Checklist
10+
11+
Please make sure that your pull request complies with the following requirements:
12+
13+
- [ ] **Code Quality:**
14+
15+
- [ ] 🧹 Code follows the project's coding guidelines.
16+
17+
- [ ] **Testing:**
18+
19+
- [ ] 🧪️ All existing tests pass successfully.
20+
21+
- [ ] **Documentation:**
22+
23+
- [ ] 📖 README and documentation are updated if necessary.
24+
25+
- [ ] **Review:**
26+
27+
- [ ] 👀 Code has been reviewed by a team member.
28+
29+
- [ ] **Security:**
30+
- [ ] 🔒 Changes don't introduce security vulnerabilities.
31+
32+
## Screenshots (optional)
33+
34+
📸 [Include any relevant screenshots or visual representations of the changes.]
35+
36+
## Additional Information
37+
38+
ℹ️ [Provide any additional information that might be useful for the reviewer.]

package.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@
6969
"dev": "tsup --watch",
7070
"fix:types": "node scripts/fix-type-defs.js",
7171
"format": "prettier -w src",
72+
"lint": "eslint src --ext ts,tsx --report-unused-disable-directives --max-warnings 0",
7273
"prepare": "husky install",
7374
"prepublishOnly": "pnpm build",
7475
"publint": "publint",
@@ -78,7 +79,10 @@
7879
"test": "vitest run"
7980
},
8081
"lint-staged": {
81-
"*.{css,js,md,ts,jsx,tsx,ts}": "prettier --write"
82+
"*.{css,js,md,ts,jsx,tsx,ts}": "prettier --write",
83+
"*.{js,jsx,ts,tsx}": [
84+
"eslint --fix"
85+
]
8286
},
8387
"dependencies": {
8488
"@radix-ui/react-slot": "^1.0.2",
@@ -97,7 +101,12 @@
97101
"@storybook/react": "^7.3.1",
98102
"@storybook/react-vite": "^7.3.1",
99103
"@storybook/testing-library": "^0.2.0",
104+
"@typescript-eslint/eslint-plugin": "^6.13.2",
105+
"@typescript-eslint/parser": "^6.13.2",
100106
"autoprefixer": "^10.4.15",
107+
"eslint": "^8.55.0",
108+
"eslint-plugin-react": "^7.33.2",
109+
"eslint-plugin-storybook": "^0.6.15",
101110
"husky": "^8.0.0",
102111
"lint-staged": "^14.0.0",
103112
"postcss": "^8.4.28",

0 commit comments

Comments
 (0)