Skip to content

Commit 5274593

Browse files
committed
include basic configuration for frontend development
1 parent 58d3312 commit 5274593

7 files changed

Lines changed: 129 additions & 0 deletions

File tree

js-storefront/main/.editorconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Editor configuration, see https://editorconfig.org
2+
root = true
3+
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 2
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
[*.ts]
12+
quote_type = single
13+
14+
[*.md]
15+
max_line_length = off
16+
trim_trailing_whitespace = false

js-storefront/main/.gitignore

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# See http://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# compiled output
4+
/dist
5+
/tmp
6+
/out-tsc
7+
# Only exists if Bazel was run
8+
/bazel-out
9+
10+
# dependencies
11+
/node_modules
12+
13+
# profiling files
14+
chrome-profiler-events*.json
15+
16+
# IDEs and editors
17+
/.idea
18+
.project
19+
.classpath
20+
.c9/
21+
*.launch
22+
.settings/
23+
*.sublime-workspace
24+
25+
# IDE - VSCode
26+
.vscode/*
27+
!.vscode/settings.json
28+
!.vscode/tasks.json
29+
!.vscode/launch.json
30+
!.vscode/extensions.json
31+
.history/*
32+
33+
# misc
34+
/.angular/cache
35+
/.sass-cache
36+
/connect.lock
37+
/coverage
38+
/libpeerconnection.log
39+
npm-debug.log
40+
yarn-error.log
41+
testem.log
42+
/typings
43+
44+
# System Files
45+
.DS_Store
46+
Thumbs.db
47+
cypress/videos
48+
cypress/screenshots
49+
50+
# Cypress
51+
/cypress/downloads

js-storefront/main/.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
**/*.md

js-storefront/main/.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"printWidth": 120,
3+
"singleQuote": true,
4+
"useTabs": true,
5+
"semi": true,
6+
"bracketSameLine": true
7+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"recommendations": [
3+
// Angular Language Service
4+
"Angular.ng-template",
5+
// Debugger for Chrome
6+
"msjsdiag.debugger-for-chrome",
7+
// The ng lint command uses TSLint under the hood.
8+
"ms-vscode.vscode-typescript-tslint-plugin",
9+
// Prettier - Code formatter
10+
"esbenp.prettier-vscode"
11+
]
12+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"type": "pwa-chrome",
9+
"request": "launch",
10+
"name": "Launch Chrome against localhost",
11+
"url": "https://localhost:4200",
12+
"webRoot": "${workspaceFolder}"
13+
}
14+
]
15+
}
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
// Prettify on save
3+
"editor.formatOnSave": true,
4+
// organize imports on save
5+
"editor.codeActionsOnSave": {
6+
"source.organizeImports": "explicit"
7+
},
8+
// Uses the project specific typescript version.
9+
"typescript.tsdk": "node_modules/typescript/lib",
10+
"prettier.configPath": ".prettierrc",
11+
"editor.defaultFormatter": "esbenp.prettier-vscode",
12+
13+
//SonarLint
14+
"sonarlint.connectedMode.project": {
15+
"projectKey": "mynetzsch-spartacus"
16+
},
17+
"sonarlint.disableTelemetry": true,
18+
"[xml]": {
19+
"editor.defaultFormatter": "DotJoshJohnson.xml"
20+
},
21+
"[scss]": {
22+
"editor.defaultFormatter": "vscode.css-language-features"
23+
},
24+
"[json]": {
25+
"editor.defaultFormatter": "vscode.json-language-features"
26+
}
27+
}

0 commit comments

Comments
 (0)