Skip to content

!DOCTYPE is forced to lowercase #15096

@yoyo837

Description

@yoyo837

Prettier 3.0.0

module.exports = {
  semi: true,
  singleQuote: true,
  singleAttributePerLine: true,
  trailingComma: 'es5',
  printWidth: 120,
  arrowParens: 'avoid',
  endOfLine: 'lf',
  overrides: [
    {
      files: '.prettierrc',
      options: { parser: 'json' },
    },
  ],
};

Input:

<!DOCTYPE html>
<html
  lang="zh-Hans"
  translate="no"
>
  <head> </head>

  <body></body>
</html>

Output:

<!doctype html>
<html
  lang="zh-Hans"
  translate="no"
>
  <head> </head>

  <body></body>
</html>

Expected behavior:

Please do not modify the DOCTYPE.

Metadata

Metadata

Assignees

Labels

locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions