Commit graph

13 commits

Author SHA1 Message Date
dkanada
4e2831ebeb
modify eslint and webpack config files (#8337) 2026-09-28 18:57:17 -04:00
Bill Thornton
1e9ec824ae Fix ResizeObserver polyfilling 2026-08-27 19:06:17 -04:00
Bill Thornton
d25a560a5f Remove eslint exception for jquery.deferred 2026-06-15 14:11:47 -04:00
Matt
c685a6d0da Use String.raw to avoid escaping backslashes in eslint config 2026-06-02 01:05:01 -04:00
Bill Thornton
0d4173e816 Add eslint rule restricting replaceChildren 2026-05-13 09:23:25 -04:00
David Stensland
518ba15ce1 Disable sonarjs/aws-restricted-ip-admin-access lint rule
This lint rule contributes ~12 seconds to lint time on my machine, the
single largest contribution by any rule. The documentation for this rule
seems to have been taken down, but reading [the source][1] suggests that
it makes sure that AWS CDK resources are firewalled. That is not even
close to relevant to this project.

To time lints I ran `time env TIMING=1 npm run lint`

Lint time before

```
Rule                                   | Time (ms) | Relative
:--------------------------------------|----------:|--------:
sonarjs/aws-restricted-ip-admin-access | 12797.845 |    17.5%
compat/compat                          | 10690.637 |    14.7%
import/namespace                       | 10472.175 |    14.4%
@typescript-eslint/no-deprecated       | 10426.921 |    14.3%
sonarjs/no-redundant-assignments       |  2606.446 |     3.6%
sonarjs/no-dead-store                  |  2232.571 |     3.1%
sonarjs/no-async-constructor           |  1241.067 |     1.7%
@typescript-eslint/naming-convention   |  1027.749 |     1.4%
@stylistic/indent                      |   998.776 |     1.4%
import/default                         |   995.802 |     1.4%

________________________________________________________
Executed in   90.29 secs    fish           external
   usr time  113.99 secs   39.00 micros  113.99 secs
   sys time    2.69 secs  981.00 micros    2.69 secs
```

Lint time after:

```
Rule                                 | Time (ms) | Relative
:------------------------------------|----------:|--------:
@typescript-eslint/no-deprecated     | 10757.130 |    17.9%
import/namespace                     | 10374.169 |    17.2%
compat/compat                        |  9974.127 |    16.6%
sonarjs/no-redundant-assignments     |  2702.038 |     4.5%
sonarjs/no-dead-store                |  2266.311 |     3.8%
sonarjs/no-async-constructor         |  1264.104 |     2.1%
@stylistic/indent                    |  1000.857 |     1.7%
import/default                       |   990.011 |     1.6%
@typescript-eslint/naming-convention |   888.189 |     1.5%
sonarjs/argument-type                |   837.332 |     1.4%

________________________________________________________
Executed in   78.15 secs    fish           external
   usr time  100.32 secs    0.18 millis  100.32 secs
   sys time    2.79 secs    1.01 millis    2.79 secs
```

[1]: e669e615fa/packages/analysis/src/jsts/rules/S6321/rule.ts
2026-04-21 17:13:27 -07:00
Bill Thornton
b91a292c78 Fix lint errors 2026-03-18 16:57:51 -04:00
Niels van Velzen
de100462c3 use PascalCase for api_key parameter 2025-07-09 22:12:17 +02:00
viown
78c627fbd6 Require full import for @mui/icons-materials
Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com>
2025-05-08 20:48:26 +03:00
Bill Thornton
590ce49f15 Add eslint rules for restricted imports 2025-04-09 18:02:49 -04:00
Bill Thornton
ad2472e90e Fix unused var and pseudorandom warnings 2025-03-27 12:15:56 -04:00
Bill Thornton
b885cfdc83 Replace sonarjs deprecated rule with typescript version 2025-03-27 11:11:58 -04:00
Bill Thornton
7d9acf30b6 Update eslint config format 2025-02-20 12:51:44 -05:00