Anthony Le Goas
58790a9281
a11y: check if mouse events are accompanied by key events ( #5938 )
4 years ago
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
4 years ago
Roy Choo
228832c9a3
fix: :global(...):some-pseudoclass should be considered global ( #6317 )
4 years ago
Tan Li Hau
bbcc1e7479
disallow multiple selectors inside :global() ( #6428 )
4 years ago
Térence Hollander
842b8412b6
fix(a11y): do not warn if href value is dynamic ( #6110 )
4 years ago
Tan Li Hau
3d1af7fb68
support :global() in compound selector ( #6223 )
4 years ago
Tan Li Hau
1d6e20f2a9
implement <svelte:fragment> ( #4556 )
...
add validation and test
replace svelte:slot -> svelte:fragment
slot as a sugar syntax
fix eslint
4 years ago
Tan Li Hau
6589aa2548
warn module variables are nonreactive and make them truly nonreactive ( #5847 )
4 years ago
Saurav Sahu
87417e5a7b
fix: "foreign" namespace elements should still allow binding 'this' ( #5942 )
4 years ago
halfnelson
a7eff8894f
add `foreign` namespace to preserve attribute case and skip HTML-specific a11y validations ( #5652 )
4 years ago
Tan Li Hau
2d5d6b05ed
warn if React attributes are used ( #5836 )
4 years ago
Mikail Khan
9745b61aab
fixed typo in each loop animation error ( #5648 )
4 years ago
Andreas Ehrencrona
ddf13211af
Updated to ESLint config 5.4.0 ( #5541 )
4 years ago
Ben McCann
229a16d6e7
upgrade ESLint config ( #5472 )
4 years ago
Tan Li Hau
2d88dc460e
warn for possible use of component without uppercase tag name ( #5302 )
4 years ago
Ben McCann
0645631b28
Use TypeScript in tests ( #5433 )
4 years ago
Tan Li Hau
a1651ca271
add nonpassive event modifier ( #5442 )
...
Co-authored-by: filipot <filipot@stud.ntnu.no>
4 years ago
Tan Li Hau
6e0cd9bcbf
fix missing-declaration warning for use:obj.method ( #5454 )
4 years ago
Tan Li Hau
aef5671411
update acorn and parse expression as module script ( #5423 )
4 years ago
Bassam Ismail
fb51dd8f07
add a11y-media-has-caption check ( #5075 )
4 years ago
Bassam Ismail
62ab75e365
add a11y-label-has-associated-control check ( #5074 )
4 years ago
Bassam Ismail
10f7b5ee70
skip a11y-missing-content check with contenteditable bindings ( #5023 )
5 years ago
pushkin
0da70f46b9
handle line ending differences in tests ( #4915 )
5 years ago
André Lins
f7d1bf35a0
A11y rule no-onchange ( #4788 )
...
* A11y rule no-onchange
* Fix message
* Fix tests
* Removing declarations
5 years ago
Tan Li Hau
37cc5888f8
dry {#each}/{#await} destructuring ( #4596 )
5 years ago
Conduitry
bdabd89f09
fix exception with empty alt attribute ( #4778 )
5 years ago
Doga Genc
ba89c29b98
fix img-reduntant-alt bug ( #4771 )
5 years ago
André Lins
153b128fe2
a11y: implement img-redundant-alt ( #4750 )
5 years ago
André Lins
07242f994c
a11y: do not warn about <a name> / <a id> ( #4739 )
5 years ago
Kalan
56d1af493b
a11y: warn about href="javascript:..." ( #4733 )
5 years ago
Daniel Imfeld
ddfb751fc9
prevent illegal attribute names at compile time ( #4650 )
5 years ago
Tan Li Hau
77ec48deba
add await catch shorthand ( #4490 )
5 years ago
Tan Li Hau
5bb5ba4c76
complain if named slots other than direct descendant of component ( #4509 )
5 years ago
vlasy
e06a900b23
throw compiler error when binding directly to const variables ( #4506 )
5 years ago
Tan Li Hau
fdc89ebb62
warn if component is expected to be reactive ( #4409 )
5 years ago
Conduitry
f5f489984f
fix handling of reserved keywords when parsing ( #4390 )
5 years ago
Tan Li Hau
527ddea289
disallow binding variables declared in await and catch
5 years ago
burningTyger
b9368d5de4
remove quotes from code suggestion
5 years ago
David Kondrad
6b5a4870df
tests: validator: add support for customElement compile option + test cases ( #4133 )
5 years ago
Benjamin W. Broersma
3433418dce
Skip JS globals for InlineComponent nodes in warn_if_undefined. ( #4071 )
5 years ago
Conduitry
e996ef750d
fix warnings for props that are only used as stores ( #4021 )
5 years ago
Richard Harris
74fa2447b1
error on empty css declarations - fixes #3801
5 years ago
Tan Li Hau
81c5c480e8
feat: warn unused exports
5 years ago
Richard Harris
ad0e8670ca
tweak text of warning
5 years ago
Tan Li Hau
cfd3b63b9b
warn if using svelte:options tag without compile_options.customElement
5 years ago
Tan Li Hau
5dbb08d19b
allow solo for test suite ( #3747 )
5 years ago
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
5 years ago
Samuel Elgozi
7342d484f1
feat: #3372 added a new `self` event modifier
5 years ago
Rich Harris
e41a4846c3
Merge pull request #3348 from sveltejs/gh-3272
...
throw error if $ is referenced as global
5 years ago
Richard Harris
e3e3ad9be0
disable validation with magic comments
5 years ago
Richard Harris
46cd6ff370
disallow global references to $$-prefixed vars
5 years ago
Richard Harris
4c8f3a296c
throw error if $ is referenced as global - fixes #3272
5 years ago
Rich Harris
cf24dbd6a9
Merge pull request #3336 from Conduitry/gh-3274
...
don't warn when using each index in key
5 years ago
Conduitry
c04def9081
don't warn when using each index in key ( #3274 )
5 years ago
Conduitry
276eb8e553
fix erroneous a11y warning with input type='image' ( #3331 )
5 years ago
Rich Harris
1fc4b1c867
add Error to known globals, declare catch block parameter. fixes #3064
6 years ago
Rich Harris
4e8755338a
oops
6 years ago
Rich Harris
86c5086c54
add some docs, rename to textContent and innerHTML
6 years ago
Richard Harris
8d25f5da0a
Merge branch 'master' of https://github.com/leporo/svelte
6 years ago
Rich Harris
1102ff6426
support once modifier on component events, fail on others ( #2987 )
...
* support once modifier on component events, fail on others. fixes #2654
* appease the gods of typescript
6 years ago
Rich Harris
c1960f9ef8
Merge branch 'master' into master
6 years ago
James Garbutt
caebe0deb8
Introduce ESLint to svelte sources ( #2958 )
...
* introduce eslint
* add lint npm script
* first eslint run
* use tsc stronger checks for unused vars
* fix strict typescript unused checks
* reintroduce unicode oddities
* revert ordering changes
* revert whitespace changes
* set indent lint rule as error and ignore outliers
* revert some more unicode
* reintroduce scissors unicode again
6 years ago
Vlad Glushchuk
450464f014
Add bind:text and bind:html support for contenteditable elements
...
Fixes #310
6 years ago
Emil Tholin
3f31223186
Add error for missing equals after attribute name
6 years ago
Rich Harris
f9a66e558b
failing missing-declaration test
6 years ago
Emil Tholin
0286dce026
Warn on improper use of reactive declarations
6 years ago
Rich Harris
78332cf5b0
Merge pull request #2664 from EmilTholin/each-block-destructuring-rest
...
Add support for object-rest in each destructuring
6 years ago
Rich Harris
16dbb8f437
Merge pull request #2607 from EmilTholin/figcaption_figure_first_element_ancestor
...
Check if a figcaption's first element ancestor is a figure
6 years ago
Emil Tholin
97ee67c08f
Add support for object-rest in each destructuring
6 years ago
Emil Tholin
6ebd72fc22
Check if a figcaption's first element ancestor is a figure
6 years ago
Emil Tholin
7ec1bdb712
Don't show 'Empty block' warnings for non-existent await branches
6 years ago
Richard Harris
cd0f535d83
better error for bindings to let: values - fixes #2301
6 years ago
Richard Harris
30c8fe0c6e
allow reactive declarations without dependencies - fixes #2285
6 years ago
Rich Harris
a59cd36a39
Merge pull request #2321 from sveltejs/gh-2295
...
Fix exception and warning for global variables
6 years ago
Conduitry
ecd7c6e9aa
warn on template references to global variables ( #2295 )
6 years ago
Conduitry
fa79a72348
disallow bindings to global variables ( #2295 )
6 years ago
Rich Harris
16106d113d
handle foreignObject correctly, default to svg namespace for top-level svg elements - fixes #2298
6 years ago
Richard Harris
34c4f79998
augment warnings to help people figure out they need to add a <script>
6 years ago
Richard Harris
73e45ab483
update validate tests
6 years ago
Conduitry
a26b276c5e
update tests
6 years ago
Rich Harris
4541d58798
Add a tutorial ( #2132 )
6 years ago
Richard Harris
248f55a574
move warnings out of stats
6 years ago
Richard Harris
f1d4ff6268
remove onwarn option, just use stats.warnings instead
6 years ago
Richard Harris
871147260c
always warn on empty block - fixes #2042
6 years ago
Rich Harris
206a3d0131
update tests
6 years ago
Rich Harris
687e352209
rename .html files to .svelte
6 years ago
Rich Harris
f64a661fa5
better cyclical dependency detection - fixes #2055
6 years ago
Conduitry
a270661d20
rename `<svelte:meta>` to `<svelte:options>` ( #2017 )
6 years ago
Conduitry
67af1a203e
disallow `slot` as a prop name in inline components ( #2019 )
6 years ago
Rich Harris
b1d919f3f2
Overhaul stats — closes #1891
6 years ago
Rich Harris
c2e6d1bf0d
Better composition — implements https://github.com/sveltejs/rfcs/pull/12
6 years ago
Richard Harris
88c674079b
always use stats.warn instead of options.onwarn - fixes #1918
6 years ago
Rich Harris
48f1f6b4d0
implement `bind:this`
6 years ago
Rich Harris
f45e2b70fd
Implement reactive assignments ( #1839 )
...
This also includes elements of RFCs 2 and 3
6 years ago
Rich Harris
b3b95d4ee6
disallow passive|preventDefault combo
6 years ago
Rich Harris
8ec02b336d
disallow once/passive in legacy mode, for now
6 years ago
Rich Harris
aa203973e0
add some more modifier validation tests
6 years ago
Rich Harris
769e03296f
merge master -> gh-1088
6 years ago
Rich Harris
945134bc81
warn on unused helpers - fixes #1704
6 years ago
Rich Harris
c52a6f011b
dont warn on empty block for nbsp - fixes #1658
6 years ago