Update eslint.config.js
This commit is contained in:
@@ -3,7 +3,6 @@ const js = require('@eslint/js');
|
|||||||
const cds = require('@sap/eslint-plugin-cds');
|
const cds = require('@sap/eslint-plugin-cds');
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
{
|
|
||||||
"files": ["**/*.js"],
|
"files": ["**/*.js"],
|
||||||
...js.configs.recommended,
|
...js.configs.recommended,
|
||||||
"languageOptions": {
|
"languageOptions": {
|
||||||
@@ -13,7 +12,6 @@ module.exports = {
|
|||||||
...globals.jest,
|
...globals.jest,
|
||||||
...globals.mocha,
|
...globals.mocha,
|
||||||
"es2022": true
|
"es2022": true
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"rules": {
|
"rules": {
|
||||||
...js.configs.recommended.rules,
|
...js.configs.recommended.rules,
|
||||||
@@ -21,10 +19,11 @@ module.exports = {
|
|||||||
"require-atomic-updates": "off",
|
"require-atomic-updates": "off",
|
||||||
"require-await": "warn",
|
"require-await": "warn",
|
||||||
"no-unused-vars": ["warn", { "argsIgnorePattern": "_" }]
|
"no-unused-vars": ["warn", { "argsIgnorePattern": "_" }]
|
||||||
|
}
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
...cds.configs.recommended,
|
|
||||||
"files": ['**/*.cds', '**/*.csn', '**/*.csv'],
|
"files": ['**/*.cds', '**/*.csn', '**/*.csv'],
|
||||||
|
...cds.configs.recommended,
|
||||||
"plugins": {
|
"plugins": {
|
||||||
"@sap/cds": cds
|
"@sap/cds": cds
|
||||||
},
|
},
|
||||||
@@ -34,4 +33,3 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|||||||
Reference in New Issue
Block a user