fix: correct imports and add ESLint CI
Some checks failed
Lint / eslint (push) Failing after 1m32s

- Fix proxy.js: use utils/config/service-helpers (correct path for
  Homepage v1.7.0; utils/service-helpers does not exist)
- Fix component.jsx: blank line between external and utils/ imports
  as required by Homepage ESLint import/order rule
- Add .eslintrc.json mirroring Homepage's ESLint config
- Add package.json with ESLint dev dependencies
- Add Forgejo Actions workflow to lint on push/PR

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Alkim Ake Gozen 2026-05-21 13:34:33 +09:00
parent cc34c22aa5
commit a7fa4dbaf1
5 changed files with 77 additions and 7 deletions

19
package.json Normal file
View file

@ -0,0 +1,19 @@
{
"name": "homepage-blocky-widget",
"version": "1.0.0",
"private": true,
"scripts": {
"lint": "eslint src/**/*.{js,jsx}"
},
"devDependencies": {
"@next/eslint-plugin-next": "^14.0.0",
"eslint": "^8.0.0",
"eslint-config-next": "^14.0.0",
"eslint-config-prettier": "^9.0.0",
"eslint-plugin-import": "^2.29.0",
"eslint-plugin-jsx-a11y": "^6.8.0",
"eslint-plugin-prettier": "^5.0.0",
"eslint-plugin-react": "^7.33.0",
"eslint-plugin-react-hooks": "^4.6.0"
}
}