From 0231eb3ecff4eebdd00215c4ab6609f41154d296 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Borja=20Dom=C3=ADnguez?= Date: Thu, 22 Dec 2022 23:18:18 +0100 Subject: [PATCH 1/2] Override descriptor_flavors --- flavors/ci_light/Dockerfile | 2 -- flavors/ci_light/flavor.json | 1 - flavors/documentation/Dockerfile | 2 -- flavors/documentation/flavor.json | 1 - flavors/go/Dockerfile | 2 -- flavors/go/flavor.json | 1 - flavors/java/Dockerfile | 2 -- flavors/java/flavor.json | 1 - flavors/php/Dockerfile | 2 -- flavors/php/flavor.json | 1 - flavors/python/Dockerfile | 2 -- flavors/python/flavor.json | 1 - flavors/ruby/Dockerfile | 2 -- flavors/ruby/flavor.json | 1 - flavors/rust/Dockerfile | 2 -- flavors/rust/flavor.json | 1 - flavors/swift/Dockerfile | 2 -- flavors/swift/flavor.json | 1 - flavors/terraform/Dockerfile | 2 -- flavors/terraform/flavor.json | 1 - megalinter/descriptors/all_flavors.json | 10 ---------- megalinter/descriptors/json.megalinter-descriptor.yml | 5 +++++ 22 files changed, 5 insertions(+), 40 deletions(-) diff --git a/flavors/ci_light/Dockerfile b/flavors/ci_light/Dockerfile index 8d94b574cb6..78764ca8045 100644 --- a/flavors/ci_light/Dockerfile +++ b/flavors/ci_light/Dockerfile @@ -110,8 +110,6 @@ RUN npm --no-cache install --ignore-scripts \ @microsoft/eslint-formatter-sarif \ v8r \ prettier \ - npm-package-json-lint \ - npm-package-json-lint-config-default \ secretlint \ @secretlint/secretlint-rule-preset-recommend \ @secretlint/secretlint-formatter-sarif && \ diff --git a/flavors/ci_light/flavor.json b/flavors/ci_light/flavor.json index d48c8ad41bc..4a1ff3fd57d 100644 --- a/flavors/ci_light/flavor.json +++ b/flavors/ci_light/flavor.json @@ -14,7 +14,6 @@ "JSON_ESLINT_PLUGIN_JSONC", "JSON_V8R", "JSON_PRETTIER", - "JSON_NPM_PACKAGE_JSON_LINT", "MAKEFILE_CHECKMAKE", "REPOSITORY_GIT_DIFF", "REPOSITORY_GITLEAKS", diff --git a/flavors/documentation/Dockerfile b/flavors/documentation/Dockerfile index 410b4ba77a8..81f8615c0bd 100644 --- a/flavors/documentation/Dockerfile +++ b/flavors/documentation/Dockerfile @@ -127,8 +127,6 @@ RUN npm --no-cache install --ignore-scripts \ @microsoft/eslint-formatter-sarif \ v8r \ prettier \ - npm-package-json-lint \ - npm-package-json-lint-config-default \ markdownlint-cli \ markdown-link-check \ markdown-table-formatter \ diff --git a/flavors/documentation/flavor.json b/flavors/documentation/flavor.json index 10283cb5b0f..c5a95ffe4ef 100644 --- a/flavors/documentation/flavor.json +++ b/flavors/documentation/flavor.json @@ -25,7 +25,6 @@ "JSON_ESLINT_PLUGIN_JSONC", "JSON_V8R", "JSON_PRETTIER", - "JSON_NPM_PACKAGE_JSON_LINT", "KOTLIN_KTLINT", "KUBERNETES_KUBEVAL", "KUBERNETES_KUBECONFORM", diff --git a/flavors/go/Dockerfile b/flavors/go/Dockerfile index 61a85fb5e4d..bcf288ffba3 100644 --- a/flavors/go/Dockerfile +++ b/flavors/go/Dockerfile @@ -127,8 +127,6 @@ RUN npm --no-cache install --ignore-scripts \ @microsoft/eslint-formatter-sarif \ v8r \ prettier \ - npm-package-json-lint \ - npm-package-json-lint-config-default \ markdownlint-cli \ markdown-link-check \ markdown-table-formatter \ diff --git a/flavors/go/flavor.json b/flavors/go/flavor.json index 4cbe32be776..31c64cf0cb0 100644 --- a/flavors/go/flavor.json +++ b/flavors/go/flavor.json @@ -28,7 +28,6 @@ "JSON_ESLINT_PLUGIN_JSONC", "JSON_V8R", "JSON_PRETTIER", - "JSON_NPM_PACKAGE_JSON_LINT", "KOTLIN_KTLINT", "KUBERNETES_KUBEVAL", "KUBERNETES_KUBECONFORM", diff --git a/flavors/java/Dockerfile b/flavors/java/Dockerfile index f66bf452f1a..25fce302095 100644 --- a/flavors/java/Dockerfile +++ b/flavors/java/Dockerfile @@ -128,8 +128,6 @@ RUN npm --no-cache install --ignore-scripts \ @microsoft/eslint-formatter-sarif \ v8r \ prettier \ - npm-package-json-lint \ - npm-package-json-lint-config-default \ markdownlint-cli \ markdown-link-check \ markdown-table-formatter \ diff --git a/flavors/java/flavor.json b/flavors/java/flavor.json index 50a5f0102ab..e178d5e2bd7 100644 --- a/flavors/java/flavor.json +++ b/flavors/java/flavor.json @@ -29,7 +29,6 @@ "JSON_ESLINT_PLUGIN_JSONC", "JSON_V8R", "JSON_PRETTIER", - "JSON_NPM_PACKAGE_JSON_LINT", "KOTLIN_KTLINT", "KUBERNETES_KUBEVAL", "KUBERNETES_KUBECONFORM", diff --git a/flavors/php/Dockerfile b/flavors/php/Dockerfile index 09faf26582a..c777eeb20e4 100644 --- a/flavors/php/Dockerfile +++ b/flavors/php/Dockerfile @@ -139,8 +139,6 @@ RUN npm --no-cache install --ignore-scripts \ @microsoft/eslint-formatter-sarif \ v8r \ prettier \ - npm-package-json-lint \ - npm-package-json-lint-config-default \ markdownlint-cli \ markdown-link-check \ markdown-table-formatter \ diff --git a/flavors/php/flavor.json b/flavors/php/flavor.json index 67aa2661d61..3716e6350e4 100644 --- a/flavors/php/flavor.json +++ b/flavors/php/flavor.json @@ -26,7 +26,6 @@ "JSON_ESLINT_PLUGIN_JSONC", "JSON_V8R", "JSON_PRETTIER", - "JSON_NPM_PACKAGE_JSON_LINT", "KOTLIN_KTLINT", "KUBERNETES_KUBEVAL", "KUBERNETES_KUBECONFORM", diff --git a/flavors/python/Dockerfile b/flavors/python/Dockerfile index 0d9949980d9..e5ac67192ff 100644 --- a/flavors/python/Dockerfile +++ b/flavors/python/Dockerfile @@ -137,8 +137,6 @@ RUN npm --no-cache install --ignore-scripts \ @microsoft/eslint-formatter-sarif \ v8r \ prettier \ - npm-package-json-lint \ - npm-package-json-lint-config-default \ markdownlint-cli \ markdown-link-check \ markdown-table-formatter \ diff --git a/flavors/python/flavor.json b/flavors/python/flavor.json index b68fca821d9..eaf5fdfefce 100644 --- a/flavors/python/flavor.json +++ b/flavors/python/flavor.json @@ -25,7 +25,6 @@ "JSON_ESLINT_PLUGIN_JSONC", "JSON_V8R", "JSON_PRETTIER", - "JSON_NPM_PACKAGE_JSON_LINT", "KOTLIN_KTLINT", "KUBERNETES_KUBEVAL", "KUBERNETES_KUBECONFORM", diff --git a/flavors/ruby/Dockerfile b/flavors/ruby/Dockerfile index d783fc4bb45..c14e7aa3a34 100644 --- a/flavors/ruby/Dockerfile +++ b/flavors/ruby/Dockerfile @@ -127,8 +127,6 @@ RUN npm --no-cache install --ignore-scripts \ @microsoft/eslint-formatter-sarif \ v8r \ prettier \ - npm-package-json-lint \ - npm-package-json-lint-config-default \ markdownlint-cli \ markdown-link-check \ markdown-table-formatter \ diff --git a/flavors/ruby/flavor.json b/flavors/ruby/flavor.json index ef750ec2769..55f0f058ee5 100644 --- a/flavors/ruby/flavor.json +++ b/flavors/ruby/flavor.json @@ -25,7 +25,6 @@ "JSON_ESLINT_PLUGIN_JSONC", "JSON_V8R", "JSON_PRETTIER", - "JSON_NPM_PACKAGE_JSON_LINT", "KOTLIN_KTLINT", "KUBERNETES_KUBEVAL", "KUBERNETES_KUBECONFORM", diff --git a/flavors/rust/Dockerfile b/flavors/rust/Dockerfile index 689e7c4e969..7bf66510b41 100644 --- a/flavors/rust/Dockerfile +++ b/flavors/rust/Dockerfile @@ -127,8 +127,6 @@ RUN npm --no-cache install --ignore-scripts \ @microsoft/eslint-formatter-sarif \ v8r \ prettier \ - npm-package-json-lint \ - npm-package-json-lint-config-default \ markdownlint-cli \ markdown-link-check \ markdown-table-formatter \ diff --git a/flavors/rust/flavor.json b/flavors/rust/flavor.json index 1ba86afc43a..df6ae986711 100644 --- a/flavors/rust/flavor.json +++ b/flavors/rust/flavor.json @@ -25,7 +25,6 @@ "JSON_ESLINT_PLUGIN_JSONC", "JSON_V8R", "JSON_PRETTIER", - "JSON_NPM_PACKAGE_JSON_LINT", "KOTLIN_KTLINT", "KUBERNETES_KUBEVAL", "KUBERNETES_KUBECONFORM", diff --git a/flavors/swift/Dockerfile b/flavors/swift/Dockerfile index b53864fdee1..ff19b8fb467 100644 --- a/flavors/swift/Dockerfile +++ b/flavors/swift/Dockerfile @@ -129,8 +129,6 @@ RUN npm --no-cache install --ignore-scripts \ @microsoft/eslint-formatter-sarif \ v8r \ prettier \ - npm-package-json-lint \ - npm-package-json-lint-config-default \ markdownlint-cli \ markdown-link-check \ markdown-table-formatter \ diff --git a/flavors/swift/flavor.json b/flavors/swift/flavor.json index 33b7e831812..bde47f2e467 100644 --- a/flavors/swift/flavor.json +++ b/flavors/swift/flavor.json @@ -25,7 +25,6 @@ "JSON_ESLINT_PLUGIN_JSONC", "JSON_V8R", "JSON_PRETTIER", - "JSON_NPM_PACKAGE_JSON_LINT", "KOTLIN_KTLINT", "KUBERNETES_KUBEVAL", "KUBERNETES_KUBECONFORM", diff --git a/flavors/terraform/Dockerfile b/flavors/terraform/Dockerfile index e8210e552da..8f423d0aa2e 100644 --- a/flavors/terraform/Dockerfile +++ b/flavors/terraform/Dockerfile @@ -131,8 +131,6 @@ RUN npm --no-cache install --ignore-scripts \ @microsoft/eslint-formatter-sarif \ v8r \ prettier \ - npm-package-json-lint \ - npm-package-json-lint-config-default \ markdownlint-cli \ markdown-link-check \ markdown-table-formatter \ diff --git a/flavors/terraform/flavor.json b/flavors/terraform/flavor.json index a9d9aa8543d..5596117063a 100644 --- a/flavors/terraform/flavor.json +++ b/flavors/terraform/flavor.json @@ -25,7 +25,6 @@ "JSON_ESLINT_PLUGIN_JSONC", "JSON_V8R", "JSON_PRETTIER", - "JSON_NPM_PACKAGE_JSON_LINT", "KOTLIN_KTLINT", "KUBERNETES_KUBEVAL", "KUBERNETES_KUBECONFORM", diff --git a/megalinter/descriptors/all_flavors.json b/megalinter/descriptors/all_flavors.json index 00f9df18121..f75db7580b5 100644 --- a/megalinter/descriptors/all_flavors.json +++ b/megalinter/descriptors/all_flavors.json @@ -15,7 +15,6 @@ "JSON_ESLINT_PLUGIN_JSONC", "JSON_V8R", "JSON_PRETTIER", - "JSON_NPM_PACKAGE_JSON_LINT", "MAKEFILE_CHECKMAKE", "REPOSITORY_GIT_DIFF", "REPOSITORY_GITLEAKS", @@ -149,7 +148,6 @@ "JSON_ESLINT_PLUGIN_JSONC", "JSON_V8R", "JSON_PRETTIER", - "JSON_NPM_PACKAGE_JSON_LINT", "KOTLIN_KTLINT", "KUBERNETES_KUBEVAL", "KUBERNETES_KUBECONFORM", @@ -281,7 +279,6 @@ "JSON_ESLINT_PLUGIN_JSONC", "JSON_V8R", "JSON_PRETTIER", - "JSON_NPM_PACKAGE_JSON_LINT", "KOTLIN_KTLINT", "KUBERNETES_KUBEVAL", "KUBERNETES_KUBECONFORM", @@ -343,7 +340,6 @@ "JSON_ESLINT_PLUGIN_JSONC", "JSON_V8R", "JSON_PRETTIER", - "JSON_NPM_PACKAGE_JSON_LINT", "KOTLIN_KTLINT", "KUBERNETES_KUBEVAL", "KUBERNETES_KUBECONFORM", @@ -469,7 +465,6 @@ "JSON_ESLINT_PLUGIN_JSONC", "JSON_V8R", "JSON_PRETTIER", - "JSON_NPM_PACKAGE_JSON_LINT", "KOTLIN_KTLINT", "KUBERNETES_KUBEVAL", "KUBERNETES_KUBECONFORM", @@ -530,7 +525,6 @@ "JSON_ESLINT_PLUGIN_JSONC", "JSON_V8R", "JSON_PRETTIER", - "JSON_NPM_PACKAGE_JSON_LINT", "KOTLIN_KTLINT", "KUBERNETES_KUBEVAL", "KUBERNETES_KUBECONFORM", @@ -598,7 +592,6 @@ "JSON_ESLINT_PLUGIN_JSONC", "JSON_V8R", "JSON_PRETTIER", - "JSON_NPM_PACKAGE_JSON_LINT", "KOTLIN_KTLINT", "KUBERNETES_KUBEVAL", "KUBERNETES_KUBECONFORM", @@ -656,7 +649,6 @@ "JSON_ESLINT_PLUGIN_JSONC", "JSON_V8R", "JSON_PRETTIER", - "JSON_NPM_PACKAGE_JSON_LINT", "KOTLIN_KTLINT", "KUBERNETES_KUBEVAL", "KUBERNETES_KUBECONFORM", @@ -802,7 +794,6 @@ "JSON_ESLINT_PLUGIN_JSONC", "JSON_V8R", "JSON_PRETTIER", - "JSON_NPM_PACKAGE_JSON_LINT", "KOTLIN_KTLINT", "KUBERNETES_KUBEVAL", "KUBERNETES_KUBECONFORM", @@ -860,7 +851,6 @@ "JSON_ESLINT_PLUGIN_JSONC", "JSON_V8R", "JSON_PRETTIER", - "JSON_NPM_PACKAGE_JSON_LINT", "KOTLIN_KTLINT", "KUBERNETES_KUBEVAL", "KUBERNETES_KUBECONFORM", diff --git a/megalinter/descriptors/json.megalinter-descriptor.yml b/megalinter/descriptors/json.megalinter-descriptor.yml index 7dd07dd164d..a1cdd89c343 100644 --- a/megalinter/descriptors/json.megalinter-descriptor.yml +++ b/megalinter/descriptors/json.megalinter-descriptor.yml @@ -223,6 +223,11 @@ linters: linter_repo: https://github.com/tclindner/npm-package-json-lint linter_rules_url: https://npmpackagejsonlint.org/docs/rules linter_rules_configuration_url: https://npmpackagejsonlint.org/docs/configuration + descriptor_flavors: + - dotnet + - cupcake + - javascript + - salesforce cli_lint_mode: project cli_lint_extra_args_after: - "." From e6c749db35d51064e737658f654c3c7d176f9d13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Borja=20Dom=C3=ADnguez?= Date: Thu, 22 Dec 2022 23:18:18 +0100 Subject: [PATCH 2/2] Override descriptor_flavors --- flavors/ci_light/Dockerfile | 2 -- flavors/ci_light/flavor.json | 1 - flavors/documentation/Dockerfile | 2 -- flavors/documentation/flavor.json | 1 - flavors/go/Dockerfile | 2 -- flavors/go/flavor.json | 1 - flavors/java/Dockerfile | 2 -- flavors/java/flavor.json | 1 - flavors/php/Dockerfile | 2 -- flavors/php/flavor.json | 1 - flavors/python/Dockerfile | 2 -- flavors/python/flavor.json | 1 - flavors/ruby/Dockerfile | 2 -- flavors/ruby/flavor.json | 1 - flavors/rust/Dockerfile | 2 -- flavors/rust/flavor.json | 1 - flavors/swift/Dockerfile | 2 -- flavors/swift/flavor.json | 1 - flavors/terraform/Dockerfile | 2 -- flavors/terraform/flavor.json | 1 - megalinter/descriptors/all_flavors.json | 10 ---------- megalinter/descriptors/json.megalinter-descriptor.yml | 5 +++++ 22 files changed, 5 insertions(+), 40 deletions(-) diff --git a/flavors/ci_light/Dockerfile b/flavors/ci_light/Dockerfile index 8d94b574cb6..78764ca8045 100644 --- a/flavors/ci_light/Dockerfile +++ b/flavors/ci_light/Dockerfile @@ -110,8 +110,6 @@ RUN npm --no-cache install --ignore-scripts \ @microsoft/eslint-formatter-sarif \ v8r \ prettier \ - npm-package-json-lint \ - npm-package-json-lint-config-default \ secretlint \ @secretlint/secretlint-rule-preset-recommend \ @secretlint/secretlint-formatter-sarif && \ diff --git a/flavors/ci_light/flavor.json b/flavors/ci_light/flavor.json index d48c8ad41bc..4a1ff3fd57d 100644 --- a/flavors/ci_light/flavor.json +++ b/flavors/ci_light/flavor.json @@ -14,7 +14,6 @@ "JSON_ESLINT_PLUGIN_JSONC", "JSON_V8R", "JSON_PRETTIER", - "JSON_NPM_PACKAGE_JSON_LINT", "MAKEFILE_CHECKMAKE", "REPOSITORY_GIT_DIFF", "REPOSITORY_GITLEAKS", diff --git a/flavors/documentation/Dockerfile b/flavors/documentation/Dockerfile index 410b4ba77a8..81f8615c0bd 100644 --- a/flavors/documentation/Dockerfile +++ b/flavors/documentation/Dockerfile @@ -127,8 +127,6 @@ RUN npm --no-cache install --ignore-scripts \ @microsoft/eslint-formatter-sarif \ v8r \ prettier \ - npm-package-json-lint \ - npm-package-json-lint-config-default \ markdownlint-cli \ markdown-link-check \ markdown-table-formatter \ diff --git a/flavors/documentation/flavor.json b/flavors/documentation/flavor.json index 10283cb5b0f..c5a95ffe4ef 100644 --- a/flavors/documentation/flavor.json +++ b/flavors/documentation/flavor.json @@ -25,7 +25,6 @@ "JSON_ESLINT_PLUGIN_JSONC", "JSON_V8R", "JSON_PRETTIER", - "JSON_NPM_PACKAGE_JSON_LINT", "KOTLIN_KTLINT", "KUBERNETES_KUBEVAL", "KUBERNETES_KUBECONFORM", diff --git a/flavors/go/Dockerfile b/flavors/go/Dockerfile index 61a85fb5e4d..bcf288ffba3 100644 --- a/flavors/go/Dockerfile +++ b/flavors/go/Dockerfile @@ -127,8 +127,6 @@ RUN npm --no-cache install --ignore-scripts \ @microsoft/eslint-formatter-sarif \ v8r \ prettier \ - npm-package-json-lint \ - npm-package-json-lint-config-default \ markdownlint-cli \ markdown-link-check \ markdown-table-formatter \ diff --git a/flavors/go/flavor.json b/flavors/go/flavor.json index 4cbe32be776..31c64cf0cb0 100644 --- a/flavors/go/flavor.json +++ b/flavors/go/flavor.json @@ -28,7 +28,6 @@ "JSON_ESLINT_PLUGIN_JSONC", "JSON_V8R", "JSON_PRETTIER", - "JSON_NPM_PACKAGE_JSON_LINT", "KOTLIN_KTLINT", "KUBERNETES_KUBEVAL", "KUBERNETES_KUBECONFORM", diff --git a/flavors/java/Dockerfile b/flavors/java/Dockerfile index f66bf452f1a..25fce302095 100644 --- a/flavors/java/Dockerfile +++ b/flavors/java/Dockerfile @@ -128,8 +128,6 @@ RUN npm --no-cache install --ignore-scripts \ @microsoft/eslint-formatter-sarif \ v8r \ prettier \ - npm-package-json-lint \ - npm-package-json-lint-config-default \ markdownlint-cli \ markdown-link-check \ markdown-table-formatter \ diff --git a/flavors/java/flavor.json b/flavors/java/flavor.json index 50a5f0102ab..e178d5e2bd7 100644 --- a/flavors/java/flavor.json +++ b/flavors/java/flavor.json @@ -29,7 +29,6 @@ "JSON_ESLINT_PLUGIN_JSONC", "JSON_V8R", "JSON_PRETTIER", - "JSON_NPM_PACKAGE_JSON_LINT", "KOTLIN_KTLINT", "KUBERNETES_KUBEVAL", "KUBERNETES_KUBECONFORM", diff --git a/flavors/php/Dockerfile b/flavors/php/Dockerfile index 09faf26582a..c777eeb20e4 100644 --- a/flavors/php/Dockerfile +++ b/flavors/php/Dockerfile @@ -139,8 +139,6 @@ RUN npm --no-cache install --ignore-scripts \ @microsoft/eslint-formatter-sarif \ v8r \ prettier \ - npm-package-json-lint \ - npm-package-json-lint-config-default \ markdownlint-cli \ markdown-link-check \ markdown-table-formatter \ diff --git a/flavors/php/flavor.json b/flavors/php/flavor.json index 67aa2661d61..3716e6350e4 100644 --- a/flavors/php/flavor.json +++ b/flavors/php/flavor.json @@ -26,7 +26,6 @@ "JSON_ESLINT_PLUGIN_JSONC", "JSON_V8R", "JSON_PRETTIER", - "JSON_NPM_PACKAGE_JSON_LINT", "KOTLIN_KTLINT", "KUBERNETES_KUBEVAL", "KUBERNETES_KUBECONFORM", diff --git a/flavors/python/Dockerfile b/flavors/python/Dockerfile index 0d9949980d9..e5ac67192ff 100644 --- a/flavors/python/Dockerfile +++ b/flavors/python/Dockerfile @@ -137,8 +137,6 @@ RUN npm --no-cache install --ignore-scripts \ @microsoft/eslint-formatter-sarif \ v8r \ prettier \ - npm-package-json-lint \ - npm-package-json-lint-config-default \ markdownlint-cli \ markdown-link-check \ markdown-table-formatter \ diff --git a/flavors/python/flavor.json b/flavors/python/flavor.json index b68fca821d9..eaf5fdfefce 100644 --- a/flavors/python/flavor.json +++ b/flavors/python/flavor.json @@ -25,7 +25,6 @@ "JSON_ESLINT_PLUGIN_JSONC", "JSON_V8R", "JSON_PRETTIER", - "JSON_NPM_PACKAGE_JSON_LINT", "KOTLIN_KTLINT", "KUBERNETES_KUBEVAL", "KUBERNETES_KUBECONFORM", diff --git a/flavors/ruby/Dockerfile b/flavors/ruby/Dockerfile index d783fc4bb45..c14e7aa3a34 100644 --- a/flavors/ruby/Dockerfile +++ b/flavors/ruby/Dockerfile @@ -127,8 +127,6 @@ RUN npm --no-cache install --ignore-scripts \ @microsoft/eslint-formatter-sarif \ v8r \ prettier \ - npm-package-json-lint \ - npm-package-json-lint-config-default \ markdownlint-cli \ markdown-link-check \ markdown-table-formatter \ diff --git a/flavors/ruby/flavor.json b/flavors/ruby/flavor.json index ef750ec2769..55f0f058ee5 100644 --- a/flavors/ruby/flavor.json +++ b/flavors/ruby/flavor.json @@ -25,7 +25,6 @@ "JSON_ESLINT_PLUGIN_JSONC", "JSON_V8R", "JSON_PRETTIER", - "JSON_NPM_PACKAGE_JSON_LINT", "KOTLIN_KTLINT", "KUBERNETES_KUBEVAL", "KUBERNETES_KUBECONFORM", diff --git a/flavors/rust/Dockerfile b/flavors/rust/Dockerfile index 689e7c4e969..7bf66510b41 100644 --- a/flavors/rust/Dockerfile +++ b/flavors/rust/Dockerfile @@ -127,8 +127,6 @@ RUN npm --no-cache install --ignore-scripts \ @microsoft/eslint-formatter-sarif \ v8r \ prettier \ - npm-package-json-lint \ - npm-package-json-lint-config-default \ markdownlint-cli \ markdown-link-check \ markdown-table-formatter \ diff --git a/flavors/rust/flavor.json b/flavors/rust/flavor.json index 1ba86afc43a..df6ae986711 100644 --- a/flavors/rust/flavor.json +++ b/flavors/rust/flavor.json @@ -25,7 +25,6 @@ "JSON_ESLINT_PLUGIN_JSONC", "JSON_V8R", "JSON_PRETTIER", - "JSON_NPM_PACKAGE_JSON_LINT", "KOTLIN_KTLINT", "KUBERNETES_KUBEVAL", "KUBERNETES_KUBECONFORM", diff --git a/flavors/swift/Dockerfile b/flavors/swift/Dockerfile index b53864fdee1..ff19b8fb467 100644 --- a/flavors/swift/Dockerfile +++ b/flavors/swift/Dockerfile @@ -129,8 +129,6 @@ RUN npm --no-cache install --ignore-scripts \ @microsoft/eslint-formatter-sarif \ v8r \ prettier \ - npm-package-json-lint \ - npm-package-json-lint-config-default \ markdownlint-cli \ markdown-link-check \ markdown-table-formatter \ diff --git a/flavors/swift/flavor.json b/flavors/swift/flavor.json index 33b7e831812..bde47f2e467 100644 --- a/flavors/swift/flavor.json +++ b/flavors/swift/flavor.json @@ -25,7 +25,6 @@ "JSON_ESLINT_PLUGIN_JSONC", "JSON_V8R", "JSON_PRETTIER", - "JSON_NPM_PACKAGE_JSON_LINT", "KOTLIN_KTLINT", "KUBERNETES_KUBEVAL", "KUBERNETES_KUBECONFORM", diff --git a/flavors/terraform/Dockerfile b/flavors/terraform/Dockerfile index e8210e552da..8f423d0aa2e 100644 --- a/flavors/terraform/Dockerfile +++ b/flavors/terraform/Dockerfile @@ -131,8 +131,6 @@ RUN npm --no-cache install --ignore-scripts \ @microsoft/eslint-formatter-sarif \ v8r \ prettier \ - npm-package-json-lint \ - npm-package-json-lint-config-default \ markdownlint-cli \ markdown-link-check \ markdown-table-formatter \ diff --git a/flavors/terraform/flavor.json b/flavors/terraform/flavor.json index a9d9aa8543d..5596117063a 100644 --- a/flavors/terraform/flavor.json +++ b/flavors/terraform/flavor.json @@ -25,7 +25,6 @@ "JSON_ESLINT_PLUGIN_JSONC", "JSON_V8R", "JSON_PRETTIER", - "JSON_NPM_PACKAGE_JSON_LINT", "KOTLIN_KTLINT", "KUBERNETES_KUBEVAL", "KUBERNETES_KUBECONFORM", diff --git a/megalinter/descriptors/all_flavors.json b/megalinter/descriptors/all_flavors.json index 00f9df18121..f75db7580b5 100644 --- a/megalinter/descriptors/all_flavors.json +++ b/megalinter/descriptors/all_flavors.json @@ -15,7 +15,6 @@ "JSON_ESLINT_PLUGIN_JSONC", "JSON_V8R", "JSON_PRETTIER", - "JSON_NPM_PACKAGE_JSON_LINT", "MAKEFILE_CHECKMAKE", "REPOSITORY_GIT_DIFF", "REPOSITORY_GITLEAKS", @@ -149,7 +148,6 @@ "JSON_ESLINT_PLUGIN_JSONC", "JSON_V8R", "JSON_PRETTIER", - "JSON_NPM_PACKAGE_JSON_LINT", "KOTLIN_KTLINT", "KUBERNETES_KUBEVAL", "KUBERNETES_KUBECONFORM", @@ -281,7 +279,6 @@ "JSON_ESLINT_PLUGIN_JSONC", "JSON_V8R", "JSON_PRETTIER", - "JSON_NPM_PACKAGE_JSON_LINT", "KOTLIN_KTLINT", "KUBERNETES_KUBEVAL", "KUBERNETES_KUBECONFORM", @@ -343,7 +340,6 @@ "JSON_ESLINT_PLUGIN_JSONC", "JSON_V8R", "JSON_PRETTIER", - "JSON_NPM_PACKAGE_JSON_LINT", "KOTLIN_KTLINT", "KUBERNETES_KUBEVAL", "KUBERNETES_KUBECONFORM", @@ -469,7 +465,6 @@ "JSON_ESLINT_PLUGIN_JSONC", "JSON_V8R", "JSON_PRETTIER", - "JSON_NPM_PACKAGE_JSON_LINT", "KOTLIN_KTLINT", "KUBERNETES_KUBEVAL", "KUBERNETES_KUBECONFORM", @@ -530,7 +525,6 @@ "JSON_ESLINT_PLUGIN_JSONC", "JSON_V8R", "JSON_PRETTIER", - "JSON_NPM_PACKAGE_JSON_LINT", "KOTLIN_KTLINT", "KUBERNETES_KUBEVAL", "KUBERNETES_KUBECONFORM", @@ -598,7 +592,6 @@ "JSON_ESLINT_PLUGIN_JSONC", "JSON_V8R", "JSON_PRETTIER", - "JSON_NPM_PACKAGE_JSON_LINT", "KOTLIN_KTLINT", "KUBERNETES_KUBEVAL", "KUBERNETES_KUBECONFORM", @@ -656,7 +649,6 @@ "JSON_ESLINT_PLUGIN_JSONC", "JSON_V8R", "JSON_PRETTIER", - "JSON_NPM_PACKAGE_JSON_LINT", "KOTLIN_KTLINT", "KUBERNETES_KUBEVAL", "KUBERNETES_KUBECONFORM", @@ -802,7 +794,6 @@ "JSON_ESLINT_PLUGIN_JSONC", "JSON_V8R", "JSON_PRETTIER", - "JSON_NPM_PACKAGE_JSON_LINT", "KOTLIN_KTLINT", "KUBERNETES_KUBEVAL", "KUBERNETES_KUBECONFORM", @@ -860,7 +851,6 @@ "JSON_ESLINT_PLUGIN_JSONC", "JSON_V8R", "JSON_PRETTIER", - "JSON_NPM_PACKAGE_JSON_LINT", "KOTLIN_KTLINT", "KUBERNETES_KUBEVAL", "KUBERNETES_KUBECONFORM", diff --git a/megalinter/descriptors/json.megalinter-descriptor.yml b/megalinter/descriptors/json.megalinter-descriptor.yml index 7dd07dd164d..1bb468f640f 100644 --- a/megalinter/descriptors/json.megalinter-descriptor.yml +++ b/megalinter/descriptors/json.megalinter-descriptor.yml @@ -223,6 +223,11 @@ linters: linter_repo: https://github.com/tclindner/npm-package-json-lint linter_rules_url: https://npmpackagejsonlint.org/docs/rules linter_rules_configuration_url: https://npmpackagejsonlint.org/docs/configuration + descriptor_flavors: + - cupcake + - dotnet + - javascript + - salesforce cli_lint_mode: project cli_lint_extra_args_after: - "."