Skip to content

Commit

Permalink
feat(package): upgrade Prettier to v2.x.x
Browse files Browse the repository at this point in the history
  • Loading branch information
gurpreetatwal committed Jun 24, 2020
1 parent 4934c4b commit 914969c
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 19 deletions.
24 changes: 12 additions & 12 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
"posttest": "npm run -s check-rules"
},
"dependencies": {
"@smartcar/prettier-config": "^1.0.0",
"eslint-config-prettier": "^6.9.0",
"@smartcar/prettier-config": "^1.0.1",
"eslint-config-prettier": "^6.11.0",
"eslint-plugin-array-func": "^3.1.3",
"eslint-plugin-ava": "^9.0.0",
"eslint-plugin-eslint-comments": "^3.1.2",
Expand All @@ -47,7 +47,7 @@
"eslint-plugin-mocha": "^6.2.2",
"eslint-plugin-no-use-extend-native": "^0.4.1",
"eslint-plugin-node": "^11.0.0",
"eslint-plugin-prettier": "^3.1.2",
"eslint-plugin-prettier": "^3.1.4",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-sonarjs": "^0.5.0",
"eslint-plugin-unicorn": "^15.0.1"
Expand All @@ -58,7 +58,7 @@
"eslint": "^6.8.0",
"is-plain-obj": "^2.0.0",
"lodash.difference": "^4.5.0",
"prettier": "^1.19.1",
"prettier": "^2.0.5",
"semantic-release": "^17.1.0",
"sort-package-json": "^1.44.0"
},
Expand Down
6 changes: 3 additions & 3 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,16 +17,16 @@ const prettierRules = {
};

const configs = readdirSync('.')
.filter(function(file) {
.filter(function (file) {
const blacklist = ['release.config.js', '.eslintrc.js', '.prettierrc.js'];
return extname(file) === '.js' && !blacklist.includes(file);
})
.map(function(file) {
.map(function (file) {
const name = basename(file, '.js');
return { name, config: require(join('..', file)) };
});

configs.forEach(function({ name, config }) {
configs.forEach(function ({ name, config }) {
test(`${name} - type check`, t => {
t.true(isPlainObj(config));
t.true(isPlainObj(config.rules));
Expand Down

0 comments on commit 914969c

Please sign in to comment.