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