Skip to content

Commit d540fe8

Browse files
committed
fix(lint): resolve linting errors in create-app and docusaurus template
1 parent 3fadc42 commit d540fe8

3 files changed

Lines changed: 5 additions & 3 deletions

File tree

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,14 @@
4040
"lint:fix": "npx eslint . --config eslint.config.js --fix",
4141
"check": "npm run lint:fix && npm run format",
4242
"coverage": "vitest run --coverage",
43+
"prebuild": "npm run check",
4344
"build": "npx esbuild scripts/create-app.js --bundle --platform=node --target=node22 --format=esm --external:yoctocolors-cjs --external:mute-stream --external:safer-buffer --external:iconv-lite --external:cross-spawn --external:graceful-fs --external:fs-extra --external:inquirer --external:cli-progress --external:debug --outfile=dist/create-wizard.js --banner:js=\"#!/usr/bin/env node\"",
4445
"start": "node scripts/create-app.js",
4546
"docs:start": "cd docs && npm start",
4647
"docs:build": "cd docs && npm run build",
4748
"docs:serve": "cd docs && npm run serve",
4849
"template:create": "node scripts/create-template.js",
50+
"prerelease": "npm run check",
4951
"release": "node scripts/release.js",
5052
"debug": "cross-env DEBUG=TRUE && node scripts/create-app.js --debug=TRUE ",
5153
"review": "node scripts/ai-review.js"

scripts/create-app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -400,8 +400,8 @@ export async function main(deps) {
400400

401401
let eslintConfigContent
402402
if (packageJson.type === 'module') {
403-
eslintConfigContent = `import js from \"@eslint/js\";
404-
import globals from \"globals\";
403+
eslintConfigContent = `import js from "@eslint/js";
404+
import globals from "globals";
405405
${answers.includePrettier ? "import prettierConfig from 'eslint-config-prettier';\n" : ''}
406406
export default [
407407
{languageOptions: { globals: { ...globals.node, ...globals.browser } }},

template-library/docusaurus-site/src/components/HomepageFeatures/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const FeatureList = [
3737
},
3838
]
3939

40-
function Feature({ Svg, title, description }) {
40+
function Feature({ title, description }) {
4141
return (
4242
<div className={clsx('col col--4')}>
4343
<div className="text--center">

0 commit comments

Comments
 (0)