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