Skip to content

Commit

Permalink
feat(react): remove react component destructuring requirement (#17)
Browse files Browse the repository at this point in the history
ISSUES CLOSED: #16
  • Loading branch information
DHedgecock committed Aug 1, 2018
1 parent e76faff commit 4a66163
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .cz-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ module.exports = {

allowCustomScopes: false,
allowBreakingChanges: ['feat', 'fix', 'style', 'refactor', 'perf', 'chore'],
scopes: []
scopes: ['react']
}
3 changes: 3 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@ module.exports = {
// Don't enforce .jsx file extension, it doesn't provide a clear benefit and
// often requires addl configs on other tooling, do less ¯\_(ツ)_/¯
'react/jsx-filename-extension': 'off',
// Don't enforce props destructuring, it's cumbersome when only a single
// prop is needed, and consistent destructuring provides no real benefit
'react/destructuring-assignment': 'off',
// Include .mjs file extension in list of file that shouldn't use ext
'import/extensions': [
'error',
Expand Down

0 comments on commit 4a66163

Please sign in to comment.