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

32
.eslintrc.json Normal file
View file

@ -0,0 +1,32 @@
{
"extends": [
"next/core-web-vitals",
"prettier",
"plugin:react-hooks/recommended"
],
"plugins": ["prettier"],
"rules": {
"import/no-cycle": ["error", { "maxDepth": 1 }],
"import/order": [
"error",
{
"newlines-between": "always"
}
],
"no-else-return": ["error", { "allowElseIf": true }]
},
"settings": {
"import/resolver": {
"node": {
"paths": ["src"]
}
}
},
"parserOptions": {
"ecmaVersion": 6,
"sourceType": "module",
"ecmaFeatures": {
"modules": true
}
}
}