Skip to content

Commit

Permalink
Fix MegaLinter JSON Prettier install command
Browse files Browse the repository at this point in the history
  • Loading branch information
sbkok committed Oct 31, 2023
1 parent 90afb97 commit f088575
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 7 deletions.
9 changes: 5 additions & 4 deletions .mega-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,11 @@ FILEIO_REPORTER: false

# Install plugin for list handling.
JSON_PRETTIER_PRE_COMMANDS:
- command: |
npm install -g [email protected]
npm install --prefix /node-deps/ [email protected]
cwd: "workspace"
# - command: |-
# npm install -g [email protected]
# cwd: root
- command: "npm install [email protected]"
cwd: "root"

CLOUDFORMATION_CFN_LINT_CONFIG_FILE: '.cfnlintrc'
CLOUDFORMATION_CFN_LINT_FILE_EXTENSIONS: [".yml", ".yaml"]
Expand Down
6 changes: 3 additions & 3 deletions .prettierrc.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
module.exports = {
plugins: [
'prettier-plugin-multiline-arrays'
'./node_modules/prettier-plugin-multiline-arrays'
],
trailingComma: 'es5',
semi: false,
singleQuote: true
}
singleQuote: true,
};

0 comments on commit f088575

Please sign in to comment.