Skip to content

Commit

Permalink
Add support for --ignore-case option
Browse files Browse the repository at this point in the history
  • Loading branch information
monosans committed Apr 13, 2023
1 parent 934783d commit 70fafea
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,11 @@
},
"description": "Codes to ignore. Leave blank to get them from the djLint config file."
},
"djlint.ignoreCase": {
"type": "boolean",
"default": false,
"description": "Do not fix case on known html tags. Requires djLint>=1.23.0."
},
"djlint.include": {
"type": "array",
"items": {
Expand Down
1 change: 1 addition & 0 deletions src/errorHandler.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const versionedOptions = [
["ignore-case", "ignoreCase", "1.23.0"],
["include", "include", "1.20.0"],
["configuration", "configuration", "1.13.0"],
["format-css", "formatCss", "1.9.0"],
Expand Down
1 change: 1 addition & 0 deletions src/formatter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ const formatBoolOptions = [
["preserveBlankLines", "--preserve-blank-lines"],
["formatCss", "--format-css"],
["formatJs", "--format-js"],
["ignoreCase", "--ignore-case"]
];

function getFormatArgs(
Expand Down

0 comments on commit 70fafea

Please sign in to comment.