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

199 Commits

Author SHA1 Message Date
Tan Li Hau
f60cb22a9d
standalone :global() with multiple selectors shouldn't be treated as error (#6508) 2021-07-08 11:24:22 -04:00
Geoff Rich
391258aa10
Remove caption warning on <audio> (#6054) 2021-07-02 12:02:02 -07:00
Geoff Rich
e73f641ca5
Remove deprecated a11y-no-onchange warning (#6457) 2021-06-29 10:46:03 -04:00
Tan Li Hau
fca6a6d38a
:global() with pseudo element should be considered as global (#6470) 2021-06-29 10:45:29 -04:00
Tan Li Hau
98ddf8b588
update periscopic (#6471) 2021-06-29 10:44:54 -04:00
Ignatius Bagus
8c3fb922d8
only check selector that are direct children of :global (#6435)
* failing test for i6434

* use string match to simplify regexp

* more tests

* separate test suite

* test for commas inside attributes

* stricter regex pattern

* test escaped brackets and parentheses

* change latest test selector to lists

* correct failing test for escaped parentheses

* update with proposed pattern
2021-06-29 15:08:58 +08:00
Anthony Le Goas
58790a9281
a11y: check if mouse events are accompanied by key events (#5938) 2021-06-28 12:50:52 +02:00
Dennis Kaspar
b464320607
Add trusted modifier (#6149)
Fixes #6137

Adding a trusted modifier to make events not be dispatchable by console/sourcecode.
Useful to prevent injected code to automatically dispatch event for preventing botting
2021-06-27 18:48:42 +02:00
Roy Choo
228832c9a3
fix: :global(...):some-pseudoclass should be considered global (#6317) 2021-06-22 11:03:08 -04:00
Tan Li Hau
bbcc1e7479
disallow multiple selectors inside :global() (#6428) 2021-06-22 10:03:56 -04:00
Térence Hollander
842b8412b6
fix(a11y): do not warn if href value is dynamic (#6110) 2021-04-30 11:55:38 -04:00
Tan Li Hau
3d1af7fb68
support :global() in compound selector (#6223) 2021-04-30 10:35:40 -04:00
Tan Li Hau
1d6e20f2a9
implement <svelte:fragment> (#4556)
add validation and test

replace svelte:slot -> svelte:fragment

slot as a sugar syntax

fix eslint
2021-02-27 12:43:53 -05:00
Tan Li Hau
6589aa2548
warn module variables are nonreactive and make them truly nonreactive (#5847) 2021-01-29 15:05:04 -05:00
halfnelson
a7eff8894f
add foreign namespace to preserve attribute case and skip HTML-specific a11y validations (#5652) 2021-01-25 16:25:10 -05:00
Tan Li Hau
2d5d6b05ed
warn if React attributes are used (#5836) 2021-01-01 19:49:03 -05:00
Mikail Khan
9745b61aab
fixed typo in each loop animation error (#5648) 2020-11-05 19:06:53 -08:00
Andreas Ehrencrona
ddf13211af
Updated to ESLint config 5.4.0 (#5541) 2020-10-21 15:23:08 -07:00
Tan Li Hau
2d88dc460e
warn for possible use of component without uppercase tag name (#5302) 2020-09-29 16:13:23 -04:00
Tan Li Hau
a1651ca271
add nonpassive event modifier (#5442)
Co-authored-by: filipot <filipot@stud.ntnu.no>
2020-09-24 15:54:54 -04:00
Tan Li Hau
6e0cd9bcbf
fix missing-declaration warning for use:obj.method (#5454) 2020-09-24 09:48:27 -04:00
Tan Li Hau
aef5671411
update acorn and parse expression as module script (#5423) 2020-09-18 12:09:44 -04:00
Bassam Ismail
fb51dd8f07
add a11y-media-has-caption check (#5075) 2020-08-05 12:21:44 -04:00
Bassam Ismail
62ab75e365
add a11y-label-has-associated-control check (#5074) 2020-08-05 11:57:20 -04:00
Bassam Ismail
10f7b5ee70
skip a11y-missing-content check with contenteditable bindings (#5023) 2020-06-23 16:06:05 -04:00
André Lins
f7d1bf35a0
A11y rule no-onchange (#4788)
* A11y rule no-onchange

* Fix message

* Fix tests

* Removing declarations
2020-05-17 11:50:38 -04:00
Tan Li Hau
37cc5888f8
dry {#each}/{#await} destructuring (#4596) 2020-05-11 11:37:27 -04:00
Conduitry
bdabd89f09
fix exception with empty alt attribute (#4778) 2020-05-04 11:23:04 -04:00
Doga Genc
ba89c29b98
fix img-reduntant-alt bug (#4771) 2020-05-03 16:28:53 -04:00
André Lins
153b128fe2
a11y: implement img-redundant-alt (#4750) 2020-05-03 12:06:10 -04:00
André Lins
07242f994c
a11y: do not warn about <a name> / <a id> (#4739) 2020-04-29 15:42:11 -04:00
Kalan
56d1af493b
a11y: warn about href="javascript:..." (#4733) 2020-04-28 17:03:31 -04:00
Daniel Imfeld
ddfb751fc9
prevent illegal attribute names at compile time (#4650) 2020-04-23 10:18:03 -04:00
Tan Li Hau
77ec48deba
add await catch shorthand (#4490) 2020-04-20 09:27:21 -04:00
Tan Li Hau
5bb5ba4c76
complain if named slots other than direct descendant of component (#4509) 2020-03-15 05:54:06 -04:00
vlasy
e06a900b23
throw compiler error when binding directly to const variables (#4506) 2020-03-14 16:15:37 -04:00
Tan Li Hau
fdc89ebb62
warn if component is expected to be reactive (#4409) 2020-02-15 12:33:33 -05:00
Conduitry
f5f489984f
fix handling of reserved keywords when parsing (#4390) 2020-02-09 00:04:21 -05:00
Tan Li Hau
527ddea289 disallow binding variables declared in await and catch 2020-01-16 22:16:06 -05:00
burningTyger
b9368d5de4 remove quotes from code suggestion 2020-01-08 10:07:10 -05:00
David Kondrad
6b5a4870df tests: validator: add support for customElement compile option + test cases (#4133) 2019-12-23 14:06:41 -05:00
Benjamin W. Broersma
3433418dce Skip JS globals for InlineComponent nodes in warn_if_undefined. (#4071) 2019-12-09 09:15:49 -05:00
Conduitry
e996ef750d fix warnings for props that are only used as stores (#4021) 2019-12-04 13:05:29 -05:00
Richard Harris
74fa2447b1 error on empty css declarations - fixes #3801 2019-10-28 10:38:46 -04:00
Tan Li Hau
81c5c480e8 feat: warn unused exports 2019-10-27 13:42:50 +08:00
Richard Harris
ad0e8670ca tweak text of warning 2019-10-24 21:47:05 -04:00
Tan Li Hau
cfd3b63b9b warn if using svelte:options tag without compile_options.customElement 2019-10-24 11:54:50 +08:00
Colin Casey
ee8825d34f fix reactive declaration cycle detection + clearer error on cycle
- fixes #3459
- uses DFS traversal to inspect reactive declarations for cycles
- returns the cycle detected (e.g.; `a → b → a`) for error messaging
2019-09-06 10:12:40 -03:00
Samuel Elgozi
7342d484f1 feat: #3372 added a new self event modifier 2019-08-08 01:57:47 +03:00
Rich Harris
e41a4846c3
Merge pull request #3348 from sveltejs/gh-3272
throw error if $ is referenced as global
2019-08-04 17:51:37 -04:00