Skip to content

Commit

Permalink
refactor: remove unused files, and add husky and commitlint (#4383)
Browse files Browse the repository at this point in the history
* refactor: remove unused files, and add husky and commitlint

* test: add github action
  • Loading branch information
hustcc authored Mar 23, 2023
1 parent 918584d commit ae95e92
Show file tree
Hide file tree
Showing 27 changed files with 75 additions and 749 deletions.
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/[email protected]

- name: Setup Node.js environment
uses: actions/[email protected]
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

0 comments on commit ae95e92

Please sign in to comment.