Comments (19)
from sora.
vậy thống nhất dùng chấm phẩy nha
- nếu m dùng vscode, thích thì để t push .vscode/settings chung lên luôn, kiểu format on save, fix on save đồ rứa ?
from sora.
@Khanhtran47 What are these weird looking errors 😅 ?
m chạy lint cho hết lỗi rồi push lên lại thử
ps: cài thêm "eslint-config-airbnb-typescript" nữa k eslint nó k biết
from sora.
@ctuanle ủa sao tối qua t run xong k bị lỗi chi cả nơi -.-
from sora.
@Khanhtran47 run chi, yarn dev á hay yarn eslint ?
from sora.
@ctuanle k eslint nó tự tìm lỗi luôn, t nhớ k thấy lỗi chi cả :v m thử thoát vscode sau vào lại thử
from sora.
@Khanhtran47 vậy à, t cx chịu nơi 🥴
nguyên cây bên develop, code vẫn chạy bình thường, đều nếu chạy eslint kiểm tra lỗi thì ra lỗi thiếu "airbnb-typescript" như này, IDE k hiện lỗi đỏ.
Nhưng nếu cài cái "airbnb-typescript" này vào thì chạy ra lỗi khác, với IDE hiện lỗi đỏ như hình ban nãy
@ctuanle k eslint nó tự tìm lỗi luôn, t nhớ k thấy lỗi chi cả :v
có thể IDE k hiện lỗi, nhưng chạy eslint cho chắc
from sora.
@ctuanle ừ để tối về t xem lại, m khoan lại merge develop vô branch
from sora.
ukay 👍 , thấy chạy yarn eslint --fix
nó cũng sửa gần hết đều để m làm cho chắc
from sora.
@ctuanle m fix đc luôn thì cứ fix đi 😅
from sora.
@Khanhtran47 cũng được 🥲, đều fix xong là nó có chấm phẩy "semi", và t không biết làm răng để tránh cái ni cả, thấy m code không để dấu chấm phẩy
đã thử thêm "semi": ["error", "never"], thì nó hiện ra 2 lỗi khác nhau, 1 lỗi vì răng không có ";", lỗi kia vì răng lại có ";" :v
from sora.
@ctuanle à bth t thêm chấm phẩy cả nơi, do prettier nó format xóa hết chấm phẩy
from sora.
- nếu m dùng vscode, thích thì để t push .vscode/settings chung lên luôn, kiểu format on save, fix on save đồ rứa ?
@ctuanle t có file setting riêng rùi nơi, m thêm 1 file .prettierrc là đc rồi
from sora.
@Khanhtran47 có một số lỗi mà phải sửa code đáng chú ý như này:
react/function-component-definition
đổi thành dùng keyword function
no-empty-interface/
comment dòng này và tạm thời bỏ một số code k cần thiết
không biết thư mục api này làm gì, check k qua nên tạm thời bỏ thư mục này vào ignorePatterns
cái trailing comma bỏ cũng lỗi mà không bỏ cũng lỗi nên chuyển thành "all" luôn
from sora.
@ctuanle
ủa bth typescript mà arrow function t toàn viết kiểu rứa cả mà lần đầu thấy rule ni luôn :v
mấy cái empty thì cmt lại sau xài thì mở cmt
thư mục api nớ của sẵn trong template thằng kia á, m xóa luôn đi :v
trailing comma thì chắc prettier nó format hết cả nơi, k sao mô
from sora.
ủa bth typescript mà arrow function t toàn viết kiểu rứa cả mà lần đầu thấy rule ni luôn :v
t cx chịu nơi, chắc do extends nhiều quá, thấy có một chỗ mà tận 3 4 dòng show lỗi :v
trailing comma thì chắc prettier nó format hết cả nơi, k sao mô
ừm đều eslint nó hiện lỗi nên t đổi r
from sora.
@ctuanle k xài đc arrow function với typescript đc à 😥
from sora.
@Khanhtran47 😅 chắc được chứ, tìm rule để set lại chắc dùng đc
ơ mà nó chỉ áp dụng vô react functional component thôi, mấy chỗ khác dùng đc
from sora.
@Khanhtran47 t có chỉnh lại rule ở đây a2f4ef6
đều như vậy thì nó force mình dùng mỗi arrow function cho mọi react FC nên m muốn set rule lại thành "warn" hay "off" gì cũng đc
from sora.
Related Issues (20)
- user
- Loklok API URL HOT 1
- Please help me create a user account HOT 6
- Email verification
- Account and Player Settings HOT 1
- anime OP/ED skip HOT 1
- Error SQLITE HOT 4
- Loklok API HOT 11
- BUG REPORT HOT 4
- Where is the site admin located? HOT 1
- Loklok not working HOT 1
- nothing is playing HOT 1
- ANIME HD streaming does not work, takes forever to load
- `Player` bgColor 🥲 HOT 2
- Loklok not working HOT 1
- Xin source code của proxy api HOT 5
- thêm tiếng việt đi bác ơi
- How to deploy to vercel?
- Tried to deploy on vercel but didn't work whats the solution
- Bug API?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from sora.