Skip to content
This repository has been archived by the owner on Sep 20, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1 from smooth-code/node-6-compat
Browse files Browse the repository at this point in the history
fix: be compatible with node 6
  • Loading branch information
gregberge authored Mar 31, 2018
2 parents efdc76e + fbdb24c commit ba2da43
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
root: true,
extends: ['./index.js'],
extends: ['./index.js', './react.js'],
}
6 changes: 2 additions & 4 deletions react.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,7 @@ const baseRules = require('./index').rules

module.exports = {
extends: ['airbnb', 'prettier', 'prettier/react'],
rules: {
...baseRules,

rules: Object.assign(baseRules, {
'react/jsx-filename-extension': ['error', { extensions: ['.js'] }],
'react/prop-types': 'off',
'react/sort-comp': 'off',
Expand All @@ -15,5 +13,5 @@ module.exports = {

'jsx-a11y/anchor-is-valid': 'off',
'jsx-a11y/anchor-has-content': 'off',
},
}),
}

0 comments on commit ba2da43

Please sign in to comment.