diff --git a/package.json b/package.json index 6696921..fe539f2 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,7 @@ "repository": "https://github.com/jsdrupal/admin_ui", "scripts": { "build": "parcel build --public-url=MODULE_LOCATION/dist vfancy/index.html", - "test": "prettier --check vfancy/**/*.js component/**/*.js", + "test": "eslint --max-warnings=0 vfancy/**/* component/**/*", "prettier": "prettier --write vfancy/**/*.js component/**/*.js" }, "devDependencies": { @@ -41,6 +41,11 @@ "react-hooks", "jsx-a11y" ], + "settings": { + "react": { + "version": "detect" + } + }, "rules": { "react-hooks/rules-of-hooks": "error", "react-hooks/exhaustive-deps": "warn",