Fix Sass beautification and close #1088
- Remove the incomplete Sass support provided by Pretty Diff and CSScomb - Change the default beautifier of Sass to SassConvert
This commit is contained in:
parent
bef88cf4dc
commit
69aefcd1cb
|
@ -97,7 +97,7 @@ See [all supported options in the documentation at `docs/options.md`](https://g
|
|||
| Riot.js | `Riot.js`, `HTML (Riot Tag)` |`.tag` | [`Pretty Diff`](https://github.com/prettydiff/prettydiff) (Default) |
|
||||
| Ruby | `Ruby`, `Ruby on Rails` |`.rb` | [`Rubocop`](https://github.com/bbatsov/rubocop) (Default), [`Ruby Beautify`](https://github.com/erniebrodeur/ruby-beautify) |
|
||||
| Rust | `Rust` |`.rs`, `.rlib` | [`rustfmt`](https://github.com/nrc/rustfmt) (Default) |
|
||||
| Sass | `Sass` |`.sass` | [`CSScomb`](https://github.com/csscomb/csscomb.js), [`Pretty Diff`](https://github.com/prettydiff/prettydiff) (Default) |
|
||||
| Sass | `Sass` |`.sass` | [`SassConvert`](http://sass-lang.com/documentation/file.SASS_REFERENCE.html#syntax) (Default) |
|
||||
| SCSS | `SCSS` |`.scss` | [`CSScomb`](https://github.com/csscomb/csscomb.js), [`Pretty Diff`](https://github.com/prettydiff/prettydiff) (Default) |
|
||||
| Spacebars | `Spacebars` | | [`Pretty Diff`](https://github.com/prettydiff/prettydiff) (Default) |
|
||||
| SQL | `SQL (Rails)`, `SQL` |`.sql` | [`sqlformat`](https://github.com/andialbrecht/sqlparse) (Default) |
|
||||
|
|
|
@ -12,7 +12,6 @@ module.exports = class JSBeautify extends Beautifier
|
|||
predefinedConfig: true
|
||||
CSS: true
|
||||
LESS: true
|
||||
Sass: true
|
||||
SCSS: true
|
||||
}
|
||||
|
||||
|
|
|
@ -55,7 +55,6 @@ module.exports = class PrettyDiff extends Beautifier
|
|||
JavaScript: true
|
||||
CSS: true
|
||||
SCSS: true
|
||||
Sass: true
|
||||
JSON: true
|
||||
TSS: true
|
||||
Twig: true
|
||||
|
@ -103,7 +102,7 @@ module.exports = class PrettyDiff extends Beautifier
|
|||
lang = "css"
|
||||
when "LESS"
|
||||
lang = "less"
|
||||
when "SCSS", "Sass"
|
||||
when "SCSS"
|
||||
lang = "scss"
|
||||
when "TSS"
|
||||
lang = "tss"
|
||||
|
|
|
@ -2,7 +2,7 @@ module.exports = {
|
|||
|
||||
name: "Sass"
|
||||
namespace: "sass"
|
||||
fallback: ['css', 'scss']
|
||||
fallback: ['css']
|
||||
|
||||
###
|
||||
Supported Grammars
|
||||
|
@ -18,6 +18,6 @@ module.exports = {
|
|||
"sass"
|
||||
]
|
||||
|
||||
defaultBeautifier: "Pretty Diff"
|
||||
defaultBeautifier: "SassConvert"
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue