Skip to content

Commit

Permalink
fix(eslintrc): fix conflicting rules (#12)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tagir-A authored Jan 16, 2019
1 parent cd20536 commit f5f13da
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
module.exports = {
'extends': [
'airbnb',
'prettier'
'prettier',
'prettier/react'
],
'env': {
'browser': true,
Expand Down Expand Up @@ -68,8 +69,9 @@ module.exports = {
/**
* Forbid default exports.
* Further info: [https://github.com/benmosher/eslint-plugin-import/blob/44a038c06487964394b1e15b64f3bd34e5d40cde/docs/rules/no-default-export.md]
* Change: Activate this rule.
* Change: Motivate to use named exports.
* Warn is used to be able to use react/lazy which works with default exports only
*/
'import/no-default-export': 'error',
'import/no-default-export': 'warn',
}
}

0 comments on commit f5f13da

Please sign in to comment.