Add package lock and eslint config (#711)

This commit is contained in:
Daniel O'Grady
2024-05-03 12:40:11 +02:00
committed by GitHub
parent 546f374b08
commit d9f50d635f
5 changed files with 3450 additions and 3633 deletions

36
eslint.config.js Normal file
View File

@@ -0,0 +1,36 @@
const cds = require('@sap/eslint-plugin-cds')
const globals = require('globals')
const js = require('@eslint/js')
module.exports = [
cds.configs.recommended,
js.configs.recommended,
{
languageOptions: {
globals: {
es2022: true,
...globals.browser,
...globals.node,
...globals.jest,
...globals.mocha,
cds: true,
sap: true,
CDL: true,
CQL: true,
CREATE: true,
DELETE: true,
DROP: true,
INSERT: true,
SELECT: true,
UPDATE: true,
UPSERT: true
}
},
rules: {
'no-console': 'off',
'no-unused-vars': ['warn', { argsIgnorePattern: '^_' }],
'require-atomic-updates': 'off',
'require-await': 'warn'
}
}
]