Rich Harris
5499327a70
refactoring, and more :global(...) fixes
2017-07-01 12:14:18 -04:00
Rich Harris
61f5cbef54
Merge pull request #630 from sveltejs/gh-620
...
only enforce static type if input is bound
2017-06-11 21:33:51 -04:00
Rich Harris
ff40308358
only enforce static type if input is bound ( fixes #620 )
2017-06-11 16:53:26 -04:00
Rich Harris
d45699db6f
warn on missing component ( #623 )
2017-06-11 15:45:25 -04:00
Rich Harris
10ecd81734
prettierfy test files
2017-06-02 22:04:36 -04:00
Rich Harris
1db0d465b0
Merge pull request #600 from sveltejs/gh-575
...
always use helpers if referenced, not just for CallExpressions, and warn on context clashes
2017-05-28 13:56:04 -04:00
Rich Harris
75ea52754d
always use helpers if referenced, not just for CallExpressions, and warn on context clashes ( #575 )
2017-05-27 13:22:56 -04:00
Rich Harris
b2ea03dde0
prevent textarea from having both value and children
2017-05-27 12:29:44 -04:00
Conduitry
4c740513f8
downgrade invalid callee error for event handlers to a warning ( #579 )
2017-05-10 08:01:26 -04:00
Rich-Harris
642b414c9c
validate transition directives - closes #564
2017-05-04 14:06:50 -04:00
Rich-Harris
37749bd3e4
validate <:Window>
2017-05-04 12:25:20 -04:00
Rich-Harris
5e042c4c8e
add test
2017-04-30 08:01:18 -04:00
Rich-Harris
754688cf48
include destroy as valid built-in method for event handlers ( fixes #523 )
2017-04-25 16:30:19 -04:00
Rich-Harris
e345287a76
rename root to state, and allow state to be used as context
2017-04-19 11:35:57 -04:00
Rich-Harris
b914a2294a
validate bindings
2017-04-18 10:12:03 -04:00
Rich Harris
cc722f8f7a
handle this.get special case in helpers
2017-04-12 11:30:33 -04:00
Rich Harris
fa65f7af60
enforce helper function purity
2017-04-12 11:23:08 -04:00
Rich Harris
c7ac8b82ba
check that event handler callee corresponds to a valid method
2017-04-12 10:42:55 -04:00
Rich Harris
3595470305
validate namespaces
2017-04-12 10:05:06 -04:00
Conduitry
86035c3f99
unit test
2017-04-10 18:58:05 -04:00
Rich Harris
99d6502bfd
better error for attempts to use getters/setters for methods. closes #425
2017-04-10 14:20:50 -04:00
Conduitry
f6934a1d20
disallow import root
during validation
2017-03-31 08:20:37 -04:00
Conduitry
6d1623cf0e
new aliaser mechanism replacing existing mechanism and counters; a bunch more deconflicting
2017-03-26 12:28:00 -04:00
Rich-Harris
60ed068a59
move tests around to facilitate registering babel based on environment
2017-03-07 14:10:28 -05:00
Rich Harris
543ee2f870
update tests
2017-03-01 11:45:55 -05:00
Rich Harris
11e613e7d0
handle default paramters in computed values ( fixes #274 )
2017-02-01 17:16:15 -05:00
Arpad Borsos
91551b9d43
make html validators work inside else blocks
2016-12-21 19:09:06 +01:00
Rich-Harris
a35c516350
bump coverage – duplicate default export is handled by acorn
2016-12-11 15:13:18 -05:00
Rich-Harris
4a610f7073
throw if default export is not an object literal
2016-12-11 14:57:59 -05:00
Rich-Harris
017b67aa38
ensure onrender and onteardown are not arrow function expressions
2016-12-11 10:42:44 -05:00
Rich-Harris
a6c648b086
error if method is an arrow function expression and uses this
or arguments
( #179 )
2016-12-11 10:34:50 -05:00
Rich-Harris
fbe130835d
add support for declared namespaces – fixes #147
2016-12-10 11:07:11 -05:00
Rich Harris
0e64f26712
gather names during validation, for later deoncflicting ( #88 )
2016-12-06 11:48:24 -05:00
Nico Rehwaldt
65cdead991
Verify computed property dependencies
...
Improves the validator to fail if someone forgets to declare
dependent properties for computed state:
```
export default {
computed: {
bar: () => { return new Date().getTime(); }
}
};
```
2016-12-04 21:22:48 +01:00
Rich-Harris
c199407db2
more validation
2016-11-26 11:34:16 -05:00
Rich-Harris
0698525f1b
basic validation
2016-11-26 10:52:25 -05:00