You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
see mergeWithoutOverwrite(config.settings, element.settings);
this means that if you've defined json/json-with-comments-files: [ '**/tsconfig.json', '.vscode/**' ] in one config, inherit from that config and want to omit the json/json-with-comments-files setting, you can't just do json/json-with-comments-files: [] - you have to add the same amount of elements in the array to 'get rid of the globs' ...
this can get a little annoying, so I think it would be nice if this could be documented, just as a reminder, that settings aren't easily overwritten
The text was updated successfully, but these errors were encountered:
this is not an issue that can be fixed, but perhaps documented instead.
rules and settings have a different way of merging,
see way of merging for settings here: https://github.com/eslint/eslint/blob/v6.4.0/lib/cli-engine/config-array/config-array.js#L238-L273
see
mergeWithoutOverwrite(config.settings, element.settings);
this means that if you've defined
json/json-with-comments-files: [ '**/tsconfig.json', '.vscode/**' ]
in one config, inherit from that config and want to omit thejson/json-with-comments-files
setting, you can't just dojson/json-with-comments-files: []
- you have to add the same amount of elements in the array to 'get rid of the globs' ...this can get a little annoying, so I think it would be nice if this could be documented, just as a reminder, that settings aren't easily overwritten
The text was updated successfully, but these errors were encountered: