Skip to content

Commit

Permalink
fix: Fix parser warnings & update prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
ismail-syed committed Nov 15, 2017
1 parent 2e37e73 commit 1f0cf83
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"import-local": "^0.1.1",
"meow": "^3.7.0",
"pify": "^3.0.0",
"prettier": "^1.7.0",
"prettier": "^1.8.2",
"resolve-from": "^4.0.0",
"stylelint": "^8.1.1",
"temp-write": "^3.3.0",
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ resolveConfig.resolve = (stylelintConfig, prettierOptions = {}) => {
prettierOptions.tabWidth = indentation;
}
}
prettierOptions.parser = 'postcss';
prettierOptions.parser = 'css';
debug('prettier %O', prettierOptions);
debug('linter %O', stylelintConfig);

Expand Down
4 changes: 2 additions & 2 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,11 @@ test('resolve relative package deep', (t) => {
test('resolve relative package fallback', (t) => {
const path = resolveFrom('./fixtures/style.css', 'prettier');

t.is('1.7.0', require(path).version);
t.is('1.8.2', require(path).version);
});

test('resolve relative package null', (t) => {
const path = resolveFrom(__filename, 'prettier');

t.is('1.7.0', require(path).version);
t.is('1.8.2', require(path).version);
});
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3627,9 +3627,9 @@ preserve@^0.2.0:
version "0.2.0"
resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b"

prettier@^1.7.0:
version "1.7.0"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.7.0.tgz#47481588f41f7c90f63938feb202ac82554e7150"
prettier@^1.8.2:
version "1.8.2"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.8.2.tgz#bff83e7fd573933c607875e5ba3abbdffb96aeb8"

pretty-ms@^0.2.1:
version "0.2.2"
Expand Down

0 comments on commit 1f0cf83

Please sign in to comment.