Skip to content

Commit 85ad18b

Browse files
feat: support config .cts extension (#3461)
1 parent a437923 commit 85ad18b

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

@commitlint/load/src/utils/load-config.ts

+3
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,13 @@ export async function loadConfig(
2929

3030
// files supported by TypescriptLoader
3131
`.${moduleName}rc.ts`,
32+
`.${moduleName}rc.cts`,
3233
`${moduleName}.config.ts`,
34+
`${moduleName}.config.cts`,
3335
],
3436
loaders: {
3537
'.ts': TypeScriptLoader(),
38+
'.cts': TypeScriptLoader(),
3639
},
3740
});
3841

README.md

+2
Original file line numberDiff line numberDiff line change
@@ -135,9 +135,11 @@ Check the [husky documentation](https://typicode.github.io/husky/#/?id=manual) o
135135
- `.commitlintrc.js`
136136
- `.commitlintrc.cjs`
137137
- `.commitlintrc.ts`
138+
- `.commitlintrc.cts`
138139
- `commitlint.config.js`
139140
- `commitlint.config.cjs`
140141
- `commitlint.config.ts`
142+
- `commitlint.config.cts`
141143
- `commitlint` field in `package.json`
142144
- Packages: [cli](./@commitlint/cli), [core](./@commitlint/core)
143145
- See [Rules](./docs/reference-rules.md) for a complete list of possible rules

0 commit comments

Comments
 (0)