Skip to content

Commit

Permalink
Support overrides having no rules 🙈 (#5)
Browse files Browse the repository at this point in the history
with eslint v7 it becomes interesting to have overrides with just an extend
This makes eslint-plugin-self support that
  • Loading branch information
AdrieanKhisbe committed May 15, 2020
1 parent 7992f65 commit e266543
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ if (plugin.configs) {
if (config.overrides) {
selfPlugin.configs[configName].overrides = [].concat(config.overrides)
.map((override) => {
if (!override.rules) return override;
return Object.assign(
{},
override,
Expand Down

0 comments on commit e266543

Please sign in to comment.