-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: lint overhaul #458
chore: lint overhaul #458
Conversation
# Conflicts: # .github/CHANGELOG.yaml # package-lock.json # src/renderer/components/AddonSection/Configure/TrackSelector.tsx # src/renderer/components/AddonSection/ReleaseNotes/index.tsx # src/renderer/components/App/index.tsx # src/renderer/components/ErrorModal/index.tsx # src/renderer/components/InstallerUpdate/index.tsx # src/renderer/components/LocalApiConfigEditUI/index.tsx # src/renderer/components/Modal/ErrorDialog.tsx # src/renderer/components/Modal/index.tsx # src/renderer/components/SentrySessionCard.tsx # src/renderer/components/SettingsSection/Developer.tsx # src/renderer/components/SettingsSection/Download.tsx # src/renderer/components/SettingsSection/General.tsx # src/renderer/components/Toggle.tsx # src/renderer/components/WindowActionButtons/index.tsx # src/renderer/fbw.scss # src/renderer/index.tsx
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Checking line by line is of course impossible ;)
But by spot checking changes it seems this worked well.
Also no issues in the Installer itself.
Still unsure how to feel about the change from 4-space to 2-space indentation. Are we changing this on all FBW repositories? I saw you did in flybywiresim/simbridge. Maybe something to discuss with other devs? |
Yes - all repos should have the same linting. Also 2 spaces are imho good - the C++ code already has this for example. |
I find more 4 spaces easier to read over multiple nested blocks. The main advantage to me would be that the deeper blocks have less of an issue to exceed the maximum line length. |
Maybe that will discourage excessive nesting then 😄 |
4 is definitely a lot more readable, with the side benefit of discouraging excessive nesting. If only we could all use tabs thus could set our own preference in our editor of choice. |
Hey @Benjozork , after those changes I cannot build the master branch locally with |
Update: source-map is missing in the package.json. After npm install it built. |
* refactor: remove antd and antd icons * fix: further styling fixes * fix: further styling fixes * fix: further styling fixes * fix: broken changelog * fix: further styling fixes * fix: lint * fix: remove testing code * refactor: move lint to prettier * style: run lint * refactor: add react-hooks and tailwind lint * style: run lint * refactor: fix lint issues * style: run lint * chore: fix lint * fix: simplebar import * fix: selected track styling (cherry picked from commit 0458df8)
Summary of Changes
eslint:recommended
,plugin:prettier/recommended
andplugin:@typescript-eslint/recommended