0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-30 08:56:14 +01:00
Commit Graph

121 Commits

Author SHA1 Message Date
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