Skip to content

Commit f59564d

Browse files
authored
Merge pull request #1 from ArnauACR/development
feature(dependencies): configuration and dependencies
2 parents 7b62d70 + 5aadeba commit f59564d

9 files changed

Lines changed: 1128 additions & 37 deletions

File tree

.eslintrc.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
{
2+
"root": true,
3+
"env": {
4+
"browser": true,
5+
"es2024": true,
6+
"node": true
7+
},
8+
"extends": [
9+
"eslint:recommended",
10+
"plugin:react/recommended",
11+
"plugin:react/jsx-runtime",
12+
"plugin:react-hooks/recommended"
13+
],
14+
"parserOptions": {
15+
"ecmaVersion": "latest",
16+
"sourceType": "module"
17+
},
18+
"settings": {
19+
"react": {
20+
"version": "detect"
21+
}
22+
},
23+
"plugins": ["react-refresh"],
24+
"rules": {
25+
"react-refresh/only-export-components": [
26+
"warn",
27+
{ "allowConstantExport": true }
28+
]
29+
}
30+
}

.github/workflows/lint.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
name: Lint Code Base
2+
on:
3+
push:
4+
branches:
5+
- "**"
6+
- "!main"
7+
pull_request:
8+
branches:
9+
- "**"
10+
11+
jobs:
12+
lint:
13+
name: Linting
14+
runs-on: ubuntu-22.04
15+
steps:
16+
- name: Checkout code
17+
uses: actions/checkout@v4
18+
19+
- name: Set up Node.js
20+
uses: actions/setup-node@v4
21+
with:
22+
node-version: 18
23+
cache: "npm"
24+
25+
- name: Install dependencies
26+
run: npm ci
27+
28+
- name: Run ESLint
29+
run: npm run lint
30+
31+
# - name: Run tests
32+
# run: npm run test:run
33+
34+
- name: Cache node modules
35+
uses: actions/cache@v3
36+
with:
37+
path: |
38+
~/.npm
39+
node_modules
40+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}

.github/workflows/test.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: test
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
types: [opened, synchronize]
7+
push:
8+
branches: [main]
9+
jobs:
10+
test:
11+
runs-on: ubuntu-22.04
12+
steps:
13+
- name: checkcout
14+
uses: actions/checkout@v4
15+
- name: install Node
16+
uses: actions/setup-node@v4
17+
with:
18+
node-version: '18'
19+
- name: install dependencies
20+
run: npm install
21+
- name: execute
22+
run: npm test
23+
lint:
24+
runs-on: ubuntu-22.04
25+
steps:
26+
- name: checkcout
27+
uses: actions/checkout@v4
28+
- name: install Node
29+
uses: actions/setup-node@v4
30+
with:
31+
node-version: '18'
32+
- name: install dependencies
33+
run: npm install
34+
- name: execute
35+
run: npm run lint

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
node_modules
2-
2+
.husky
3+
.netlify
4+
.env

.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"semi": true,
3+
"singleQuote": true,
4+
"tabWidth": 2,
5+
"trailingComma": "es5"
6+
}

README.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)