Skip to content

Commit 5c9310b

Browse files
committed
chore(eslint): Use eslint-config-pretty
1 parent d192072 commit 5c9310b

File tree

3 files changed

+13
-20
lines changed

3 files changed

+13
-20
lines changed

.eslintrc.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,4 @@
11
module.exports = {
2-
extends: [
3-
'@metahub/eslint-config/es6-config',
4-
'@metahub/eslint-config/node-config',
5-
'@metahub/eslint-config/promise-config',
6-
'@metahub/eslint-config/ava-config',
7-
'@metahub/eslint-config/prettier-config',
8-
],
2+
extends: ['pretty/es6', 'pretty/node', 'pretty/promise', 'pretty/ava', 'pretty/prettier'],
93
parserOptions: {sourceType: 'module'},
104
};

lib/index.js

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ const DEFAULT_RELEASE_RULES = require('./default/release-rules');
1313
*/
1414

1515
/**
16-
* Determine the type of release to create based on a list of commits.
17-
*
18-
* @param {Object} pluginConfig semantic-release configuration
19-
* @param {string} pluginConfig.preset conventional-changelog preset ('angular', 'atom', 'codemirror', 'ember', 'eslint', 'express', 'jquery', 'jscs', 'jshint')
20-
* @param {string} pluginConfig.config requierable npm package with a custom conventional-changelog preset
21-
* @param {string|Array} pluginConfig.releaseRules a string to load an external module or an `Array` of rules.
22-
* @param {Object} pluginConfig.parserOpts additional `conventional-changelog-parser` options that will overwrite ones loaded by `preset` or `config`.
23-
* @param {Object} options semantic-release options
24-
* @param {Array} options.commits array of commits
25-
* @param {commitAnalyzerCallback} callback The callback called with the release type.
26-
*/
16+
* Determine the type of release to create based on a list of commits.
17+
*
18+
* @param {Object} pluginConfig semantic-release configuration
19+
* @param {string} pluginConfig.preset conventional-changelog preset ('angular', 'atom', 'codemirror', 'ember', 'eslint', 'express', 'jquery', 'jscs', 'jshint')
20+
* @param {string} pluginConfig.config requierable npm package with a custom conventional-changelog preset
21+
* @param {string|Array} pluginConfig.releaseRules a string to load an external module or an `Array` of rules.
22+
* @param {Object} pluginConfig.parserOpts additional `conventional-changelog-parser` options that will overwrite ones loaded by `preset` or `config`.
23+
* @param {Object} options semantic-release options
24+
* @param {Array} options.commits array of commits
25+
* @param {commitAnalyzerCallback} callback The callback called with the release type.
26+
*/
2727
module.exports = async (pluginConfig, {commits}, callback) => {
2828
try {
2929
const releaseRules = loadReleaseRules(pluginConfig);

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,7 @@
2323
"@commitlint/cli": "^3.1.3",
2424
"@commitlint/config-angular": "^3.1.1",
2525
"@metahub/cz-conventional-commit": "^2.0.0",
26-
"@metahub/eslint-config": "^1.6.1",
2726
"ava": "^0.22.0",
28-
"babel-eslint": "^7.2.3",
2927
"codecov": "^2.3.0",
3028
"commitizen": "^2.9.6",
3129
"conventional-changelog-atom": "^0.1.1",
@@ -35,6 +33,7 @@
3533
"conventional-changelog-jshint": "^0.2.0",
3634
"eslint": "^4.5.0",
3735
"eslint-config-prettier": "^2.3.0",
36+
"eslint-config-pretty": "^2.0.1",
3837
"eslint-plugin-ava": "^4.2.1",
3938
"eslint-plugin-babel": "^4.1.2",
4039
"eslint-plugin-eslint-comments": "^1.0.3",

0 commit comments

Comments
 (0)