Node config: extend all generic properties

This commit is contained in:
Romein van Buren 2024-07-25 13:08:11 +02:00 committed by GitHub
parent ffc8867fce
commit 27d8247ad0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,14 +12,11 @@ const generic = require('./generic.js');
* @type {import('eslint').Linter.Config} * @type {import('eslint').Linter.Config}
*/ */
const node = { const node = {
parserOptions: { ...generic.parserOptions }, ...generic,
env: { env: {
...generic.env, ...generic.env,
node: true, node: true,
}, },
extends: [ ...generic.extends ],
plugins: [ ...generic.plugins ],
rules: { ...generic.rules },
}; };
module.exports = node; module.exports = node;