From 4902e0d83510cabd02e43c3d8ca1dc9c48ac3fce Mon Sep 17 00:00:00 2001 From: alexvcs Date: Fri, 22 Dec 2023 09:53:05 -0500 Subject: [PATCH] made changes to .eslintrc.cjs, package.json, and .gitignore --- .eslintrc.cjs | 9 +++++++++ .gitignore | 3 +++ package.json | 6 +++--- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/.eslintrc.cjs b/.eslintrc.cjs index f2f0cc6..60b625f 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -10,4 +10,13 @@ module.exports = { ], ignorePatterns: ["dist", ".eslintrc.cjs"], parser: "@typescript-eslint/parser", + rules: { + "react/react-in-jsx-scope": "off", + "react/prop-types": "off", + }, + settings: { + react: { + version: "detect", + }, + }, }; diff --git a/.gitignore b/.gitignore index a547bf3..95ec3e4 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,6 @@ dist-ssr *.njsproj *.sln *.sw? + +# ESLint +.eslintcache \ No newline at end of file diff --git a/package.json b/package.json index 0e943c3..6e72f44 100644 --- a/package.json +++ b/package.json @@ -94,7 +94,7 @@ "react-dom": ">=18.2.0" }, "lint-staged": { - "*.{ts,tsx}": "eslint --cache --fix", - "*.{js,css,md}": "prettier --write" + "*.{ts,tsx,js,jsx}": "eslint --cache --fix", + "*.{ts,tsx,js,jsx,css,less,md,html}": "prettier --write" } -} +} \ No newline at end of file