58 Commits

Author SHA1 Message Date
Manav Rathi
f3bfc8525b
Fix 2024-11-20 10:32:22 +05:30
Manav Rathi
3dd136bdf3
Tweaks 2024-11-20 08:19:46 +05:30
Manav Rathi
f69832ea16
Fix updated rule 2024-11-20 08:13:39 +05:30
Manav Rathi
e55181a9be
Bring back the rest that are needed 2024-11-20 08:07:04 +05:30
Manav Rathi
8f43f27fcf
Tweak ignores 2024-11-20 08:03:56 +05:30
Manav Rathi
916b56fa65
The files filter has a big impact on speed 2024-11-20 07:59:57 +05:30
Manav Rathi
c211a829f8
Bring back overrides 2024-11-20 07:56:54 +05:30
Manav Rathi
89b90c9332
Fix overwriting 2024-11-20 07:53:02 +05:30
Manav Rathi
9e2a70e469
tsc on build-config 2024-11-19 20:04:52 +05:30
Manav Rathi
87ac2360eb
Swap 2024-11-19 19:44:24 +05:30
Manav Rathi
1b772b644a
Move to config 2024-11-19 19:14:12 +05:30
Manav Rathi
2bde3fb0d7
Squash 2024-11-19 19:12:22 +05:30
Manav Rathi
32cd241982
Merge 2024-11-19 19:02:30 +05:30
Manav Rathi
0338313f73
rr 2024-11-19 19:00:10 +05:30
Manav Rathi
0f93c48e10
Scope 2024-11-19 18:57:40 +05:30
Manav Rathi
dbfb5e5da3
hp 2024-11-19 18:49:40 +05:30
Manav Rathi
5209562bba
rv 2024-11-19 18:47:24 +05:30
Manav Rathi
69d4e632f4
rp 2024-11-19 18:40:49 +05:30
Manav Rathi
b5be13df2c
Cleanup 2024-11-19 18:27:24 +05:30
Manav Rathi
ebcabe5bfe
Restore rules 2024-11-19 18:25:41 +05:30
Manav Rathi
41cdb73382
Upd 2024-11-19 18:22:23 +05:30
Manav Rathi
da71a34f75
TC 2024-11-19 18:15:51 +05:30
Manav Rathi
56b72bd55b
Chain 2024-11-19 18:05:45 +05:30
Manav Rathi
dbeb95d438
wip checkpoint 2024-11-19 17:57:59 +05:30
Manav Rathi
143d346ed4
eslint migration wip checkpoint 2024-11-19 17:49:37 +05:30
Manav Rathi
17bcf21216
Start deprecating ensure
ensure:
    Error: Required value was undefined

Built in undefined property access (note how the error message has more info):
    TypeError: Cannot read properties of undefined (reading 'length')
2024-11-18 18:01:44 +05:30
Manav Rathi
daee8fb4f6
Update deps 2024-11-18 16:56:15 +05:30
Manav Rathi
2f1ecbc79d
Lint 2024-10-11 16:07:59 +05:30
Manav Rathi
b92e9e366b
Remove spurious warning 2024-10-11 12:01:51 +05:30
Manav Rathi
68e7a38463
Another helper 2024-10-10 14:37:06 +05:30
Manav Rathi
c6fdd6352e
Add an exception 2024-09-24 08:33:27 +05:30
Manav Rathi
f3a3c68488
[web] Package updates 2024-09-11 11:13:25 +05:30
Manav Rathi
920685e15c
lint 2024-07-09 14:56:49 +05:30
Manav Rathi
d11e94c939
Silence warning 2024-07-09 12:37:33 +05:30
Manav Rathi
93d1813f97
Help not hinder 2024-06-19 13:57:41 +05:30
Manav Rathi
f9588cf1c8
Allow referrer
https://github.com/jsx-eslint/eslint-plugin-react/blob/master/docs/rules/jsx-no-target-blank.md
2024-06-19 13:31:32 +05:30
Manav Rathi
d2fd7dea97
Add an exception 2024-06-11 20:40:36 +05:30
Manav Rathi
78b82e774d
tsconfig 2024-06-03 15:05:58 +05:30
Manav Rathi
1d5f936ced
Move to lower layer for fixing eslint errors 2024-06-02 17:46:22 +05:30
Manav Rathi
38d6464f55
muppets 2024-05-25 18:13:11 +05:30
Manav Rathi
c5b6297cea
Wrap 2024-05-25 18:05:22 +05:30
Manav Rathi
3b8c48e92d
Create a next specific base
The include still needs to be specified in the importing tsconfig otherwise the
"." is resolved relative to the @/build-config.
2024-05-24 18:17:59 +05:30
Manav Rathi
1f4bac8fac
Update build-deps 2024-05-15 15:27:05 +05:30
Manav Rathi
7056e04c02
Fix lint for web
Copy overrides from desktop
2024-05-01 09:13:41 +05:30
Manav Rathi
64231c73f1
[web] Add ESLint to enforce HMR how vite likes it
Configuration changes taken from the vite starter (react-ts).

From the vite docs (https://github.com/vitejs/vite-plugin-react-swc?tab=readme-ov-file#consistent-components-exports)

> For React refresh to work correctly, your file should only export React components.
>
> If an incompatible change in exports is found, the module will be invalidated.
> To make it easier to export simple constants alongside your component the module
> is only invalidated when their value changes.

While we're not currently using vite for our main apps, it would be worthwhile
to write code in a way that a future migration to it is painless if needed.

About the what and the why, the Gatsby docs are illuminating:
https://www.gatsbyjs.com/docs/reference/local-development/fast-refresh/#how-it-works

Some other refs:
- https://github.com/ArnaudBarre/eslint-plugin-react-refresh
- https://github.com/vitejs/vite/discussions/4577#discussioncomment-1161007
- https://github.com/vitejs/vite-plugin-react/issues/34
2024-04-13 18:38:24 +05:30
Manav Rathi
10b0d9f533
Fix the yarn lint 2024-04-05 21:22:44 +05:30
Manav Rathi
29550317f7
Enable the jsx-runtime plugin for vite's ESLint
This prevents it complaining about a missing React import.

Enabling this is recommended by the vite starter itself:

> Install
  [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react) and
  add `plugin:react/recommended` & `plugin:react/jsx-runtime` to the `extends`
  list
2024-04-04 14:46:41 +05:30
Manav Rathi
935e47fbca
Fix the payments eslint 2024-04-04 14:10:16 +05:30
Manav Rathi
ff6d0d32cf
Remove unused 404 handler
The default appType == 'spa' in vite redirects all (unclaimed) paths to /index.html.

If needed, this can be disabled:
https://stackoverflow.com/questions/69701743/how-can-i-configure-vites-dev-server-to-give-404-errors/69711988#69711988
2024-04-04 13:58:30 +05:30
Manav Rathi
87dc7d76ca
Remove middleman package, to get it to compile 2024-04-04 11:36:20 +05:30