0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-12-01 01:11:24 +01:00
Commit Graph

9 Commits

Author SHA1 Message Date
Ben McCann
868ddb8441
docs: fix typo 2024-09-29 09:23:38 -07:00
Simon H
c4b721584a
chore: repo cleanup (#13029)
* chore: cleanup repo configs

- remove prettier from packages, everything runs through the root now (also better aligns with how you work with it in VS Code: no more config duplication needed)
- remove eslint from packages, run it once through the root now (revealed some inconsistencies and missing stuff, config tightened up as a result) (bump eslint while we're at it)

* update vite and related packages (since rollup includes an addition to one estree node we need to adjust code a bit)

* bump more packages

* bump jsdom

* lint
2024-08-26 11:30:45 -04:00
Simon H
5eff68f63d
chore: runtime linting (#12314)
- check that the runtime doesn't use methods that are too new
- add linting rule to prevent references to the compiler in the runtime (this is important for the first check, else the ambient node typings would be included, which includes a definition for `at()`, which means we no longer would get errors when violating the "don't use new methods" rule in the runtime)
- fix code as a result of these new checks

closes #10438
2024-07-05 23:32:44 +02:00
Ben McCann
ca6e9b5745
chore: validate promise handling (#11842)
* chore: don't swallow rejected promise errors

* ignore rules rather than adding catch blocks. add async to functions returning promises

* remove redundant asyncs

* remove extremely pointless rule

* remove another daft rule

* this is what typescript is for

* again, typescript already has this covered, we don't need it

* simplify

* this rule is harmless

---------

Co-authored-by: Rich Harris <rich.harris@vercel.com>
2024-06-04 15:26:59 -04:00
Rich Harris
50a9020d00 reorder eslint ignores 2024-05-13 18:41:33 -04:00
Rich Harris
faa2e937ab
chore: exclude local playground from eslint (#11596) 2024-05-13 17:34:50 -04:00
Rich Harris
94b4268ce3
chore: markdown runtime errors/warnings (#11304)
* chore: markdown runtime warnings

* on second thoughts

* start adding errors too

* lint

* centralise
2024-04-24 09:30:55 -04:00
Rich Harris
73490bbb8e
chore: markdown errors (#11294)
* rename errors.js to errors-tmp.js

* start porting errors

* generate markdown files for more errors

* convert parse errors

* convert css errors

* convert special_element errors

* convert runes errors

* convert element errors

* more

* more

* more

* more

* more

* more

* fix some tests

* fix some tests

* more tests

* remove unused error

* prettierignore

* weird

* ugh

* lint
2024-04-23 10:39:37 -04:00
Jeremiasz Major
0cf2e98322
chore: upgrade eslint to v9 (#11108) 2024-04-10 16:02:03 -07:00