Skip to content

Commit

Permalink
chore: autoformat rust, husky 5
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexAegis committed Nov 21, 2020
1 parent 163ef20 commit ca4b8ce
Show file tree
Hide file tree
Showing 8 changed files with 2,199 additions and 256 deletions.
1 change: 1 addition & 0 deletions .husky/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
_
1 change: 1 addition & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx --no-install commitlint --edit $1
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx lint-staged
6 changes: 6 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,16 @@
".mocharc": "mocha"
},
"typescript.tsdk": "node_modules\\typescript\\lib",
"[rust]": {
"editor.defaultFormatter": "matklad.rust-analyzer"
},
"rust.build_on_save": true,
"rust.clippy_preference": "on",
"rust.racer_completion": true,
"rust.show_hover_context": true,
"rust-analyzer.checkOnSave.enable": true,
"rust-analyzer.checkOnSave.allFeatures": true,
"rust-analyzer.checkOnSave.allTargets": true,
"files.associations": { ".mocharc": "json" },
"mocha.files.glob": "src/**/*.spec.ts",
"mocha.node_options": ["-r", "ts-node/register", "-r", "tsconfig-paths/register"],
Expand Down
1 change: 1 addition & 0 deletions lint-staged.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,5 @@ module.exports = {
'(*.json|.eslintrc|.prettierrc|.stylelintrc|.markdownlintrc)': [('eslint', 'prettier --check')],
'*.md': ["markdownlint --ignore 'CHANGELOG.md' --ignore-path '.gitignore'", 'prettier --check'],
'*.(yml|yaml)': ['prettier --check'],
'*.rs': ['cargo fmt'],
};
Loading

0 comments on commit ca4b8ce

Please sign in to comment.