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}
*/
const node = {
parserOptions: { ...generic.parserOptions },
...generic,
env: {
...generic.env,
node: true,
},
extends: [ ...generic.extends ],
plugins: [ ...generic.plugins ],
rules: { ...generic.rules },
};
module.exports = node;