Comments (5)
-
You want to change the electron's app pretitier tabwidth from 4 to 2? Just in the name of consistency to match the server/web repors? The prettier / eslint currently in app is all hijacked from the electron boiler plate repo. We can do this, it will just cause the style github workflow to run every time EDIT: unless we just do a massive prettier write . commit.. seems like overkill IMO?
-
also — No, I don't want to turn on
no-explicit-any
because the originally boilerplate code usesany
and I'm not sure what type it's suppose to be for a few of them (and clearly the authors didn't either). Same thing forprefer-default-export
.... I don't see the value in turning in on now? @Teddarific
from leftonread.
also, I noticed you've been pushing directly to main. FYI the linting workflow only runs on PR builds https://github.com/Left-on-Read/leftonread/blob/main/.github/workflows/app-format.yml (looks like you haven't done any work on the app so more just FYI). I don't think we should turn it on for main tho cause then we'll get ugly "Github bot" commits on main.
Alternative is we turn that workflow off and use a githook like husky. But I find that people may get impatient and may force skip the pre commit hook if they need to commit quickly.
from leftonread.
-
It should be straight forward changing the prettier - I think just deleting the file should do the trick. The big thing will just be a big commit reformatting all the files, but it shouldn't have to be done manually. If we don't already, we should have a command like
yarn lint
to lint the whole project and--fix
any easy things -
I mean looking at the use cases of
any
, there's only one instance where it's the boiler plate, which is inside ofassets.d.ts
right? That use case is legitimate, and we can justts-ignore
/eslint-disable-next-line
it. I don't feel strongly, but I don't see why not turn these on now if we're going to want to turn these on eventually (which IMO we should). We don't have to fix all the instances now - we can justts-ignore
the current instances if you don't want to fix them now which is totally fine, but it makes it so that if you REALLY need to useany
, you have to be very conscious of doing it since you also have to add ats-ignore
-
Yeah totally agreed - probably shouldn't turn it on for
main
. I've been pushing directly to main because I've been linting before I push and once we finish setting up monorepo, i'll start doing PRs but I'm too lazy to right now. This conversation deserves a separate thread, but tldr I changed the default merge to do arebase
, aka nosquash
. I guess we should do squash huh. I can change it back. But also, I think it would be nice to have a pre-git hook to run the linting locally before pushing, and not depend on a bot to commit for us. Not urgent, but a nice to have for the future so you don't have to pull the bot's changes down.
I'm going to look into hoisting prettier and eslint config for App right now, but I'll leave specific electron eslint configs as is and let you take care of 2)
from leftonread.
Ok, agreed on all your points. Thanks for typing that out.
re: bot vs git hook. Yeah con of bot is you have to pull down changes, but con of pre-commit hook is you have to wait for it to finish or (if it fails and you're impatient) you run --no-verify. I feel like it's an emacs vs vim thing. We can do whatever you want.
I'll handle # 2, sounds like you are doing # 1.
re: # 3 — squash or bust. (Why do you like rebase? I'm curious? I feel like it clutters commit history.)
from leftonread.
I'm going to close this issue.
from leftonread.
Related Issues (20)
- Add tooltip under adjust filters on first load (use electron store)
- Inbox UI: Should only return last 3 months, otherwise too much data
- Group Chat Tab Bug: No group chat selected on slow computers HOT 1
- Restructure rendering so that once data is loaded, it never has to load again
- Make menu bar icon colored appropriately based on user dark/light mode
- Group Chat Dropdown should be sorted by most recent
- Update Website
- Create marketing assets
- Some wrapped sections do not filter by time range
- perf: slow animations HOT 1
- Percent Positivity Over Time > 100
- Allow user to choose wrapped date range
- Filter out plural version of words in the top sent/received
- check-permissions infinitely loads sometimes (I think, not sure on exact issue) HOT 1
- Add ability to choose friends/filter by filters on Top Friends Graph
- Speed up initialize process HOT 1
- Add contact support to get started page
- Ask "why did you get gold" after activation HOT 1
- Messages missing after upgrading to Ventura HOT 4
- No messages loading HOT 1
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 leftonread.