Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .eslintignore

This file was deleted.

47 changes: 0 additions & 47 deletions .eslintrc.js

This file was deleted.

1 change: 1 addition & 0 deletions .github/workflows/main-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ on:
jobs:
test:
runs-on: ubuntu-latest
environment: hana-integration
strategy:
matrix:
node-version: [20, 22, 24]
Expand Down
15 changes: 5 additions & 10 deletions .github/workflows/main-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
name: Main PR

on:
pull_request_target:
pull_request:
branches:
- main

Expand All @@ -14,16 +14,15 @@ jobs:
test:
runs-on: ubuntu-latest
if: github.event.pull_request.head.repo.full_name == github.repository
environment: hana-integration
strategy:
matrix:
node-version: [20, 22, 24]

name: test - node.js ${{ matrix.node-version }}
steps:
- name: Checkout safe merge ref
uses: actions/checkout@v4
- uses: actions/checkout@v5
with:
ref: refs/pull/${{ github.event.pull_request.number }}/merge
persist-credentials: false

- uses: actions/setup-node@v6
Expand Down Expand Up @@ -53,10 +52,8 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout safe merge ref
uses: actions/checkout@v4
- uses: actions/checkout@v5
with:
ref: refs/pull/${{ github.event.pull_request.number }}/merge
persist-credentials: false

- uses: actions/setup-node@v4
Expand All @@ -68,10 +65,8 @@ jobs:
example-cap-server:
runs-on: ubuntu-latest
steps:
- name: Checkout safe merge ref
uses: actions/checkout@v4
- uses: actions/checkout@v5
with:
ref: refs/pull/${{ github.event.pull_request.number }}/merge
persist-credentials: false

- uses: actions/setup-node@v4
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ on:
jobs:
publish:
runs-on: ubuntu-latest
environment: hana-integration
steps:
- uses: actions/checkout@v5
- uses: actions/setup-node@v6
Expand Down
47 changes: 47 additions & 0 deletions eslint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
"use strict";

const js = require("@eslint/js");
const globals = require("globals");
const jest = require("eslint-plugin-jest");
const prettier = require("eslint-config-prettier");

module.exports = [
{
ignores: ["node_modules/", "temp/", "docs/vendor/", "docs/_site/", "**/*.d.ts"],
},
js.configs.recommended,
{
languageOptions: {
ecmaVersion: 2022,
sourceType: "commonjs",
globals: {
...globals.node,
sap: "readonly",
cds: "readonly",
SELECT: "readonly",
INSERT: "readonly",
UPDATE: "readonly",
DELETE: "readonly",
CREATE: "readonly",
DROP: "readonly",
},
},
rules: {
"no-unused-vars": ["error", { argsIgnorePattern: "req|res|next", caughtErrors: "none" }],
"no-eval": "error",
"no-implied-eval": "error",
"no-console": "error",
"no-throw-literal": "error",
"prefer-promise-reject-errors": "error",
strict: "error",
curly: "error",
"no-constant-condition": ["error", { checkLoops: false }],
"no-var": "error",
},
},
{
files: ["**/test/**", "**/test-integration/**", "**/*.test.js", "**/jest.setup*.js"],
...jest.configs["flat/recommended"],
},
prettier,
];
Loading
Loading