Skip to content

Commit 6b0e9aa

Browse files
Do not append react plugin to config if it not installed.
1 parent a090a92 commit 6b0e9aa

3 files changed

Lines changed: 10 additions & 4 deletions

File tree

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
0.6.1 (2015-12-18)
2+
==================
3+
4+
* Fix config for non-React projects. Do not list `react` plugin if it not
5+
installed.
6+
17
0.6.0 (2015-12-18)
28
==================
39

base/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,6 @@ var config = {
1414
"es6": true,
1515
"node": true
1616
},
17-
plugins: [
18-
"react"
19-
],
2017

2118
rules: {
2219
"array-bracket-spacing": [2, "never"],
@@ -55,6 +52,9 @@ var config = {
5552
};
5653

5754
if (utils.reactPluginInstalled) {
55+
config.plugins = [
56+
"react"
57+
];
5858
config.rules = objectAssign(config.rules, {
5959
"react/display-name": 1,
6060
"react/jsx-closing-bracket-location": [2, "after-props"],

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-config-ezhome",
3-
"version": "0.6.0",
3+
"version": "0.6.1",
44

55
"author": "Igor Davydenko",
66
"authorEmail": "igor@ezhome.com",

0 commit comments

Comments
 (0)