Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions @commitlint/config-conventional/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
"version": "18.6.1",
"description": "Shareable commitlint config enforcing conventional commits",
"main": "lib/index.js",
"exports": {
".": {
"types": "./lib/index.d.ts",
"import": "./wrapper.mjs",
"require": "./lib/index.js"
}
},
"files": [
"lib/"
],
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/config-conventional/src/index.test.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import lint from '@commitlint/lint';
import {config} from '.';
import config from '.';

const commitLint = async (message) => {
const preset = await require(config.parserPreset)();
Expand Down
2 changes: 1 addition & 1 deletion @commitlint/config-conventional/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
TargetCaseType,
} from '@commitlint/types';

export const config = {
export = {
parserPreset: 'conventional-changelog-conventionalcommits',
rules: {
'body-leading-blank': [RuleConfigSeverity.Warning, 'always'] as const,
Expand Down
4 changes: 4 additions & 0 deletions @commitlint/config-conventional/wrapper.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import config, {parserPreset, prompt, rules} from './lib';

export {parserPreset, prompt, rules};
export default config;