Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f526a0c

Browse files
committedMay 29, 2019
style: add code style
1 parent f1ceff1 commit f526a0c

15 files changed

+554
-9657
lines changed
 

‎.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99

1010
# dependencies
1111
/node_modules
12+
yarn.lock
1213

1314
# profiling files
1415
chrome-profiler-events.json

‎.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
*.md
2+
tslint.json

‎.prettierrc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"printWidth": 80,
3+
"semi": true,
4+
"singleQuote": true,
5+
"trailingComma": "all"
6+
}

‎.stylelintrc

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"extends": [
3+
"stylelint-config-standard",
4+
"stylelint-config-rational-order",
5+
"stylelint-config-prettier"
6+
],
7+
"plugins": [
8+
"stylelint-order",
9+
"stylelint-declaration-block-no-ignored-properties"
10+
],
11+
"rules": {
12+
"no-descending-specificity": null,
13+
"plugin/declaration-block-no-ignored-properties": true,
14+
"selector-type-no-unknown": [
15+
true,
16+
{
17+
"ignoreTypes": ["/^app-/"]
18+
}
19+
],
20+
"selector-pseudo-element-no-unknown": [
21+
true,
22+
{
23+
"ignorePseudoElements": ["ng-deep"]
24+
}
25+
]
26+
},
27+
"ignoreFiles": ["src/assets/**/*"]
28+
}

‎.vscode/extensions.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"recommendations": [
3+
"editorconfig.editorconfig",
4+
"esbenp.prettier-vscode",
5+
"ms-vscode.vscode-typescript-tslint-plugin"
6+
]
7+
}

‎.vscode/settings.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"editor.formatOnSave": true,
3+
"editor.codeActionsOnSave": {
4+
"source.fixAll": true
5+
},
6+
"prettier.stylelintIntegration": true
7+
}

0 commit comments

Comments
 (0)
Please sign in to comment.