generated from archoleat/repo-template
-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: add
define-config
function (#13)
Co-authored-by: Almanov Nikita <[email protected]>
- Loading branch information
1 parent
940af36
commit cf2f90a
Showing
9 changed files
with
183 additions
and
159 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { UserConfig } from '@commitlint/types'; | ||
|
||
/** | ||
* Define an Commitlint config. | ||
* | ||
* @param {object} config Commitlint config. | ||
* | ||
* @returns Commitlint config. | ||
*/ | ||
const defineConfig = (config: UserConfig): UserConfig => { | ||
return config; | ||
}; | ||
|
||
export { defineConfig }; |
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 |
---|---|---|
@@ -1,14 +1 @@ | ||
import type { UserConfig } from '@commitlint/types'; | ||
|
||
/** | ||
* Define an Commitlint config. | ||
* | ||
* @param {object} config Commitlint config. | ||
* | ||
* @returns Commitlint config. | ||
*/ | ||
const defineConfig = (config: UserConfig): UserConfig => { | ||
return config; | ||
}; | ||
|
||
export { defineConfig }; | ||
const n=e=>e;export{n as defineConfig}; |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
export default { | ||
'**/*': 'prettier --write', | ||
'index.ts': 'eslint --fix', | ||
'define-config.ts': 'eslint --fix', | ||
}; |
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
Oops, something went wrong.