Skip to content

Commit

Permalink
feat: added commitlint (#37)
Browse files Browse the repository at this point in the history
* feat: added commitlint
  • Loading branch information
abereghici authored Sep 2, 2021
1 parent c7d1f86 commit d1ee316
Show file tree
Hide file tree
Showing 6 changed files with 1,006 additions and 1 deletion.
3 changes: 3 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
};
22 changes: 22 additions & 0 deletions common/autoinstallers/rush-commitlint/.npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Rush uses this file to configure the NPM package registry during installation. It is applicable
# to PNPM, NPM, and Yarn package managers. It is used by operations such as "rush install",
# "rush update", and the "install-run.js" scripts.
#
# NOTE: The "rush publish" command uses .npmrc-publish instead.
#
# Before invoking the package manager, Rush will copy this file to the folder where installation
# is performed. The copied file will omit any config lines that reference environment variables
# that are undefined in that session; this avoids problems that would otherwise result due to
# a missing variable being replaced by an empty string.
#
# * * * SECURITY WARNING * * *
#
# It is NOT recommended to store authentication tokens in a text file on a lab machine, because
# other unrelated processes may be able to read the file. Also, the file may persist indefinitely,
# for example if the machine loses power. A safer practice is to pass the token via an
# environment variable, which can be referenced from .npmrc using ${} expansion. For example:
#
# //registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}
#
registry=https://registry.npmjs.org/
always-auth=false
9 changes: 9 additions & 0 deletions common/autoinstallers/rush-commitlint/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"name": "rush-commitlint",
"version": "1.0.0",
"private": true,
"dependencies": {
"@commitlint/cli": "9.1.2",
"@commitlint/config-conventional": "8.0.0"
}
}
Loading

0 comments on commit d1ee316

Please sign in to comment.