Skip to content

Commit 88753b1

Browse files
committed
refactor: fix makefile
1 parent aa0090c commit 88753b1

4 files changed

Lines changed: 33 additions & 418 deletions

File tree

Makefile

Lines changed: 12 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,21 @@
1-
lint-frontend:
2-
make -C frontend lint
3-
41
install:
5-
npm ci
6-
7-
start-frontend:
8-
make -C frontend start
9-
10-
start-backend:
11-
npx start-server -s ./frontend/dist
2+
npm ci && make -C frontend install
123

13-
deploy:
14-
git push heroku main
4+
build:
5+
npm run build
156

167
start:
178
make start-backend
189

10+
start-backend:
11+
npm run start
12+
13+
start-frontend:
14+
cd frontend && npm start
15+
1916
develop:
2017
make start-backend & make start-frontend
2118

22-
build:
23-
rm -rf frontend/dist
24-
npm run build
19+
lint:
20+
make -C frontend lint
21+

frontend/.eslintrc.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ env:
55
extends:
66
- airbnb
77
- plugin:react/recommended
8-
- plugin:functional/recommended
98
- plugin:react-hooks/recommended
109

1110
parserOptions:
@@ -16,21 +15,22 @@ parserOptions:
1615

1716
plugins:
1817
- react
19-
- functional
18+
- react-hooks
2019

2120
rules:
2221
import/extensions: 0
2322
import/no-unresolved: 0
2423
react/prop-types: 0
2524
no-console: 0
2625
react/react-in-jsx-scope: 0
27-
functional/no-conditional-statement: 0
28-
functional/no-expression-statement: 0
26+
functional/no-conditional-statements: 0
27+
functional/no-expression-statements: 0
2928
functional/immutable-data: 0
3029
functional/functional-parameters: 0
3130
functional/no-try-statement: 0
3231
functional/no-throw-statement: 0
3332
no-underscore-dangle: [2, { "allow": ["__filename", "__dirname"] }]
3433
react/function-component-definition: [2, { "namedComponents": "arrow-function" }]
3534
testing-library/no-debug: 0
36-
react/jsx-filename-extension: [1, { "extensions": [".js", ".jsx"] }]
35+
react/jsx-filename-extension: [1, { "extensions": [".js", ".jsx"] }]
36+
functional/no-return-void: 0

0 commit comments

Comments
 (0)