File tree Expand file tree Collapse file tree 5 files changed +96
-14
lines changed Expand file tree Collapse file tree 5 files changed +96
-14
lines changed Original file line number Diff line number Diff line change
1
+ {
2
+ "name" : " BASH Dev Container" ,
3
+ "image" : " mcr.microsoft.com/devcontainers/base:ubuntu" ,
4
+ "features" : {
5
+ "ghcr.io/devcontainers-community/npm-features/prettier:1" : {
6
+ "plugins" : " prettier-plugin-sh"
7
+ },
8
+ "ghcr.io/devcontainers-extra/features/actionlint:1" : {},
9
+ "ghcr.io/devcontainers-extra/features/checkov:1" : {},
10
+ "ghcr.io/devcontainers-extra/features/markdownlint-cli:1" : {},
11
+ "ghcr.io/devcontainers-extra/features/shellcheck:1" : {},
12
+ "ghcr.io/devcontainers-extra/features/yamllint:2" : {},
13
+ "ghcr.io/devcontainers/features/github-cli:1" : {}
14
+ },
15
+ "customizations" : {
16
+ "vscode" : {
17
+ "extensions" : [
18
+ " DavidAnson.vscode-markdownlint" ,
19
+ " editorconfig.editorconfig" ,
20
+ " esbenp.prettier-vscode" ,
21
+ " github.vscode-github-actions" ,
22
+ " GitHub.vscode-pull-request-github" ,
23
+ " redhat.vscode-yaml" ,
24
+ " yzhang.markdown-all-in-one"
25
+ ]
26
+ }
27
+ },
28
+ "postCreateCommand" : " npm init -y >/dev/null 2>&1 || true && npm install --no-save prettier prettier-plugin-sh prettier-plugin-jinja-template"
29
+ }
Original file line number Diff line number Diff line change 1
1
# EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs.
2
- # Atom: Please assure your Atom's config setting Tab Type is set to auto, otherwise Atom-EditorConfig may not work as expected. Also disable whitespace package.
3
2
# http://editorconfig.org/
4
3
5
4
root = true
6
5
7
6
[* ]
8
7
charset = utf-8
9
- indent_style = tab
10
- indent_size = 4
11
- trim_trailing_whitespace = true
12
8
end_of_line = lf
13
- insert_final_newline = true
14
-
15
- # YAML Files
16
- [* .{yml,yaml} ]
17
- indent_size = 2
18
- indent_style = space
19
-
20
- # JSON Files
21
- [* .{json,json5,webmanifest} ]
22
9
indent_size = 2
23
10
indent_style = space
11
+ insert_final_newline = true
12
+ trim_trailing_whitespace = true
24
13
25
14
# BASH Files
26
15
[* .{.sh} ]
27
- indent_style = tab
28
16
indent_size = 4
17
+ indent_style = tab
Original file line number Diff line number Diff line change
1
+ name : Prettier
2
+ on :
3
+ push :
4
+ branches :
5
+ - " *"
6
+
7
+ permissions :
8
+ contents : read
9
+
10
+ jobs :
11
+ prettier :
12
+ runs-on : ubuntu-latest
13
+
14
+ steps :
15
+ - name : Checkout
16
+ uses : actions/checkout@v5
17
+
18
+ - name : Prettify code
19
+
20
+ with :
21
+ prettier_plugins : " prettier-plugin-sh"
22
+ prettier_options : .
Original file line number Diff line number Diff line change
1
+ ---
2
+ name : Lint
3
+
4
+ on :
5
+ push :
6
+ branches :
7
+ - " *"
8
+
9
+ permissions : {}
10
+
11
+ jobs :
12
+ build :
13
+ name : Lint
14
+ runs-on : ubuntu-latest
15
+
16
+ permissions :
17
+ contents : read
18
+ packages : read
19
+ # To report GitHub Actions status checks
20
+ statuses : write
21
+
22
+ steps :
23
+ - name : Checkout code
24
+ uses : actions/checkout@v5
25
+ with :
26
+ # super-linter needs the full git history to get the
27
+ # list of files that changed across commits
28
+ fetch-depth : 0
29
+
30
+ - name : Super-linter
31
+ uses : super-linter/super-linter@v8
32
+ env :
33
+ # To report GitHub Actions status checks
34
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35
+ VALIDATE_JSCPD : false
36
+ VALIDATE_SHELL_SHFMT : false
37
+ VALIDATE_YAML_PRETTIER : false
38
+ VALIDATE_JSON_PRETTIER : false
39
+ VALIDATE_MARKDOWN_PRETTIER : false
Original file line number Diff line number Diff line change
1
+ {
2
+ "plugins" : [" prettier-plugin-sh" ]
3
+ }
You can’t perform that action at this time.
0 commit comments