Skip to content

Commit

Permalink
chore: fix ESLint package
Browse files Browse the repository at this point in the history
Signed-off-by: Rai Siqueira <[email protected]>
  • Loading branch information
raisiqueira committed Apr 11, 2024
1 parent 87c8d0e commit 35b77c1
Show file tree
Hide file tree
Showing 6 changed files with 108 additions and 361 deletions.
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

0 comments on commit 35b77c1

Please sign in to comment.