Alexander Ryzhikov
6d7bc4402f
fix: don't lowercase custom selectors variable name #4254 ( #4255 )
...
* fix: don't lowercase custom selectors variable name #4254
* proper fix for camelCased custom selector
* Move customs-selectors case snapshots to correct place
2018-04-04 15:19:51 +03:00
Evilebot Tnawi
c9bb96cd52
fix: don't break value property with inlined URL ( #4236 )
2018-04-02 14:16:39 +03:00
Evilebot Tnawi
f2f2390114
fix: inline comments in lists and maps ( #4205 )
2018-03-31 17:18:23 +03:00
Evilebot Tnawi
5537140296
fix: don't lowercase variable in css modules ( #4152 )
2018-03-15 18:16:28 +03:00
Evilebot Tnawi
94ec29dac7
fix: handle `unicode-range` ( #4117 )
2018-03-07 21:15:06 +03:00
Evilebot Tnawi
4ddf1a6e84
fix: don't lowercase nesting selector ( #4048 )
2018-02-26 18:13:02 -07:00
Evilebot Tnawi
65b988a989
feat: ignore non standard IE filter values ( #4028 )
2018-02-26 14:58:38 +03:00
Evilebot Tnawi
7b457fd3b8
refactor: at rules parse ( #4023 )
2018-02-22 12:49:03 +03:00
Evilebot Tnawi
335fe638f5
refactor(css): printer ( #4024 )
2018-02-22 12:00:08 +03:00
Evilebot Tnawi
e1491d0f95
fix(css): comments in at rules ( #3920 )
2018-02-21 21:36:09 +03:00
Evilebot Tnawi
86f0b93e29
feat(css): improve math output ( #3984 )
2018-02-16 21:58:21 +03:00
Evilebot Tnawi
0f067d3832
feat(css): improve `@nest` at rule output ( #3976 )
2018-02-15 20:45:33 +03:00
Evilebot Tnawi
cce8924ef3
fix(css): `@nest` at rule ( #3975 )
2018-02-15 15:19:28 +03:00
Evilebot Tnawi
17c0f9bfe1
feat(css): lowercase html tags ( #3954 )
2018-02-13 18:41:55 +03:00
Evilebot Tnawi
c36cb7670a
tests(css): postcss popular plugins ( #3959 )
2018-02-12 20:12:09 +03:00
Evilebot Tnawi
ec4f4eb6d3
fix(css): don't eat selector namespace ( #3956 )
2018-02-12 18:39:03 +03:00
Evilebot Tnawi
1bb5cbaa4c
fix(css): space after math operations before parens ( #3945 )
2018-02-10 20:57:06 +03:00
Evilebot Tnawi
087b68d183
fix(css): scss interpolation ( #3943 )
2018-02-10 02:05:48 +03:00
Evilebot Tnawi
d716c84156
fix(css): space and newlines before parenthesis ( #3930 )
2018-02-09 15:28:55 +03:00
Christian Zosel
fac08034e7
Split out location extraction into plugin config ( #3777 )
...
* Split out location extraction into plugin config
* Reduce set of exported function, rebase to current master
* Pass custom locStart/locEnd fn's directly to affected methods
* (wip) always use locStart/locEnd from plugin
* Convert graphql implementation
* Convert HTML implementation
* (wip) convert JS implementation
* Remove unused variables
* Continue conversion of JS implementation
* Replace "util.locStart" with direct call to "options.locStart"
* Remove util closure
* Add unit test for structure of shared util
* Fix linting error, simplify locStart/End implementations
2018-02-09 23:17:48 +11:00
Ika
47714f5d4b
feat(plugins): change external options to be plugin-level ( #3924 )
2018-02-09 00:06:38 +08:00
Evilebot Tnawi
bc027bd661
fix(css): space after `if` in `else` at rule ( #3921 )
2018-02-07 19:53:28 +03:00
Evilebot Tnawi
0e1358b5ca
Improve the printing of CSS at-rules ( #3896 )
...
fix(css): improve at rules print
2018-02-07 13:33:10 +03:00
Evilebot Tnawi
9e6bd15ade
fix(css): comments in selectors ( #3909 )
2018-02-07 13:20:13 +03:00
Evilebot Tnawi
1b13dc8974
fix(css): declaration comments ( #3897 )
2018-02-06 18:09:42 +03:00
Evilebot Tnawi
ebf83a9138
refactor(printer-postcss): use `node` name and implement helper functions ( #3893 )
2018-02-05 16:42:32 +03:00
Evilebot Tnawi
ed2a9be58e
fix(css): stringify unquoted data urls ( #3877 )
2018-02-02 20:39:53 +03:00
Evilebot Tnawi
f5e74cd70a
fix(css): at rules improve formatting and tests ( #3828 )
2018-02-02 18:06:47 +03:00
Evilebot Tnawi
ed5f68844f
fix(css): scss `global` flag ( #3844 )
2018-01-30 17:53:37 +03:00
Evilebot Tnawi
22ba2bcb64
fix(css): don't remove semicolon in `less` ruleset declaration ( #3841 )
2018-01-30 14:16:07 +03:00
Evilebot Tnawi
e3369db2c1
fix(css): handle namespace in attribute selector ( #3810 )
2018-01-26 13:00:20 +03:00
Evilebot Tnawi
a3bf378259
fix: handle YAML front matter block ( #3802 )
2018-01-24 19:44:09 +03:00
Evilebot Tnawi
5008836dc2
fix(css): remove whitespaces before ":" in scss maps ( #3814 )
2018-01-24 18:48:54 +03:00
Evilebot Tnawi
4c90608d11
fix: keep space between deep selector `>>>` ( #3792 )
2018-01-24 14:53:22 +03:00
Evilebot Tnawi
7797c93489
fix(css): ignore `media` params with scss interpolation ( #3801 )
2018-01-24 12:31:30 +03:00
Evilebot Tnawi
d3004b51ea
feat: remove extra spaces in `url` inside `@import` ( #3793 )
2018-01-23 23:33:19 +03:00
Evilebot Tnawi
fc200c9432
fix(css): remove other types of whitespace in `clean` ( #3799 )
2018-01-23 20:57:23 +03:00
Brian Ng
a8fb1863a2
Merge pull request #3797 from prettier/feat-css-lowercase-wide-keywords
...
feat(css): lowercase wide keywords
2018-01-23 09:33:01 -06:00
Evilebot Tnawi
b2e8c6d374
feat: remove extra spaces in attribute selector ( #3794 )
2018-01-23 10:30:20 -05:00
evilebottnawi
591ee5a425
feat(css): lowercase wide keywords
2018-01-23 18:10:39 +03:00
Evilebot Tnawi
105914e45c
fix: don't handle args of `@warn` and `@error` directives as media query list ( #3769 )
2018-01-19 17:00:06 -07:00
Evilebot Tnawi
12441eb2dd
fix: don't add comma after `url` in `@import` directive ( #3770 )
2018-01-19 16:56:28 -07:00
Evilebot Tnawi
74d25c37f0
fix: don't change case of function name ( #3768 )
2018-01-19 15:39:44 +01:00
Evilebot Tnawi
64f1c06727
fix(scss/less): space after combinator operator ( #3738 )
2018-01-13 13:17:29 -02:00
Evilebot Tnawi
934f679705
fix(scss): `!default` directive ( #3724 )
2018-01-12 22:12:02 +11:00
Aleks Hudochenkov
b67fd8e155
Don't add end of line to empty CSS ( #3723 )
...
Fixes #3440 .
2018-01-11 16:05:57 -05:00
Christopher Chedeau
a4dd86436a
[scss] Print comments inside of selector as is ( #3649 )
...
Fixes #3647
2018-01-04 19:03:04 -08:00
Ika
6c0dd74518
feat(support-info): add `options` field ( #3433 )
...
* refactor: rename supportTable with supportLanguages
* refactor: use `dedent`
* test: reduce unnecessary data
* feat(support-info): add `options` field
* add `showDeprecated` option
* add `showUnreleased` option
* test: snapshot diff
* fix(support): add missing `since`
* fix: add missing `category`
* refactor: use template tag
* fix: `trailingComma:true` should redirect to `trailingComma:es5`
* refactor: reorder parser
* refactor: fix linting
* refactor: move options
* refactor: move options to printers
2017-12-31 15:34:37 +11:00
Lucas Azzola
a041914551
Extract cleanAST to language-specific files ( #3610 )
...
* Extract cleanAST to language-specific files
* Fix lint
* Fix clean-ast for vue and glimmer
2017-12-30 21:30:09 +11:00
Lucas Azzola
4c9d4061da
Prettier Plugin API ( #3536 )
...
* Move files around in preparation for refactor
* Update paths in build script
* Extract generic printing logic from the JavaScript printer
* Conform printer API
* Fixup decorator handling
* Fix multiparser
* Create plugin entry for markdown
* Create plugin entry for javascript/typescript
* Create plugin entry for html
* Create plugin entry for graphql
* Create plugin entry for css/less/scss
* Move JSON to JS plugin entry
* Integrate plugins into getSupportInfo()
* Move astFormat to parser definition
* Move util to common
* Implement parser loading
* remark -> mdast
* Rename cli/cli -> cli/index
* Rename builder -> doc package, fix printer resolution
* Fix doc shape assumption in CSS-in-JS logic
* Fix third-party.js prod resolution
* Fixup build-docs script
* Distribute multiparser code
* Remove requirement to forward options
* Flatten closure
* Remove debug directory
* Expose doc
* Add external plugins
* Pass options to loadPlugins
* Export getParsers
* Pin resolve version
* Use getSupportInfo in Markdown embed
* Document plugin API
* Update build-docs
* Add CLI for plugins
* Lint docs
* Fixup build.js
* Add vue language
* Fixup multiparser for vue
* Upgrade rollup and rollup-plugin-commonjs
* Fixup third-party build
* Change AST format in docs
2017-12-26 12:23:50 +11:00