Andrey Sitnik
19afb318d6
Sort source code and fix ESLint
2024-08-31 23:26:27 +02:00
Andrey Sitnik
843ab11b6e
Add Prettier
2021-03-11 19:11:37 -05:00
Remco Haszing
b94a22e19f
Fix usage of default exports with TypeScript
...
This is done by assigning the property `default` for all properties that are
exported using `export default` according to their type definitions.
Closes #1424
2020-11-10 14:24:37 +01:00
Andrey Sitnik
a99b67b5de
Fix import order
2020-10-01 19:32:56 -04:00
Andrey Sitnik
0048657b13
Add "use strict" because it may effect on tokenizer performance
2020-09-08 01:46:46 -04:00
Andrey Sitnik
fa6b5f9981
Add PrettierX
2020-07-06 17:24:57 -07:00
MapGrid and Andrey Sitnik
982bc498c6
Fix circular dependencies ( #1321 )
...
* fix circular dependencies
* move to static methods to fix imports
* remove default import from terminal highlight
2020-06-21 19:13:53 -04:00
Andrey Sitnik
04b816cbde
Remove Babel
2020-06-21 19:13:52 -04:00
Andrey Sitnik
f43a45a907
Use .es6 ext for ES6 sources
2015-08-17 16:20:40 +03:00
Andrey Sitnik
4e53c806ee
Remove safe option
2015-08-17 16:20:39 +03:00
Andrey Sitnik
382de6113d
Move Safe Parser to separated project
2015-08-17 16:20:39 +03:00
Andrey Sitnik
709200a2b4
Lint code with ESLint
2015-03-14 22:02:49 +03:00
Andrey Sitnik
c2d42370a2
Fix JSHint warnings
2015-02-14 13:42:12 +03:00
Andrey Sitnik
a6af7ab64e
Clean up imports
2015-02-14 13:23:49 +03:00
Andrey Sitnik
35e3c61417
Use ES6 export statement instead of module.exports
2015-02-14 13:17:18 +03:00
Andrey Sitnik
912d6ea2a0
Use ES6 import
2015-02-02 07:07:53 +03:00
Andrey Sitnik
1c09df2f68
Speed up parser by saving source only if map used
2014-11-06 13:22:04 +03:00
Andrey Sitnik
1a4ffbb8df
Parses nameless at-rules in Safe Mode
2014-11-06 13:22:04 +03:00
Andrey Sitnik
82d7a1aa0f
Add Input class to take repeated code from Parser and Tokenizer
2014-11-06 13:22:04 +03:00
Andrey Sitnik
88e513d9ad
Use separated argument for map in CssSyntaxError
2014-11-06 13:22:04 +03:00
Andrey Sitnik
c1342b1ffb
Use source map in syntax errors
2014-11-06 13:22:04 +03:00
Andrey Sitnik
3cb1d9cdc1
Clean up parser code
2014-11-06 13:22:04 +03:00
Andrey Sitnik
feb1419a90
Raise error on missed semicolon between properties
2014-11-06 13:22:04 +03:00
Andrey Sitnik
374211d783
Fix properties started from colon
2014-11-06 13:22:03 +03:00
Andrey Sitnik
e17e8be95d
Fix selectors started from colon
2014-11-06 13:22:03 +03:00
Termina1 and Andrey Sitnik
344b3e5f6c
Add better benchmarks
2014-11-06 13:22:03 +03:00
Termina1 and Andrey Sitnik
96d296326f
Improve tokenizer and parser perfomance
2014-11-06 13:22:03 +03:00
Andrey Sitnik
517876fb42
Detect from input file name by prev map
2014-11-06 13:22:03 +03:00
Andrey Sitnik
4492055c99
Detect map before parsing
2014-11-06 13:22:03 +03:00
Andrey Sitnik
24c92165af
PreviousMap now works with CSS string
2014-11-06 13:22:03 +03:00
Andrey Sitnik
59943bd6a6
More readable non-name ID
2014-11-06 13:22:02 +03:00
Andrey Sitnik
a1b4760508
Allow to parse mix of decls in rules
2014-11-06 13:22:02 +03:00
Andrey Sitnik
c3f61ddcac
New parser based on tokens
2014-11-06 13:22:02 +03:00
Andrey Sitnik
65d8a9a8a1
Add tokenizer
2014-11-06 13:22:02 +03:00
Andrey Sitnik
ad5e64c7ae
Allow to miss file name for inline maps
2014-08-06 00:53:21 +04:00
Andrey Sitnik
d39a9f5645
Replace strict to safe mode
2014-07-16 10:28:20 +04:00
Andrey Sitnik
f65d0e404d
Set value for unfinished property
2014-07-14 11:02:19 +04:00
Andrey Sitnik
16d8d862b2
Use real Decl#important property instead of magic
2014-07-12 15:21:13 +11:00
Andrey Sitnik
5b3745b98c
Fix unclosed value in non-strict mode
2014-07-12 15:10:34 +11:00
Andrey Sitnik
a1f6f23edf
Fix unclosed comment in non-strict mode
2014-07-12 14:55:53 +11:00
Andrey Sitnik
7240541bfa
Fix proprty in unclosed block in non-strict mode
2014-07-12 14:45:25 +11:00
Andrey Sitnik
94a7f432b1
Close unclosed blocks in non-strict mode
2014-07-12 14:32:08 +11:00
Andrey Sitnik
d1c4104e52
Throw missing property value in strict mode
2014-07-12 14:11:25 +11:00
Andrey Sitnik
0e3c0d7088
Clean raw properties magic to see property in inspect
2014-07-10 02:49:36 +11:00
Andrey Sitnik
0efb2dc97e
Add Browserhacks to integration tests and fix parser for this hacks
2014-07-09 14:21:15 +11:00
Andrey Sitnik
0b894e2044
Add JS lint and fix all warnings
2014-07-08 18:30:53 +11:00
Andrey Sitnik
c5838fa743
Rewrite parser to ES6
2014-07-04 03:59:21 +09:00