Skip to content

Commit fa80b1b

Browse files
committed
style: factor out parse from @commitlint/core
1 parent c1a0eee commit fa80b1b

39 files changed

+121
-37
lines changed

@commitlint/core/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,26 +55,26 @@
5555
},
5656
"license": "MIT",
5757
"devDependencies": {
58+
"@commitlint/parse": "^5.2.6",
5859
"@commitlint/test": "^5.2.6",
5960
"@commitlint/utils": "^5.1.1",
6061
"ava": "0.22.0",
6162
"babel-cli": "6.26.0",
6263
"babel-preset-commitlint": "^5.2.0",
6364
"babel-register": "6.26.0",
6465
"concurrently": "3.5.1",
66+
"conventional-changelog-angular": "^1.3.3",
6567
"cross-env": "5.1.1",
6668
"execa": "0.8.0",
6769
"globby": "6.1.0",
68-
"import-from": "2.1.0",
6970
"rimraf": "2.6.1",
7071
"xo": "0.18.2"
7172
},
7273
"dependencies": {
74+
"@commitlint/parse": "5.2.6",
7375
"@marionebl/sander": "^0.6.0",
7476
"babel-runtime": "^6.23.0",
7577
"chalk": "^2.0.1",
76-
"conventional-changelog-angular": "^1.3.3",
77-
"conventional-commits-parser": "^2.1.0",
7878
"cosmiconfig": "^3.0.1",
7979
"find-up": "^2.1.0",
8080
"git-raw-commits": "^1.3.0",

@commitlint/core/src/lint.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
import parse from '@commitlint/parse';
12
import {entries} from 'lodash';
23
import isIgnored from './library/is-ignored';
3-
import parse from './library/parse';
44
import implementations from './rules';
55

66
export default async (message, rules = {}, opts = {}) => {

@commitlint/core/src/rules/body-case.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import test from 'ava';
2-
import parse from '../library/parse';
2+
import parse from '@commitlint/parse';
33
import bodyCase from './body-case';
44

55
const messages = {

@commitlint/core/src/rules/body-empty.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import test from 'ava';
2-
import parse from '../library/parse';
2+
import parse from '@commitlint/parse';
33
import bodyEmpty from './body-empty';
44

55
const messages = {

@commitlint/core/src/rules/body-leading-blank.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import test from 'ava';
2-
import parse from '../library/parse';
2+
import parse from '@commitlint/parse';
33
import bodyLeadingBlank from './body-leading-blank';
44

55
const messages = {

@commitlint/core/src/rules/body-max-length.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import test from 'ava';
2-
import parse from '../library/parse';
2+
import parse from '@commitlint/parse';
33
import check from './body-max-length';
44

55
const short = 'a';

@commitlint/core/src/rules/body-min-length.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import test from 'ava';
2-
import parse from '../library/parse';
2+
import parse from '@commitlint/parse';
33
import check from './body-min-length';
44

55
const short = 'a';

@commitlint/core/src/rules/body-tense.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import test from 'ava';
2-
import parse from '../library/parse';
2+
import parse from '@commitlint/parse';
33
import bodyTense from './body-tense';
44

55
test('returns deprecation warning', async t => {

@commitlint/core/src/rules/footer-empty.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import test from 'ava';
2-
import parse from '../library/parse';
2+
import parse from '@commitlint/parse';
33
import footerEmpty from './footer-empty';
44

55
const messages = {

@commitlint/core/src/rules/footer-leading-blank.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import test from 'ava';
2-
import parse from '../library/parse';
2+
import parse from '@commitlint/parse';
33
import footerLeadingBlank from './footer-leading-blank';
44

55
const messages = {

0 commit comments

Comments
 (0)