Skip to content

Commit 7bd437b

Browse files
committed
chore(init): init project
1 parent 4b0a81a commit 7bd437b

7 files changed

+50
-0
lines changed

Diff for: .gitignore

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Generated by Cargo
2+
# will have compiled files and executables
3+
target/
4+
5+
# Remove Cargo.lock from gitignore if creating an executable, leave it for libraries
6+
# More information here https://doc.rust-lang.org/cargo/guide/cargo-toml-vs-cargo-lock.html
7+
Cargo.lock
8+
9+
# These are backup files generated by rustfmt
10+
**/*.rs.bk
11+
12+
.DS_Store

Diff for: .markdownlint.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"comments": {
3+
"markdownlint-cli": "https://github.com/igorshubovych/markdownlint-cli",
4+
"vscode-markdownlint": "https://github.com/DavidAnson/vscode-markdownlint"
5+
}
6+
}

Diff for: .pre-commit-config.yaml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
repos:
2+
- repo: https://github.com/alessandrojcm/commitlint-pre-commit-hook
3+
rev: v4.1.0
4+
hooks:
5+
- id: commitlint
6+
stages: [commit-msg]
7+
additional_dependencies: ["@commitlint/config-conventional"]
8+
9+
- repo: local
10+
hooks:
11+
- id: markdownlint
12+
name: markdownlint
13+
files: \.md$
14+
entry: markdownlint
15+
language: node
16+
stages: [commit]
17+
args: ["--ignore", "**/target/**/*.md"]

Diff for: Cargo.toml

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[package]
2+
name = "grep"
3+
version = "0.1.0"
4+
edition = "2021"
5+
6+
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
7+
8+
[dependencies]

Diff for: Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
lint-docs: # lint docs
2+
markdownlint '**/*.md' --ignore '**/target/**/*.md'

Diff for: commitlint.config.js

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// https://commitlint.js.org/#/guides-local-setup
2+
module.exports = { extends: ['@commitlint/config-conventional'] }

Diff for: src/main.rs

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
fn main() {
2+
println!("Hello, world!");
3+
}

0 commit comments

Comments
 (0)