Compare commits
2 Commits
esm
...
refactor/s
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
55e4c92a60 | ||
|
|
7738f85036 |
@@ -1,29 +1,20 @@
|
|||||||
const cds = require('@sap/eslint-plugin-cds')
|
const eslintCds = require('@sap/eslint-plugin-cds')
|
||||||
|
const eslintJs = require('@eslint/js')
|
||||||
const globals = require('globals')
|
const globals = require('globals')
|
||||||
const js = require('@eslint/js')
|
|
||||||
|
|
||||||
module.exports = [
|
module.exports = [
|
||||||
cds.configs.recommended,
|
eslintJs.configs.recommended,
|
||||||
js.configs.recommended,
|
eslintCds.configs.recommended,
|
||||||
{
|
{
|
||||||
languageOptions: {
|
languageOptions: {
|
||||||
globals: {
|
globals: {
|
||||||
es2022: true,
|
sap: true,
|
||||||
|
...globals.es2022,
|
||||||
...globals.browser,
|
...globals.browser,
|
||||||
...globals.node,
|
...globals.node,
|
||||||
...globals.jest,
|
...globals.jest,
|
||||||
...globals.mocha,
|
...globals.mocha,
|
||||||
cds: true,
|
...eslintCds.configs.recommended.languageOptions.globals
|
||||||
sap: true,
|
|
||||||
CDL: true,
|
|
||||||
CQL: true,
|
|
||||||
CREATE: true,
|
|
||||||
DELETE: true,
|
|
||||||
DROP: true,
|
|
||||||
INSERT: true,
|
|
||||||
SELECT: true,
|
|
||||||
UPDATE: true,
|
|
||||||
UPSERT: true
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
rules: {
|
rules: {
|
||||||
|
|||||||
Reference in New Issue
Block a user