Skip to content

Commit

Permalink
build: use XO instead of custom eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
pvdlg committed Jan 14, 2018
1 parent 4b15d36 commit 4c4d96b
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 25 deletions.
4 changes: 0 additions & 4 deletions .eslintrc.js

This file was deleted.

39 changes: 20 additions & 19 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,37 +7,28 @@
"url": "https://github.com/vanduynslagerp/cz-conventional-commit/issues"
},
"dependencies": {
"commitizen": "^2.9.6",
"conventional-changelog-metahub": "^1.1.0",
"lodash": "^4.17.4",
"word-wrap": "^1.2.3"
},
"devDependencies": {
"@commitlint/core": "^6.0.2",
"ava": "^0.24.0",
"babel-cli": "^6.26.0",
"babel-preset-env": "^1.6.0",
"codecov": "^3.0.0",
"conventional-commits-parser": "^2.0.0",
"emoji-regex": "^6.5.1",
"eslint": "^4.5.0",
"eslint-config-prettier": "^2.3.0",
"eslint-config-pretty": "^2.1.1",
"eslint-plugin-ava": "^4.2.1",
"eslint-plugin-babel": "^4.1.2",
"eslint-plugin-eslint-comments": "^2.0.1",
"eslint-plugin-import": "^2.7.0",
"eslint-plugin-jasmine": "^2.8.4",
"eslint-plugin-json": "^1.2.0",
"eslint-plugin-node": "^5.1.1",
"eslint-plugin-prettier": "^2.2.0",
"eslint-plugin-promise": "^3.5.0",
"eslint-plugin-sort-class-members": "^1.2.0",
"eslint-plugin-unicorn": "^3.0.0",
"eslint-config-prettier": "^2.9.0",
"eslint-plugin-prettier": "^2.4.0",
"nyc": "^11.1.0",
"prettier": "^1.7.2",
"prettier": "~1.10.0",
"rimraf": "^2.6.1",
"semantic-release": "^12.0.0",
"sinon": "^4.0.0",
"stringz": "^0.4.0"
"stringz": "^0.4.0",
"xo": "^0.18.2"
},
"engines": {
"node": ">=4"
Expand Down Expand Up @@ -71,6 +62,12 @@
"peerDependencies": {
"commitizen": "*"
},
"prettier": {
"printWidth": 120,
"singleQuote": true,
"bracketSpacing": false,
"trailingComma": "es5"
},
"publishConfig": {
"access": "public"
},
Expand All @@ -88,13 +85,17 @@
"url": "https://github.com/vanduynslagerp/cz-conventional-commit.git"
},
"scripts": {
"clean": "rimraf coverage && rimraf .nyc_output",
"codecov": "codecov -f coverage/coverage-final.json",
"compile": "rimraf lib && babel src --source-maps --out-dir lib",
"lint": "eslint src test package.json",
"lint": "xo",
"prepublishOnly": "npm run compile",
"pretest": "npm run clean && npm run compile && npm run lint",
"pretest": "npm run compile && npm run lint",
"semantic-release": "semantic-release",
"test": "nyc ava -vv"
},
"xo": {
"extends": [
"plugin:prettier/recommended"
]
}
}
3 changes: 1 addition & 2 deletions src/questions.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,8 @@ export default function questions(options, config) {
validate(input) {
if (input) {
return true;
} else {
return 'Commit subject message is mandatory';
}
return 'Commit subject message is mandatory';
},
},
{type: 'input', name: 'body', message: 'Provide a longer description of the change:\n'},
Expand Down

0 comments on commit 4c4d96b

Please sign in to comment.