-
Notifications
You must be signed in to change notification settings - Fork 140
/
Copy patheslint.config.js
42 lines (40 loc) · 943 Bytes
/
eslint.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
'use strict'
const eslint_js = require('@eslint/js')
const tseslint = require('typescript-eslint');
const globals = require('globals')
module.exports = [
{
ignores: ["**/dist/*", "gen/**/*", "@cds-models/**/*", "app/**/*"],
},
// global rules for all files
eslint_js.configs.recommended,
tseslint.configs.base,
// Generic config for JavaScript files: Setup environment, version, etc.
{
files: ["**/*.js", "**/*.ts"],
languageOptions: {
ecmaVersion: 2022,
sourceType: "module",
globals: {
...globals.node,
...globals.jest,
...globals.es6,
SELECT: true,
INSERT: true,
UPDATE: true,
DELETE: true,
CREATE: true,
DROP: true,
CDL: true,
CQL: true,
CXL: true,
cds: true,
sap: true,
},
},
rules: {
"no-console": "off",
"require-atomic-updates": "off",
},
},
];