diff options
author | XhmikosR <xhmikosr@gmail.com> | 2021-12-01 15:10:19 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-01 15:10:19 +0300 |
commit | 7e8ac77fdba8e7d13de133843d32d139da686ab9 (patch) | |
tree | 4c0867006337e4f4641ffa82da906e9f13e6f311 /test | |
parent | 990c7e6ecb8ed3a6495dbda9816b5ef7bec080e2 (diff) |
Lint tweaks (#422)
* switch to always using a space in object curly braces
* consistently use strict mode
* move a constant outside of the constructor
* use Object spread instead of Object.assign
* use a ternary in more places
* remove redundant parentheses
* enable `prefer-template` rule so that we are consistent
* return early in a few cases
Diffstat (limited to 'test')
-rw-r--r-- | test/lib/result.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/lib/result.js b/test/lib/result.js index cd41b45..0dea480 100644 --- a/test/lib/result.js +++ b/test/lib/result.js @@ -17,7 +17,7 @@ const postcssTests = require('../postcss/tests.js'); // Functions function format(css) { - return prettier.format(css, {parser: 'css'}).replace(/(\n)(\n)/g, '$1'); + return prettier.format(css, { parser: 'css' }).replace(/(\n)(\n)/g, '$1'); } function getFileContent(folder, id, ext) { |