Skip to content

Commit 22dda37

Browse files
committed
chore: fix ESLint package
Signed-off-by: Rai Siqueira <rai93siqueira@gmail.com>
1 parent 40c61cc commit 22dda37

File tree

6 files changed

+108
-361
lines changed

6 files changed

+108
-361
lines changed

.eslintrc.json

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,12 @@
1616
"moduleDirectory": ["node_modules", "src/"]
1717
}
1818
},
19-
"react": {
20-
"version": "detect"
21-
},
2219
"ecmaFeatures": {
2320
"jsx": true
2421
}
2522
},
2623
"extends": [
2724
"eslint:recommended",
28-
"plugin:react/recommended",
2925
"plugin:@typescript-eslint/eslint-recommended",
3026
"plugin:@typescript-eslint/recommended",
3127
"plugin:prettier/recommended",
@@ -41,12 +37,8 @@
4137
"ecmaVersion": 11,
4238
"sourceType": "module"
4339
},
44-
"plugins": ["import", "react", "react-hooks", "@typescript-eslint"],
40+
"plugins": ["import", "@typescript-eslint"],
4541
"rules": {
46-
"react-hooks/rules-of-hooks": "error",
47-
"react-hooks/exhaustive-deps": "warn",
48-
"react/prop-types": "off",
49-
"react/react-in-jsx-scope": "off",
5042
"@typescript-eslint/explicit-module-boundary-types": "off",
5143
"import/order": [
5244
"warn",

lib/src/constants.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,10 +10,10 @@ export const AVAILABLE_KITS: Kit[] = [
1010
hint: 'The core kit for Eruption',
1111
},
1212
{
13-
label: "React Full (React, Vite, Vitest, React Router, Mantine and more)",
13+
label: 'React Full (React, Vite, Vitest, React Router, Mantine and more)',
1414
value: 'react-full',
1515
hint: 'An opinionated React setup with Vite, Vitest, React Router and more',
16-
}
16+
},
1717
];
1818

1919
/**

lib/src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ export async function main() {
125125
}
126126

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

131131
note(nextSteps, 'Next steps:');

lib/src/utils.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export async function fileExists(path: string) {
2828
await fs.stat(path);
2929
return true;
3030
} catch (error: unknown) {
31+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
3132
if ((error as any).code === 'ENOENT') {
3233
return false;
3334
} else {

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,11 @@
3030
"@typescript-eslint/eslint-plugin": "^7.6.0",
3131
"@typescript-eslint/parser": "^7.6.0",
3232
"commitlint": "^19.2.1",
33-
"eslint": "^9.0.0",
33+
"eslint": "^8.57.0",
3434
"eslint-config-prettier": "^9.1.0",
3535
"eslint-import-resolver-typescript": "^3.6.1",
3636
"eslint-plugin-import": "^2.29.1",
3737
"eslint-plugin-prettier": "^5.1.3",
38-
"eslint-plugin-react": "^7.34.1",
39-
"eslint-plugin-react-hooks": "^4.6.0",
4038
"husky": "^9.0.11",
4139
"lint-staged": "^15.2.2",
4240
"prettier": "^3.2.5",

0 commit comments

Comments
 (0)