Skip to content

Commit

Permalink
Fix printing for no-semi
Browse files Browse the repository at this point in the history
  • Loading branch information
sosukesuzuki committed Mar 1, 2022
1 parent 266d4e5 commit d3dc1ea
Show file tree
Hide file tree
Showing 6 changed files with 523 additions and 21 deletions.
3 changes: 2 additions & 1 deletion src/language-js/print/statement.js
Expand Up @@ -167,7 +167,8 @@ function printSwitchCaseConsequent(path, options, print) {
const isClassProperty = ({ type }) =>
type === "ClassProperty" ||
type === "PropertyDefinition" ||
type === "ClassPrivateProperty";
type === "ClassPrivatePropertyj" ||
type === "ClassAccessorProperty";
/**
* @returns {boolean}
*/
Expand Down
2 changes: 2 additions & 0 deletions tests/config/format-test.js
Expand Up @@ -69,6 +69,8 @@ const meriyahDisabledTests = new Set([
"static-computed.js",
"static-private.js",
"static.js",
"with-semicolon-1.js",
"with-semicolon-2.js",
].map((filename) =>
path.join(__dirname, "../format/js/decorator-auto-accessors", filename)
),
Expand Down

0 comments on commit d3dc1ea

Please sign in to comment.