Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: remove unused files, and add husky and commitlint #4383

Merged
merged 2 commits into from
Mar 23, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 0 additions & 26 deletions .babelrc.js

This file was deleted.

10 changes: 0 additions & 10 deletions .browserslistrc

This file was deleted.

10 changes: 10 additions & 0 deletions .commitlintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [
2,
'always',
['build', 'chore', 'ci', 'docs', 'feat', 'fix', 'perf', 'refactor', 'revert', 'style', 'test', 'wip'],
],
},
};
20 changes: 8 additions & 12 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,20 +1,16 @@
# EditorConfig is awesome: http://EditorConfig.org

# top-most EditorConfig file
# http://editorconfig.org
root = true

# Unix-style newlines with a newline ending every file
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 2

[Makefile]
indent_style = tab
indent_size = 1
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false
trim_trailing_whitespace = false

[Makefile]
indent_style = tab
14 changes: 0 additions & 14 deletions .eslintignore

This file was deleted.

51 changes: 0 additions & 51 deletions .eslintrc.js

This file was deleted.

5 changes: 0 additions & 5 deletions .fatherrc.js

This file was deleted.

85 changes: 0 additions & 85 deletions .github/ISSUE_TEMPLATE/bug_report.yml

This file was deleted.

69 changes: 0 additions & 69 deletions .github/ISSUE_TEMPLATE/bug_report_chinese.yml

This file was deleted.

5 changes: 0 additions & 5 deletions .github/ISSUE_TEMPLATE/config.yml

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: build

on: [push]

jobs:
build:
runs-on: macOS-latest

steps:
- name: Checkout
uses: actions/checkout@v2.3.4

- name: Setup Node.js environment
uses: actions/setup-node@v2.1.5
with:
node-version: '14'

- name: Run CI
run: |
npm install
npm run test
17 changes: 0 additions & 17 deletions .github/workflows/gitleaks.yml

This file was deleted.

18 changes: 0 additions & 18 deletions .github/workflows/preview.yml

This file was deleted.

17 changes: 0 additions & 17 deletions .github/workflows/rebase.yml

This file was deleted.

Loading