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

Commit ba2da43

Browse files
authored
Merge pull request #1 from smooth-code/node-6-compat
fix: be compatible with node 6
2 parents efdc76e + fbdb24c commit ba2da43

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module.exports = {
22
root: true,
3-
extends: ['./index.js'],
3+
extends: ['./index.js', './react.js'],
44
}

react.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@ const baseRules = require('./index').rules
22

33
module.exports = {
44
extends: ['airbnb', 'prettier', 'prettier/react'],
5-
rules: {
6-
...baseRules,
7-
5+
rules: Object.assign(baseRules, {
86
'react/jsx-filename-extension': ['error', { extensions: ['.js'] }],
97
'react/prop-types': 'off',
108
'react/sort-comp': 'off',
@@ -15,5 +13,5 @@ module.exports = {
1513

1614
'jsx-a11y/anchor-is-valid': 'off',
1715
'jsx-a11y/anchor-has-content': 'off',
18-
},
16+
}),
1917
}

0 commit comments

Comments
 (0)