Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: update the CLI to support the new versions and packages #17

Merged
merged 5 commits into from
Apr 11, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
chore: fix ESLint package
Signed-off-by: Rai Siqueira <[email protected]>
  • Loading branch information
raisiqueira committed Apr 11, 2024
commit 35b77c13fc6c5a5a6655f54ffa722fb03d668e08
10 changes: 1 addition & 9 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,12 @@
"moduleDirectory": ["node_modules", "src/"]
}
},
"react": {
"version": "detect"
},
"ecmaFeatures": {
"jsx": true
}
},
"extends": [
"eslint:recommended",
"plugin:react/recommended",
"plugin:@typescript-eslint/eslint-recommended",
"plugin:@typescript-eslint/recommended",
"plugin:prettier/recommended",
Expand All @@ -41,12 +37,8 @@
"ecmaVersion": 11,
"sourceType": "module"
},
"plugins": ["import", "react", "react-hooks", "@typescript-eslint"],
"plugins": ["import", "@typescript-eslint"],
"rules": {
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "warn",
"react/prop-types": "off",
"react/react-in-jsx-scope": "off",
"@typescript-eslint/explicit-module-boundary-types": "off",
"import/order": [
"warn",
Expand Down
4 changes: 2 additions & 2 deletions lib/src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ export const AVAILABLE_KITS: Kit[] = [
hint: 'The core kit for Eruption',
},
{
label: "React Full (React, Vite, Vitest, React Router, Mantine and more)",
label: 'React Full (React, Vite, Vitest, React Router, Mantine and more)',
value: 'react-full',
hint: 'An opinionated React setup with Vite, Vitest, React Router and more',
}
},
];

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ export async function main() {
}

const nextSteps = `cd ${projectName as string} \n${
install ? `${green(getPmInstallCommands("bun"))} to install the dependencies\n` : ''
install ? `${green(getPmInstallCommands('bun'))} to install the dependencies\n` : ''
}and ${green(`bun dev`)} to start the development server`;

note(nextSteps, 'Next steps:');
Expand Down
1 change: 1 addition & 0 deletions lib/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ export async function fileExists(path: string) {
await fs.stat(path);
return true;
} catch (error: unknown) {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
if ((error as any).code === 'ENOENT') {
return false;
} else {
Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,11 @@
"@typescript-eslint/eslint-plugin": "^7.6.0",
"@typescript-eslint/parser": "^7.6.0",
"commitlint": "^19.2.1",
"eslint": "^9.0.0",
"eslint": "^8.57.0",
"eslint-config-prettier": "^9.1.0",
"eslint-import-resolver-typescript": "^3.6.1",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-prettier": "^5.1.3",
"eslint-plugin-react": "^7.34.1",
"eslint-plugin-react-hooks": "^4.6.0",
"husky": "^9.0.11",
"lint-staged": "^15.2.2",
"prettier": "^3.2.5",
Expand Down
Loading
Loading