Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(project-wide): add commit hooks
- Loading branch information
Burak Tasci
committed
Dec 24, 2018
1 parent
775d86a
commit 316597c
Showing
9 changed files
with
115 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Editor configuration, see http://editorconfig.org | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = crlf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
max_line_length = 140 | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false | ||
max_line_length = off | ||
|
||
[*.html] | ||
indent_size = 4 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"*.{json,css,scss,md,js}": ["prettier --write", "git add"], | ||
"*.(ts)": ["prettier-tslint fix", "git add"] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# angular gitignore | ||
# see https://github.com/prettier/prettier/issues/2294 | ||
|
||
## compiled output | ||
/.awcache | ||
/dist | ||
/docs | ||
/tmp | ||
/out-tsc | ||
|
||
## dependencies | ||
/bower_components | ||
/node_modules | ||
|
||
## IDEs and editors | ||
/.idea | ||
.project | ||
.classpath | ||
.c9/ | ||
*.launch | ||
.settings/ | ||
*.sublime-workspace | ||
|
||
# IDE - VSCode | ||
.vscode/* | ||
!.vscode/settings.json | ||
!.vscode/tasks.json | ||
!.vscode/launch.json | ||
!.vscode/extensions.json | ||
|
||
# misc | ||
/.sass-cache | ||
/connect.lock | ||
/coverage | ||
/libpeerconnection.log | ||
npm-debug.log | ||
yarn-error.log | ||
testem.log | ||
test-report.xml | ||
/typings | ||
|
||
# System Files | ||
.DS_Store | ||
Thumbs.db | ||
|
||
# auto-generated files | ||
/angular.json | ||
/.angular-cli.json | ||
/package-lock.json | ||
/yarn.lock |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"printWidth": 140, | ||
"singleQuote": true, | ||
"endOfLine": "crlf" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
module.exports = { | ||
extends: ['@commitlint/config-conventional'], | ||
rules: { | ||
'scope-enum': [ | ||
2, | ||
'always', | ||
['project-wide', 'core', 'http-loader', 'merge-loader', 'package', 'npm', 'webpack', 'circle', 'lint', 'packaging', 'changelog'] | ||
] | ||
} | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"extends": "./tsconfig.json", | ||
"compilerOptions": { | ||
"target": "es2015", | ||
"strictNullChecks": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,16 @@ | ||
{ | ||
"rulesDirectory": [ | ||
"node_modules/codelyzer" | ||
], | ||
"extends": [ | ||
"angular-tslint-rules" | ||
], | ||
"rulesDirectory": ["node_modules/codelyzer"], | ||
"extends": ["angular-tslint-rules", "tslint-config-prettier"], | ||
"rules": { | ||
"ordered-imports": [ | ||
true, | ||
{ | ||
"import-sources-order": "case-insensitive", | ||
"named-imports-order": "case-insensitive", | ||
"grouped-imports": true | ||
} | ||
], | ||
"no-null-keyword": false, | ||
"no-forward-ref": false | ||
} | ||
} |