Skip to content

Commit 45666ec

Browse files
committed
feat(esm): convert the package to esm-only
BREAKING CHANGE: the package is now esm-only
1 parent 9987754 commit 45666ec

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

.commitlintrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
module.exports = {extends: ['./index.js']};
1+
export default {extends: ['./index.js']};
File renamed without changes.

index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
const config = require('@commitlint/config-conventional');
1+
import config from '@commitlint/config-conventional';
22

3-
module.exports = {
3+
export default {
44
extends: ['@commitlint/config-conventional'],
55
rules: {
66
'scope-case': [2, 'always', 'kebab-case'],

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
"description": "shareable config for commitlint",
44
"license": "MIT",
55
"version": "0.0.0-semantically-released",
6+
"type": "module",
67
"author": "Matt Travi <[email protected]> (https://matt.travi.org/)",
78
"repository": "form8ion/commitlint-config",
89
"bugs": "https://github.com/form8ion/commitlint-config/issues",

0 commit comments

Comments
 (0)