-
Notifications
You must be signed in to change notification settings - Fork 913
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(load): add support for
.commitlintrc.cjs
and `commitlint.confi…
…g.cjs` files (#2797) * feat(load): add support for `*.cjs` files * chore(load): improve comment in searchPlaces * docs: update supported configs list in README.md Co-authored-by: Himanshu Mehta <[email protected]>
- Loading branch information
1 parent
7841a5d
commit fabb495
Showing
2 changed files
with
20 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -124,7 +124,18 @@ Check the [husky documentation](https://typicode.github.io/husky/#/?id=manual) o | |
|
||
## Config | ||
|
||
- Configuration is picked up from `commitlint.config.js`, `.commitlintrc.js`, `.commitlintrc`, `.commitlintrc.json`, `.commitlintrc.yml` file or a `commitlint` field in `package.json` | ||
- Configuration is picked up from: | ||
- `.commitlintrc` | ||
- `.commitlintrc.json` | ||
- `.commitlintrc.yaml` | ||
- `.commitlintrc.yml` | ||
- `.commitlintrc.js` | ||
- `.commitlintrc.cjs` | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
escapedcat
Member
|
||
- `.commitlintrc.ts` | ||
- `commitlint.config.js` | ||
- `commitlint.config.cjs` | ||
- `commitlint.config.ts` | ||
- `commitlint` field in `package.json` | ||
- Packages: [cli](./@commitlint/cli), [core](./@commitlint/core) | ||
- See [Rules](./docs/reference-rules.md) for a complete list of possible rules | ||
- An example configuration can be found at [@commitlint/config-conventional](./@commitlint/config-conventional/index.js) | ||
|
.cjs
but not the pendant.mjs
, interesting