{"_id":"@api3/eslint-plugin-commons","_rev":"10-621641e30a355bd97a153dd28d026cb0","name":"@api3/eslint-plugin-commons","dist-tags":{"latest":"3.1.1"},"versions":{"1.0.0":{"name":"@api3/eslint-plugin-commons","version":"1.0.0","keywords":["eslint","eslint-plugin"],"license":"MIT","_id":"@api3/eslint-plugin-commons@1.0.0","homepage":"https://github.com/api3dao/eslint-plugin-commons#readme","bugs":{"url":"https://github.com/api3dao/eslint-plugin-commons/issues"},"dist":{"shasum":"2e77077a1fe0bf5b54284b222d81decf1ecaa4e5","tarball":"https://registry.npmjs.org/@api3/eslint-plugin-commons/-/eslint-plugin-commons-1.0.0.tgz","fileCount":8,"integrity":"sha512-8Vb2OJTFDQxDRG6POp5LtadvebBPQPtkMnbtig/B00mJW03VS/Ew5OK65ZrIPoTINnHn8tElzPdU90hooHqEOQ==","signatures":[{"sig":"MEQCIHQqNM+zjXumRqTn+PNCYnqvUmgC6K/FNLqnEtUfaYEtAiA2QPo2osR+avHk7Q1YLHv1bCbi/0k8vOknMZxRNLqCww==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":23909},"main":"index.js","_from":"file:api3-eslint-plugin-commons-1.0.0.tgz","engines":{"node":">=18.14.0"},"scripts":{"eslint:fix":"pnpm run eslint:check --fix","eslint:check":"eslint --report-unused-disable-directives --cache --ext js,ts,tsx,jsx . --max-warnings 0","prettier:fix":"prettier --write \"./**/*.{js,ts,md,json}\"","prettier:check":"prettier --check \"./**/*.{js,ts,md,json}\""},"_npmUser":{"name":"dcroote","email":"npmjs.whopx@passmail.net"},"_resolved":"/tmp/727e53935df88a40ddb0a4ed8ca5b8a9/api3-eslint-plugin-commons-1.0.0.tgz","_integrity":"sha512-8Vb2OJTFDQxDRG6POp5LtadvebBPQPtkMnbtig/B00mJW03VS/Ew5OK65ZrIPoTINnHn8tElzPdU90hooHqEOQ==","repository":{"url":"git+https://github.com/api3dao/eslint-plugin-commons.git","type":"git"},"_npmVersion":"10.2.4","description":"> ESLint configurations used across API3 projects.","directories":{},"sideEffects":false,"_nodeVersion":"20.11.1","dependencies":{"lodash":"^4.17.21","eslint-config-next":"^14.2.3","eslint-plugin-jest":"^28.6.0","eslint-plugin-react":"^7.32.1","eslint-plugin-import":"^2.28.1","eslint-plugin-lodash":"^7.4.0","eslint-plugin-cypress":"^3.2.0","eslint-plugin-promise":"^6.1.1","eslint-plugin-unicorn":"^54.0.0","eslint-plugin-check-file":"^2.6.2","eslint-plugin-functional":"^6.0.0","@typescript-eslint/parser":"^7.13.1","eslint-plugin-deprecation":"^3.0.0","eslint-plugin-react-hooks":"^4.6.0","eslint-plugin-no-only-tests":"^3.1.0","eslint-plugin-jest-formatting":"^3.1.0","@typescript-eslint/eslint-plugin":"^7.13.1"},"_hasShrinkwrap":false,"devDependencies":{"husky":"^9.0.11","eslint":"^8.57.0","prettier":"^3.3.1","@types/lodash":"^4.17.5"},"peerDependencies":{"eslint":"^8.57.0"},"_npmOperationalInternal":{"tmp":"tmp/eslint-plugin-commons_1.0.0_1719291157656_0.2606266729575284","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"@api3/eslint-plugin-commons","version":"1.0.1","keywords":["eslint","eslint-plugin"],"license":"MIT","_id":"@api3/eslint-plugin-commons@1.0.1","homepage":"https://github.com/api3dao/eslint-plugin-commons#readme","bugs":{"url":"https://github.com/api3dao/eslint-plugin-commons/issues"},"dist":{"shasum":"ff2a9dd3beeabd968ba415220753fa51383ac528","tarball":"https://registry.npmjs.org/@api3/eslint-plugin-commons/-/eslint-plugin-commons-1.0.1.tgz","fileCount":8,"integrity":"sha512-KY46lDBa5QgqfYdD7D8kv0ZS8rtXgH2q1+7eeCvfDQD2jtWz9pzBoYXZ1Eu49P4e6NjeNn9PkYZElcdxXroVCg==","signatures":[{"sig":"MEQCIHaR8vFickFTqUA2LvtSJ+mzt/dRMcJ1MENH4TQYjA/BAiA2364Efwvx+GHSuOF6J39p9Cy4GgF6JeMVCf1l7RgcFw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":24092},"main":"index.js","_from":"file:api3-eslint-plugin-commons-1.0.1.tgz","engines":{"node":">=18.14.0"},"scripts":{"eslint:fix":"pnpm run eslint:check --fix","eslint:check":"eslint --report-unused-disable-directives --cache --ext js,ts,tsx,jsx . --max-warnings 0","prettier:fix":"prettier --write \"./**/*.{js,ts,md,json}\"","prettier:check":"prettier --check \"./**/*.{js,ts,md,json}\""},"_npmUser":{"name":"dcroote","email":"npmjs.whopx@passmail.net"},"_resolved":"/tmp/06aceada7c9e4f29d52cf2b42d224a3a/api3-eslint-plugin-commons-1.0.1.tgz","_integrity":"sha512-KY46lDBa5QgqfYdD7D8kv0ZS8rtXgH2q1+7eeCvfDQD2jtWz9pzBoYXZ1Eu49P4e6NjeNn9PkYZElcdxXroVCg==","repository":{"url":"git+https://github.com/api3dao/eslint-plugin-commons.git","type":"git"},"_npmVersion":"10.2.4","description":"> ESLint configurations used across API3 projects.","directories":{},"sideEffects":false,"_nodeVersion":"20.11.1","dependencies":{"lodash":"^4.17.21","eslint-config-next":"^14.2.3","eslint-plugin-jest":"^28.6.0","eslint-plugin-react":"^7.32.1","eslint-plugin-import":"^2.28.1","eslint-plugin-lodash":"^7.4.0","eslint-plugin-cypress":"^3.2.0","eslint-plugin-promise":"^6.1.1","eslint-plugin-unicorn":"^54.0.0","eslint-plugin-check-file":"^2.6.2","eslint-plugin-functional":"^6.0.0","@typescript-eslint/parser":"^7.13.1","eslint-plugin-deprecation":"^3.0.0","eslint-plugin-react-hooks":"^4.6.0","eslint-plugin-no-only-tests":"^3.1.0","eslint-plugin-jest-formatting":"^3.1.0","@typescript-eslint/eslint-plugin":"^7.13.1"},"_hasShrinkwrap":false,"devDependencies":{"husky":"^9.0.11","eslint":"^8.57.0","prettier":"^3.3.1","@types/lodash":"^4.17.5"},"peerDependencies":{"eslint":"^8.57.0"},"_npmOperationalInternal":{"tmp":"tmp/eslint-plugin-commons_1.0.1_1719377644353_0.4619266658992922","host":"s3://npm-registry-packages"}},"2.0.0":{"name":"@api3/eslint-plugin-commons","version":"2.0.0","keywords":["eslint","eslint-plugin"],"license":"MIT","_id":"@api3/eslint-plugin-commons@2.0.0","maintainers":[{"name":"siegrift","email":"e.tesarr@gmail.com"},{"name":"dcroote","email":"npmjs.whopx@passmail.net"},{"name":"aquarat","email":"blue@aquarat.co.za"},{"name":"bbenligiray","email":"bbenligiray@gmail.com"},{"name":"andreogle","email":"ogleandre@gmail.com"}],"homepage":"https://github.com/api3dao/eslint-plugin-commons#readme","bugs":{"url":"https://github.com/api3dao/eslint-plugin-commons/issues"},"dist":{"shasum":"9bdd2e0045481612d2ed5a8ef2283095b93df2fd","tarball":"https://registry.npmjs.org/@api3/eslint-plugin-commons/-/eslint-plugin-commons-2.0.0.tgz","fileCount":8,"integrity":"sha512-kvrQTKSrCDutSe2EiXKu41FBGh+6n9IlI3o7aEUFew1BHjnSg1uWdWA07vxDvu4Ugm6NpYv6OTEQQHFAWFxkJg==","signatures":[{"sig":"MEQCICF+o9+ZKnUe6mzT1GSFveAH3UE+Bfre6Ytti5sd5PD0AiAXoo2ButTCCwXCoXt85gGoesxZV3xCxgB/0tx2iRYFPw==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":24661},"main":"index.js","_from":"file:api3-eslint-plugin-commons-2.0.0.tgz","engines":{"node":">=18.14.0"},"scripts":{"eslint:fix":"pnpm run eslint:check --fix","eslint:check":"eslint --report-unused-disable-directives --cache --ext js,ts,tsx,jsx . --max-warnings 0","prettier:fix":"prettier --write \"./**/*.{js,ts,md,json}\"","prettier:check":"prettier --check \"./**/*.{js,ts,md,json}\""},"_npmUser":{"name":"dcroote","email":"npmjs.whopx@passmail.net"},"_resolved":"/tmp/9768a94ed1b7b1fef845d5209c89ac8a/api3-eslint-plugin-commons-2.0.0.tgz","_integrity":"sha512-kvrQTKSrCDutSe2EiXKu41FBGh+6n9IlI3o7aEUFew1BHjnSg1uWdWA07vxDvu4Ugm6NpYv6OTEQQHFAWFxkJg==","repository":{"url":"git+https://github.com/api3dao/eslint-plugin-commons.git","type":"git"},"_npmVersion":"10.2.4","description":"> ESLint configurations used across API3 projects.","directories":{},"sideEffects":false,"_nodeVersion":"18.19.1","dependencies":{"lodash":"^4.17.21","eslint-config-next":"^14.2.3","eslint-plugin-jest":"^28.6.0","eslint-plugin-react":"^7.32.1","eslint-plugin-import":"^2.28.1","eslint-plugin-lodash":"^7.4.0","eslint-plugin-cypress":"^3.2.0","eslint-plugin-promise":"^6.1.1","eslint-plugin-unicorn":"^54.0.0","@shopify/eslint-plugin":"^45.0.0","eslint-plugin-check-file":"^2.6.2","eslint-plugin-functional":"^6.0.0","@typescript-eslint/parser":"^7.13.1","eslint-plugin-deprecation":"^3.0.0","eslint-plugin-react-hooks":"^4.6.0","eslint-plugin-no-only-tests":"^3.1.0","eslint-plugin-jest-formatting":"^3.1.0","@typescript-eslint/eslint-plugin":"^7.13.1"},"_hasShrinkwrap":false,"devDependencies":{"husky":"^9.0.11","eslint":"^8.57.0","prettier":"^3.3.1","@types/lodash":"^4.17.5"},"peerDependencies":{"eslint":"^8.57.0"},"_npmOperationalInternal":{"tmp":"tmp/eslint-plugin-commons_2.0.0_1721367617122_0.8377484830213255","host":"s3://npm-registry-packages"}},"2.0.1":{"name":"@api3/eslint-plugin-commons","version":"2.0.1","keywords":["eslint","eslint-plugin"],"license":"MIT","_id":"@api3/eslint-plugin-commons@2.0.1","maintainers":[{"name":"siegrift","email":"e.tesarr@gmail.com"},{"name":"dcroote","email":"npmjs.whopx@passmail.net"},{"name":"aquarat","email":"blue@aquarat.co.za"},{"name":"bbenligiray","email":"bbenligiray@gmail.com"},{"name":"andreogle","email":"ogleandre@gmail.com"}],"homepage":"https://github.com/api3dao/eslint-plugin-commons#readme","bugs":{"url":"https://github.com/api3dao/eslint-plugin-commons/issues"},"dist":{"shasum":"20d3849a0068b96d0ec86b95b90fa2f0515fd9a6","tarball":"https://registry.npmjs.org/@api3/eslint-plugin-commons/-/eslint-plugin-commons-2.0.1.tgz","fileCount":8,"integrity":"sha512-Z5QMsti5Zgqxb2cg6UnBjIPoBxkYFVl1l96PmVSOv9OafiBvzYhjR4PQbvfyjm8S1XZcPbp5W5smE144HPBzXA==","signatures":[{"sig":"MEUCIA6DZkN3wc1gwH3CABKRRpuw+wLC10iM+IfAHcMhfseDAiEAzb6SOlxy91lVMvZK/MCYt5vUxZ5FQFoPzP5Ii9vyrq8=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":24607},"main":"index.js","_from":"file:api3-eslint-plugin-commons-2.0.1.tgz","engines":{"node":">=18.14.0"},"scripts":{"eslint:fix":"pnpm run eslint:check --fix","eslint:check":"eslint --report-unused-disable-directives --cache --ext js,ts,tsx,jsx . --max-warnings 0","prettier:fix":"prettier --write \"./**/*.{js,ts,md,json}\"","prettier:check":"prettier --check \"./**/*.{js,ts,md,json}\""},"_npmUser":{"name":"dcroote","email":"npmjs.whopx@passmail.net"},"_resolved":"/tmp/8a86f53b4813669d2fa27e6a7150d254/api3-eslint-plugin-commons-2.0.1.tgz","_integrity":"sha512-Z5QMsti5Zgqxb2cg6UnBjIPoBxkYFVl1l96PmVSOv9OafiBvzYhjR4PQbvfyjm8S1XZcPbp5W5smE144HPBzXA==","repository":{"url":"git+https://github.com/api3dao/eslint-plugin-commons.git","type":"git"},"_npmVersion":"10.2.4","description":"> ESLint configurations used across API3 projects.","directories":{},"sideEffects":false,"_nodeVersion":"20.11.1","dependencies":{"lodash":"^4.17.21","eslint-config-next":"^14.2.3","eslint-plugin-jest":"^28.6.0","eslint-plugin-react":"^7.32.1","eslint-plugin-import":"^2.28.1","eslint-plugin-lodash":"^7.4.0","eslint-plugin-cypress":"^3.2.0","eslint-plugin-promise":"^6.1.1","eslint-plugin-unicorn":"^54.0.0","@shopify/eslint-plugin":"^45.0.0","eslint-plugin-check-file":"^2.6.2","eslint-plugin-functional":"^6.0.0","@typescript-eslint/parser":"^7.13.1","eslint-plugin-deprecation":"^3.0.0","eslint-plugin-react-hooks":"^4.6.0","eslint-plugin-no-only-tests":"^3.1.0","eslint-plugin-jest-formatting":"^3.1.0","@typescript-eslint/eslint-plugin":"^7.13.1"},"_hasShrinkwrap":false,"devDependencies":{"husky":"^9.0.11","eslint":"^8.57.0","prettier":"^3.3.1","@types/lodash":"^4.17.5"},"peerDependencies":{"eslint":"^8.57.0"},"_npmOperationalInternal":{"tmp":"tmp/eslint-plugin-commons_2.0.1_1722280773425_0.2597082342213495","host":"s3://npm-registry-packages"}},"3.0.0":{"name":"@api3/eslint-plugin-commons","version":"3.0.0","keywords":["eslint","eslint-plugin"],"license":"MIT","_id":"@api3/eslint-plugin-commons@3.0.0","maintainers":[{"name":"siegrift","email":"e.tesarr@gmail.com"},{"name":"dcroote","email":"npmjs.whopx@passmail.net"},{"name":"aquarat","email":"blue@aquarat.co.za"},{"name":"bbenligiray","email":"bbenligiray@gmail.com"},{"name":"andreogle","email":"ogleandre@gmail.com"}],"homepage":"https://github.com/api3dao/eslint-plugin-commons#readme","bugs":{"url":"https://github.com/api3dao/eslint-plugin-commons/issues"},"dist":{"shasum":"2fd52a70ca5142e7600b15710194069091099525","tarball":"https://registry.npmjs.org/@api3/eslint-plugin-commons/-/eslint-plugin-commons-3.0.0.tgz","fileCount":8,"integrity":"sha512-XUEM2HDA9LCHt6Fd7xydlxUjM2Foquilcb07IDzxMgAYq08yWXP3tuIjduZyHYTX0L7zFoOYfD1z8NQniRN61g==","signatures":[{"sig":"MEUCIGZ5iNqGwGXRhWRB0RHpRI1mKR9rxLAZnfozvZQzOZnGAiEA52YU700SqyEKhHK6OyMEQGhmkTFN30D8Jl/3lTWY1Xg=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@api3%2feslint-plugin-commons@3.0.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":25733},"main":"index.js","_from":"file:api3-eslint-plugin-commons-3.0.0.tgz","engines":{"node":">=18.14.0"},"scripts":{"eslint:fix":"pnpm run eslint:check --fix","release:tag":"node scripts/tag-and-release.js","eslint:check":"eslint --report-unused-disable-directives --cache --ext js,ts,tsx,jsx . --max-warnings 0","prettier:fix":"prettier --write \"./**/*.{js,ts,md,json}\"","prettier:check":"prettier --check \"./**/*.{js,ts,md,json}\""},"_npmUser":{"name":"siegrift","email":"e.tesarr@gmail.com"},"_resolved":"/tmp/f380ac407e904c3bd7ca2ef18156538b/api3-eslint-plugin-commons-3.0.0.tgz","_integrity":"sha512-XUEM2HDA9LCHt6Fd7xydlxUjM2Foquilcb07IDzxMgAYq08yWXP3tuIjduZyHYTX0L7zFoOYfD1z8NQniRN61g==","repository":{"url":"git+https://github.com/api3dao/eslint-plugin-commons.git","type":"git"},"_npmVersion":"10.8.2","description":"> ESLint configurations used across API3 projects.","directories":{},"sideEffects":false,"_nodeVersion":"20.17.0","dependencies":{"lodash":"^4.17.21","eslint-config-next":"^14.2.13","eslint-plugin-jest":"^28.8.3","eslint-plugin-react":"^7.36.1","eslint-plugin-import":"^2.30.0","eslint-plugin-lodash":"^7.4.0","eslint-plugin-cypress":"^3.5.0","eslint-plugin-promise":"^7.1.0","eslint-plugin-unicorn":"^55.0.0","@shopify/eslint-plugin":"^45.0.0","eslint-plugin-check-file":"^2.8.0","eslint-plugin-functional":"^6.6.3","@typescript-eslint/parser":"^8.6.0","eslint-plugin-deprecation":"^3.0.0","eslint-plugin-react-hooks":"^4.6.2","eslint-plugin-no-only-tests":"^3.3.0","eslint-plugin-jest-formatting":"^3.1.0","@typescript-eslint/eslint-plugin":"^8.6.0"},"_hasShrinkwrap":false,"devDependencies":{"husky":"^9.1.6","eslint":"^8.57.1","prettier":"^3.3.3","@api3/commons":"0.13.2","@types/lodash":"^4.17.7"},"peerDependencies":{"eslint":"^8.57.1"},"_npmOperationalInternal":{"tmp":"tmp/eslint-plugin-commons_3.0.0_1727269176207_0.13109468915759548","host":"s3://npm-registry-packages"}},"3.1.0":{"name":"@api3/eslint-plugin-commons","version":"3.1.0","keywords":["eslint","eslint-plugin"],"license":"MIT","_id":"@api3/eslint-plugin-commons@3.1.0","maintainers":[{"name":"dcroote","email":"npmjs.whopx@passmail.net"},{"name":"bbenligiray","email":"bbenligiray@gmail.com"},{"name":"siegrift","email":"e.tesarr@gmail.com"}],"homepage":"https://github.com/api3dao/eslint-plugin-commons#readme","bugs":{"url":"https://github.com/api3dao/eslint-plugin-commons/issues"},"dist":{"shasum":"903c01b98fb123be3f98911f4a22e38e32cbf39a","tarball":"https://registry.npmjs.org/@api3/eslint-plugin-commons/-/eslint-plugin-commons-3.1.0.tgz","fileCount":8,"integrity":"sha512-iRcJnhdMNXOzKiBocWu2WtxNBcYGWMBGSaMAx9y/u+1X3M+ebNbf2oxNArQ2YveIBDcSpWTmaae5jAEeH5ahLw==","signatures":[{"sig":"MEUCIQD8z2raxXhp0IkPzIjxh6GKK8su3XFe2r7qdeS+9yMUwAIgfdckLNXJ0M5IsIcfwefe700NSdmgJoFJJ87bb+WQHnE=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@api3%2feslint-plugin-commons@3.1.0","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":26169},"main":"index.js","_from":"file:api3-eslint-plugin-commons-3.1.0.tgz","engines":{"node":">=18.14.0"},"scripts":{"eslint:fix":"pnpm run eslint:check --fix","release:tag":"node scripts/tag-and-release.js","eslint:check":"eslint --report-unused-disable-directives --cache --ext js,ts,tsx,jsx . --max-warnings 0","prettier:fix":"prettier --write \"./**/*.{js,ts,md,json}\"","prettier:check":"prettier --check \"./**/*.{js,ts,md,json}\""},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:2f3a55c2-632b-4a0e-9db7-43cf9f89bd0a"}},"_resolved":"/tmp/52770cf85d824aa6c39ed026c2b37575/api3-eslint-plugin-commons-3.1.0.tgz","_integrity":"sha512-iRcJnhdMNXOzKiBocWu2WtxNBcYGWMBGSaMAx9y/u+1X3M+ebNbf2oxNArQ2YveIBDcSpWTmaae5jAEeH5ahLw==","repository":{"url":"git+https://github.com/api3dao/eslint-plugin-commons.git","type":"git"},"_npmVersion":"11.6.2","description":"> ESLint configurations used across API3 projects.","directories":{},"sideEffects":false,"_nodeVersion":"24.12.0","dependencies":{"lodash":"^4.17.21","eslint-config-next":"^15.1.7","eslint-plugin-jest":"^28.11.0","eslint-plugin-react":"^7.37.4","eslint-plugin-import":"^2.31.0","eslint-plugin-lodash":"^7.4.0","eslint-plugin-cypress":"^4.1.0","eslint-plugin-promise":"^7.2.1","eslint-plugin-unicorn":"^56.0.1","@shopify/eslint-plugin":"^47.0.1","eslint-plugin-check-file":"^3.0.0","eslint-plugin-functional":"^6.6.3","@typescript-eslint/parser":"^8.24.0","eslint-plugin-deprecation":"^3.0.0","eslint-plugin-react-hooks":"^5.1.0","eslint-plugin-no-only-tests":"^3.3.0","eslint-plugin-jest-formatting":"^3.1.0","@typescript-eslint/eslint-plugin":"^8.24.0"},"_hasShrinkwrap":false,"devDependencies":{"husky":"^9.1.7","eslint":"^8.57.1","prettier":"^3.5.0","@api3/commons":"0.13.4","@types/lodash":"^4.17.15"},"peerDependencies":{"eslint":"^8.57.1"},"_npmOperationalInternal":{"tmp":"tmp/eslint-plugin-commons_3.1.0_1767618528147_0.5390041431072881","host":"s3://npm-registry-packages-npm-production"}},"3.1.1":{"name":"@api3/eslint-plugin-commons","version":"3.1.1","keywords":["eslint","eslint-plugin"],"license":"MIT","_id":"@api3/eslint-plugin-commons@3.1.1","maintainers":[{"name":"dcroote","email":"npmjs.whopx@passmail.net"},{"name":"bbenligiray","email":"bbenligiray@gmail.com"},{"name":"siegrift","email":"e.tesarr@gmail.com"}],"homepage":"https://github.com/api3dao/eslint-plugin-commons#readme","bugs":{"url":"https://github.com/api3dao/eslint-plugin-commons/issues"},"dist":{"shasum":"c4ff3a3731337b6dc1235803d0c9743ee1479521","tarball":"https://registry.npmjs.org/@api3/eslint-plugin-commons/-/eslint-plugin-commons-3.1.1.tgz","fileCount":8,"integrity":"sha512-W4S++YGgTBTPBRMJgJXO31EbWLYnFbPQZREvLrgJOLt/AxFjtYtkosbLViNTVkztH3EHWPaDUvuYD786kV4Nhw==","signatures":[{"sig":"MEQCIE0kI4LMGb/6saV6cy5JC4mthWVoigyemRd1abxtMjWLAiBDQV2Sa+om1UvZIwRA+kC3vuEYBucMFEHR/9haybAsnw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"attestations":{"url":"https://registry.npmjs.org/-/npm/v1/attestations/@api3%2feslint-plugin-commons@3.1.1","provenance":{"predicateType":"https://slsa.dev/provenance/v1"}},"unpackedSize":26169},"main":"index.js","_from":"file:api3-eslint-plugin-commons-3.1.1.tgz","engines":{"node":">=18.14.0"},"scripts":{"eslint:fix":"pnpm run eslint:check --fix","release:tag":"node scripts/tag-and-release.js","eslint:check":"eslint --report-unused-disable-directives --cache --ext js,ts,tsx,jsx . --max-warnings 0","prettier:fix":"prettier --write \"./**/*.{js,ts,md,json}\"","prettier:check":"prettier --check \"./**/*.{js,ts,md,json}\""},"_npmUser":{"name":"GitHub Actions","email":"npm-oidc-no-reply@github.com","trustedPublisher":{"id":"github","oidcConfigId":"oidc:2f3a55c2-632b-4a0e-9db7-43cf9f89bd0a"}},"_resolved":"/tmp/4d45eb734cfb1ac375bc85f075c5cdcf/api3-eslint-plugin-commons-3.1.1.tgz","_integrity":"sha512-W4S++YGgTBTPBRMJgJXO31EbWLYnFbPQZREvLrgJOLt/AxFjtYtkosbLViNTVkztH3EHWPaDUvuYD786kV4Nhw==","repository":{"url":"git+https://github.com/api3dao/eslint-plugin-commons.git","type":"git"},"_npmVersion":"11.6.2","description":"> ESLint configurations used across API3 projects.","directories":{},"sideEffects":false,"_nodeVersion":"24.12.0","dependencies":{"lodash":"^4.17.21","eslint-config-next":"^15.1.7","eslint-plugin-jest":"^28.11.0","eslint-plugin-react":"^7.37.4","eslint-plugin-import":"^2.31.0","eslint-plugin-lodash":"^7.4.0","eslint-plugin-cypress":"^4.1.0","eslint-plugin-promise":"^7.2.1","eslint-plugin-unicorn":"^56.0.1","@shopify/eslint-plugin":"^47.0.1","eslint-plugin-check-file":"^3.0.0","eslint-plugin-functional":"^6.6.3","@typescript-eslint/parser":"^8.24.0","eslint-plugin-deprecation":"^3.0.0","eslint-plugin-react-hooks":"^5.1.0","eslint-plugin-no-only-tests":"^3.3.0","eslint-plugin-jest-formatting":"^3.1.0","@typescript-eslint/eslint-plugin":"^8.24.0"},"_hasShrinkwrap":false,"devDependencies":{"husky":"^9.1.7","eslint":"^8.57.1","prettier":"^3.5.0","@api3/commons":"0.13.4","@types/lodash":"^4.17.15"},"peerDependencies":{"eslint":"^8.57.1"},"_npmOperationalInternal":{"tmp":"tmp/eslint-plugin-commons_3.1.1_1767618604392_0.7693751718369153","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2024-06-25T04:52:37.534Z","modified":"2026-04-07T10:33:20.927Z","1.0.0":"2024-06-25T04:52:37.813Z","1.0.1":"2024-06-26T04:54:04.532Z","2.0.0":"2024-07-19T05:40:17.263Z","2.0.1":"2024-07-29T19:19:33.621Z","3.0.0":"2024-09-25T12:59:36.450Z","3.1.0":"2026-01-05T13:08:48.295Z","3.1.1":"2026-01-05T13:10:04.544Z"},"bugs":{"url":"https://github.com/api3dao/eslint-plugin-commons/issues"},"license":"MIT","homepage":"https://github.com/api3dao/eslint-plugin-commons#readme","keywords":["eslint","eslint-plugin"],"repository":{"url":"git+https://github.com/api3dao/eslint-plugin-commons.git","type":"git"},"description":"> ESLint configurations used across API3 projects.","maintainers":[{"email":"bbenligiray@gmail.com","name":"bbenligiray"},{"email":"e.tesarr@gmail.com","name":"siegrift"}],"readme":"# eslint-plugin-commons\n\n> ESLint configurations used across API3 projects.\n\nThe modules consists of multiple ESLint configurations supporting wide variety of targets:\n\n- `universal` - Linting rules for universal (both FE and BE) JS/TS code (with the emphasis on TS).\n- `react` - Linting rules for React code.\n- `next-js` - Linting rules for Next.js code.\n- `jest` - Linting rules for Jest tests. Note, that these rules are only applied for JS/TS files with `*.test.*`\n  extensions.\n\n## Getting started\n\n1. Create an `.eslintrc.js` configuration file in the repo root.\n2. Extend the desired configuration(s).\n3. Specify the `parserOptions.project` option with the path to the `tsconfig.json` file(s).\n4. Install `eslint` (which is a peer dependency of this module) as dev dependencies.\n\nFor example:\n\n```js\nmodule.exports = {\n  extends: ['plugin:@api3/eslint-plugin-commons/universal', 'plugin:@api3/eslint-plugin-commons/jest'],\n  parserOptions: {\n    // We focus primarily on TS and for that we need to specify the TS configs which is project specific. The following\n    // is a common monorepo setup (root config and a config for each package).\n    project: ['./tsconfig.json', './packages/*/tsconfig.json'],\n  },\n};\n```\n\nIf you are using TS, it's possible that ESLint will complain about `.js` files not being present in the project. This\ncan likely be fixed by adding `\"allowJs\": true` to the `tsconfig.json` file.\n\n### Linting commands\n\nWe recommend using the following linting commands inside `package.json` scripts:\n\n```json\n{\n  \"eslint:check\": \"eslint --report-unused-disable-directives --cache --ext js,ts,tsx,jsx . --max-warnings 0\",\n  \"eslint:fix\": \"pnpm run eslint:check --fix\"\n}\n```\n\nThe `--cache` parameter makes ESLint create a `.eslintcache` file in the root of the project. This file should be put to\n`.gitignore`.\n\n## Rules\n\nThe configurations are a collection of various rulesets and the config is quite strict. In general there are rules that:\n\n- Have a fixer (import ordering)\n- Simplify code (combine two nested ifs)\n- Make code more consistent (make `return void` pattern be split on two lines)\n- Fix outdated stuff (avoid `!` ts operator when not necessary)\n- Avoid vulnerabilities and errors (Number.parseInt without radix)\n\nTip: Some rules do have fixer with multiple variants of the fixes. You need to use the IDE to prompt the fixes and\nchoose the one you want.\n\n### Overriding rules\n\nTo override a rule, you can use the `rules` section key in your `.eslintrc.js` file. For example:\n\n```js\n{\n  rules: {\n    'check-file/folder-naming-convention': 'off', // Turns of the kebab-case convention for folder names.\n    'unicorn/filename-case': 'off' // Turns of the kebab-case convention for filenames.\n    'import/no-default-export': 'off', // Turns off the rule that disallows default exports.\n    'import/prefer-default-export': 'error' // Turns on the rule that prefers default exports.\n  }\n}\n```\n\n## For developers\n\nThis sections is intended for developers of this repo.\n\n### Release\n\n1. Run `pnpm version [major|minor|patch]` by choosing the appropriate version bump.\n2. Push the changes to the `main`, either directly or via a pull request.\n3. The CI will register a new version and handle the release process.\n","readmeFilename":"README.md"}