Skip to content

Commit

Permalink
chore: remove commitizen (#861)
Browse files Browse the repository at this point in the history
  • Loading branch information
RebeccaStevens committed Aug 2, 2024
1 parent b2f0985 commit 5f74253
Show file tree
Hide file tree
Showing 15 changed files with 66 additions and 877 deletions.
8 changes: 0 additions & 8 deletions .commitlintrc.cjs

This file was deleted.

3 changes: 0 additions & 3 deletions .czrc

This file was deleted.

22 changes: 0 additions & 22 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
"/lib/",
"/node_modules/",
"/tests-compiled/",
"/cz-adapter/**/*.js",
"/pnpm-lock.yaml"
],
"rules": {
Expand All @@ -43,27 +42,6 @@
"jsdoc/require-jsdoc": "off"
}
},
{
"files": ["./cz-adapter/**/*"],
"extends": ["@rebeccastevens/eslint-config/script"],
"rules": {
"@typescript-eslint/no-unsafe-argument": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-return": "off",
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true,
"peerDependencies": true
}
],
"functional/immutable-data": "off",
"jsdoc/require-jsdoc": "off",
"unicorn/prefer-module": "off"
}
},
{
"files": ["**/*.test.ts"],
"plugins": ["vitest"],
Expand Down
4 changes: 0 additions & 4 deletions .github/renovate.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,6 @@
"allowedVersions": "<5",
"matchPackageNames": ["escape-string-regexp"]
},
{
"allowedVersions": "<5",
"matchPackageNames": ["chalk"]
},
{
"allowedVersions": "<9",
"matchPackageNames": ["eslint"]
Expand Down
46 changes: 46 additions & 0 deletions .github/workflows/semantic-pr.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: "Semantic PR"

permissions:
pull-requests: write

on:
pull_request_target:
types:
Expand All @@ -15,3 +18,46 @@ jobs:
- uses: amannn/[email protected]
env:
GITHUB_TOKEN: ${{ github.token }}
with:
types: |
feat
fix
perf
refactor
style
docs
test
build
ci
chore
part
scopes: |
functional-parameters
immutable-data
no-classes
no-conditional-statements
no-expression-statements
no-let
no-loop-statements
no-mixed-types
no-promise-reject
no-return-void
no-this-expressions
no-throw-statements
no-try-statements
prefer-immutable-types
prefer-property-signatures
prefer-readonly-types
prefer-tacit
readonly-type
type-declaration-immutability
requireScope: false
subjectPattern: ^(?![A-Z]).+$ # Don't start with an uppercase character.
subjectPatternError: |
The subject "{subject}" should not start with an uppercase character.
ignoreLabels: |
bot
ignore-semantic-pull-request
headerPattern: '^(\w*)(?:\(([\w$.\-*/ ]*)\))?!?: (.*)$'
headerPatternCorrespondence: type, scope, subject
wip: true
1 change: 0 additions & 1 deletion .husky/commit-msg

This file was deleted.

6 changes: 0 additions & 6 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@ To learn about ESLint plugin development see the [relevant section](https://esli

In order to know which AST nodes are created for a snippet of TypeScript code you can use [AST explorer](https://astexplorer.net/) with options JavaScript and @typescript-eslint/parser.

### Commit Messages

> tl;dr: use `npx cz` instead of `git commit`.
Commit messages must follow [Conventional Commit messages guidelines](https://www.conventionalcommits.org/en/v1.0.0/). You can use `npx cz` instead of `git commit` to run an interactive prompt to generate the commit message. We've customize the prompt specifically for this project. For more information see [commitizen](https://github.com/commitizen/cz-cli#readme).

### How to publish

Publishing is handled by [semantic release](https://github.com/semantic-release/semantic-release#readme) - there shouldn't be any need to publish manually.
Loading

0 comments on commit 5f74253

Please sign in to comment.