Skip to content

Commit

Permalink
Update dotnetweb to add coffee & react linters (#2787)
Browse files Browse the repository at this point in the history
* Update dotnetweb to add coffee & react linters

* [MegaLinter] Apply linters fixes

---------

Co-authored-by: nvuillam <nvuillam@users.noreply.github.com>
  • Loading branch information
nvuillam and nvuillam authored Jul 11, 2023
1 parent f6c47c9 commit b5cf83c
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/descriptors/xml_xmllint.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ To apply file formatting you must set `XML_XMLLINT_CLI_LINT_MODE: file` and `XML
| Variable | Description | Default value |
|-----------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------|
| XML_XMLLINT_AUTOFORMAT | If set to `true`, it will reformat and reindent the output | `false` |
| XML_XMLLINT_INDENT | The number of indentation spaces when `XML_XMLLINT_AUTOFORMAT` is `true` | ` ` |
| XML_XMLLINT_INDENT | The number of indentation spaces when `XML_XMLLINT_AUTOFORMAT` is `true` | `` |
| XML_XMLLINT_ARGUMENTS | User custom arguments to add in linter CLI call<br/>Ex: `-s --foo "bar"` | |
| XML_XMLLINT_FILTER_REGEX_INCLUDE | Custom regex including filter<br/>Ex: `(src\|lib)` | Include every file |
| XML_XMLLINT_FILTER_REGEX_EXCLUDE | Custom regex excluding filter<br/>Ex: `(test\|examples)` | Exclude no file |
Expand Down
3 changes: 3 additions & 0 deletions flavors/dotnetweb/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ ENV NODE_OPTIONS="--max-old-space-size=8192" \
WORKDIR /node-deps
RUN npm --no-cache install --ignore-scripts --omit=dev \
typescript \
@coffeelint/cli \
jscpd \
stylelint \
stylelint-config-standard \
Expand Down Expand Up @@ -174,6 +175,8 @@ RUN npm --no-cache install --ignore-scripts --omit=dev \
v8r \
npm-package-json-lint \
npm-package-json-lint-config-default \
eslint-plugin-react \
eslint-plugin-jsx-a11y \
markdownlint-cli \
markdown-link-check \
markdown-table-formatter \
Expand Down
3 changes: 3 additions & 0 deletions flavors/dotnetweb/flavor.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
"BASH_SHFMT",
"BICEP_BICEP_LINTER",
"C_CPPLINT",
"COFFEE_COFFEELINT",
"COPYPASTE_JSCPD",
"CPP_CPPLINT",
"CSHARP_DOTNET_FORMAT",
Expand All @@ -40,6 +41,7 @@
"JSON_V8R",
"JSON_PRETTIER",
"JSON_NPM_PACKAGE_JSON_LINT",
"JSX_ESLINT",
"KOTLIN_KTLINT",
"KUBERNETES_KUBECONFORM",
"KUBERNETES_HELM",
Expand Down Expand Up @@ -68,6 +70,7 @@
"SQL_SQLFLUFF",
"SQL_TSQLLINT",
"TEKTON_TEKTON_LINT",
"TSX_ESLINT",
"TYPESCRIPT_ES",
"TYPESCRIPT_STANDARD",
"TYPESCRIPT_PRETTIER",
Expand Down
3 changes: 3 additions & 0 deletions megalinter/descriptors/all_flavors.json
Original file line number Diff line number Diff line change
Expand Up @@ -271,6 +271,7 @@
"BASH_SHFMT",
"BICEP_BICEP_LINTER",
"C_CPPLINT",
"COFFEE_COFFEELINT",
"COPYPASTE_JSCPD",
"CPP_CPPLINT",
"CSHARP_DOTNET_FORMAT",
Expand All @@ -293,6 +294,7 @@
"JSON_V8R",
"JSON_PRETTIER",
"JSON_NPM_PACKAGE_JSON_LINT",
"JSX_ESLINT",
"KOTLIN_KTLINT",
"KUBERNETES_KUBECONFORM",
"KUBERNETES_HELM",
Expand Down Expand Up @@ -321,6 +323,7 @@
"SQL_SQLFLUFF",
"SQL_TSQLLINT",
"TEKTON_TEKTON_LINT",
"TSX_ESLINT",
"TYPESCRIPT_ES",
"TYPESCRIPT_STANDARD",
"TYPESCRIPT_PRETTIER",
Expand Down
1 change: 1 addition & 0 deletions megalinter/descriptors/coffee.megalinter-descriptor.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
descriptor_id: COFFEE
descriptor_type: language
descriptor_flavors:
- dotnetweb
- javascript
file_extensions:
- ".coffee"
Expand Down
1 change: 1 addition & 0 deletions megalinter/descriptors/jsx.megalinter-descriptor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ descriptor_id: JSX
descriptor_type: language
descriptor_flavors:
- cupcake
- dotnetweb
- javascript
file_extensions:
- ".jsx"
Expand Down
1 change: 1 addition & 0 deletions megalinter/descriptors/tsx.megalinter-descriptor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ descriptor_id: TSX
descriptor_type: language
descriptor_flavors:
- cupcake
- dotnetweb
- javascript
file_extensions:
- ".tsx"
Expand Down

0 comments on commit b5cf83c

Please sign in to comment.