diff --git a/wally-registry-frontend/.eslintrc.json b/wally-registry-frontend/.eslintrc.json index 3722418..daa2c20 100644 --- a/wally-registry-frontend/.eslintrc.json +++ b/wally-registry-frontend/.eslintrc.json @@ -1,3 +1,13 @@ { - "extends": ["next/core-web-vitals", "next/typescript"] + "plugins": ["jsx-a11y"], + "extends": [ + "next/core-web-vitals", + "next/typescript", + "plugin:jsx-a11y/strict " + ], + "rules": { + "no-constant-condition": ["error", { "checkLoops": "all" }], + "no-unused-vars": 0, + "no-console": 2 + } } diff --git a/wally-registry-frontend/.prettierignore b/wally-registry-frontend/.prettierignore new file mode 100644 index 0000000..2caef98 --- /dev/null +++ b/wally-registry-frontend/.prettierignore @@ -0,0 +1,2 @@ +/src/types/icons.d.ts +/functions/lib diff --git a/wally-registry-frontend/.prettierrc b/wally-registry-frontend/.prettierrc new file mode 100644 index 0000000..f6ca428 --- /dev/null +++ b/wally-registry-frontend/.prettierrc @@ -0,0 +1,6 @@ +{ + "trailingComma": "es5", + "tabWidth": 2, + "semi": false, + "singleQuote": false +} diff --git a/wally-registry-frontend/package-lock.json b/wally-registry-frontend/package-lock.json index 146df02..35c0d1b 100644 --- a/wally-registry-frontend/package-lock.json +++ b/wally-registry-frontend/package-lock.json @@ -21,7 +21,9 @@ "concurrently": "^9.1.0", "eslint": "^8", "eslint-config-next": "15.0.2", + "eslint-plugin-jsx-a11y": "^6.10.2", "fantasticon": "^1.1.3", + "prettier": "^3.3.3", "typescript": "^5" } }, @@ -5083,6 +5085,22 @@ "node": ">= 0.8.0" } }, + "node_modules/prettier": { + "version": "3.3.3", + "resolved": "https://registry.npmjs.org/prettier/-/prettier-3.3.3.tgz", + "integrity": "sha512-i2tDNA0O5IrMO757lfrdQZCc2jPNDVntV0m/+4whiDfWaTKfMNgR7Qz0NAeGz/nRqF4m5/6CLzbP4/liHt12Ew==", + "dev": true, + "license": "MIT", + "bin": { + "prettier": "bin/prettier.cjs" + }, + "engines": { + "node": ">=14" + }, + "funding": { + "url": "https://github.com/prettier/prettier?sponsor=1" + } + }, "node_modules/promise-inflight": { "version": "1.0.1", "resolved": "https://registry.npmjs.org/promise-inflight/-/promise-inflight-1.0.1.tgz", diff --git a/wally-registry-frontend/package.json b/wally-registry-frontend/package.json index b5f3055..3d0fca0 100644 --- a/wally-registry-frontend/package.json +++ b/wally-registry-frontend/package.json @@ -23,7 +23,9 @@ "concurrently": "^9.1.0", "eslint": "^8", "eslint-config-next": "15.0.2", + "eslint-plugin-jsx-a11y": "^6.10.2", "fantasticon": "^1.1.3", + "prettier": "^3.3.3", "typescript": "^5" } }