-
-
Notifications
You must be signed in to change notification settings - Fork 19
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
@mikehardy/lint battles #33
@mikehardy/lint battles #33
Conversation
Why? Without this, you can't use `JSX.Element` etc as symbols because typescript-eslint does not understand they are present. `tsc` has no problem with the files. This is specifically recommended as a setting by the linter docs: https://github.com/typescript-eslint/typescript-eslint/blob/eaaa2047ca54f098dcdd32aaf5d8949495c6be26/docs/linting/TROUBLESHOOTING.md?plain=1#L111
they deprecated the old one: jsxBracketSameLine -> bracketSameLine https://prettier.io/blog/2021/09/09/2.4.0.html > This release renames the jsxBracketSameLine option to bracketSameLine, which supports HTML, Vue, and Angular in addition to JSX. The old name has been deprecated.
verified working, allows removal of ts-ignore/eslint-ignore, which gets rid of a warning about an unreported eslint-ignore
using spacing in eslint conflicts with spacing rules in prettier, and they *specifically* disagree on switch/case spacing in their default setups. Let Prettier control spacing, lint:all passes with fewer directives and pretty switch/case spacing.
Hopefully integrates via PR upstream in `@react-native-community`, this appears to be the standard configuration for no-shadow in typescript projects, see: react-native-community/react-native-template-typescript#238
Hmmm 🤔 - obviously the goal is clean lint runs and I have that locally. |
Ah, it's on a component that doesn't exist anymore after #32 - or shouldn't - it does seem like the develop branch may be in a strange state ?
|
Yep, it also seems to me that I messed something up with the develop branch, I'm trying to figure it out, |
My firebase auth template on top of this one now does theming and language switching (including the built-in email auth templates that firebase gives you!). Just need a translation for 'ro' and you've got an out-of-the-box web/mobile app that's in your language - you might find that useful |
I'm doing the last changes for Luna and I'll try the firebase example ASAP. Unfortunately, I'm still on a vacation and my family demands my attention 😂 Trying to hop on the laptop whenever I have some spare time. |
Oh hang with the family every time. Laptop will always be there... Cheers man :-) |
A bunch of little battles I just won with eslint + prettier ;-)
Each comment has what I learned and the reference
what a pain in the ... haha
yarn lint:all
is now completely clean with these, including in a real project where there are switch statements and export const enums and such