mirror of
https://github.com/apache/superset.git
synced 2026-08-05 13:32:41 +00:00
feat(build): migrate from Prettier to Oxfmt for performant code formatting (#42434)
This commit is contained in:
@@ -48,7 +48,9 @@ export default function remarkTechArticleSchema() {
|
||||
|
||||
const title = frontmatter.title;
|
||||
const description = frontmatter.description;
|
||||
const keywords = Array.isArray(frontmatter.keywords) ? frontmatter.keywords : [];
|
||||
const keywords = Array.isArray(frontmatter.keywords)
|
||||
? frontmatter.keywords
|
||||
: [];
|
||||
const proficiencyLevel = frontmatter.seo_proficiency || 'Beginner';
|
||||
|
||||
// Create the import statement
|
||||
@@ -110,7 +112,7 @@ export default function remarkTechArticleSchema() {
|
||||
type: 'ExpressionStatement',
|
||||
expression: {
|
||||
type: 'ArrayExpression',
|
||||
elements: keywords.map((k) => ({
|
||||
elements: keywords.map(k => ({
|
||||
type: 'Literal',
|
||||
value: k,
|
||||
})),
|
||||
|
||||
Reference in New Issue
Block a user