📦 build(workflows): add eslint configuration for workflows
- introduce .eslintrc.json file for ESLint settings
- configure environment, parser options, and rules for linting
✅ test(workflows): update build workflow with eslint integration
- integrate ESLint configuration into GitHub Actions workflow
- ensure lint job utilizes the new .eslintrc.json settings
This commit is contained in:
parent
db77892ea9
commit
712f1caa0e
2 changed files with 27 additions and 0 deletions
25
.forgejo/workflows/.eslintrc.json
Normal file
25
.forgejo/workflows/.eslintrc.json
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
{
|
||||
"env": {
|
||||
"node": true,
|
||||
"es2021": true
|
||||
},
|
||||
"extends": [
|
||||
"eslint:recommended"
|
||||
],
|
||||
"parserOptions": {
|
||||
"ecmaVersion": "latest",
|
||||
"sourceType": "module"
|
||||
},
|
||||
"rules": {
|
||||
"no-unused-vars": "warn",
|
||||
"no-undef": "error"
|
||||
},
|
||||
"globals": {
|
||||
"cfg": "readonly",
|
||||
"URL_CLAIM": "readonly",
|
||||
"authenticator": "readonly",
|
||||
"prompt": "readonly",
|
||||
"notify": "readonly"
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -125,3 +125,5 @@ jobs:
|
|||
run: |
|
||||
docker push "${{ secrets.REGISTRY_IMAGE }}:${{ env.IMAGE_TAG }}"
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue