Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: allow to modify raw preset config #78

Merged
merged 3 commits into from
Jun 7, 2018
Merged

feat: allow to modify raw preset config #78

merged 3 commits into from
Jun 7, 2018

Conversation

ktsn
Copy link
Collaborator

@ktsn ktsn commented Jun 7, 2018

ref #71

We can modify a preset config object by specifying modifyConfig function in preset field.

module.exports = {
  preset: {
    name: 'foo-preset',
    modifyConfig: config => {
      // remove js config
      delete config.rules.js
    }
  }
}

Also I made rules field can accept null or undefined value for the users can remove preset rules by just assigning such values.

@ktsn ktsn merged commit 4e0b8bd into master Jun 7, 2018
@ktsn ktsn deleted the extend-preset branch June 7, 2018 08:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant