Skip to content

Commit 6a3c064

Browse files
Few updates to new rules from #2, bump version and changelog.
1 parent 8a0ba79 commit 6a3c064

5 files changed

Lines changed: 28 additions & 16 deletions

File tree

.eslintrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
0.5.0 (2015-12-02)
2+
==================
3+
4+
* Moved `react/jsx-handler-names` rule to `ezhome/alternate` config
5+
* Increase maximum of props for one line in `react/jsx-max-props-per-line` rule
6+
to 4
7+
* Removed `.eslintrc` from the repo, put default config as `eslintConfig`
8+
object to `package.json`
9+
110
0.5.0-beta (2015-12-02)
211
=======================
312

alternate/index.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ var config = require("../");
33
config.rules["comma-dangle"] = [2, "always-multiline"];
44
config.rules["indent"] = [2, 2, {"SwitchCase": 1}];
55
config.rules["max-len"] = [2, 79, 4];
6+
config.rules["react/jsx-handler-names"] = 2;
67
config.rules["react/jsx-indent-props"] = [2, 2];
78

89
module.exports = config;

base/index.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,10 +44,9 @@ module.exports = {
4444
"react/display-name": 1,
4545
"react/jsx-closing-bracket-location": [2, "after-props"],
4646
"react/jsx-curly-spacing": [2, "never", {"allowMultiline": false}],
47-
"react/jsx-handler-names": 2,
4847
"react/jsx-indent-props": [2, 4],
4948
"react/jsx-key": 2,
50-
"react/jsx-max-props-per-line": [2, {"number": 1}],
49+
"react/jsx-max-props-per-line": [2, {"maximum": 4}],
5150
"react/jsx-no-duplicate-props": 2,
5251
"react/jsx-no-undef": 2,
5352
"react/jsx-pascal-case": 2,

package.json

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,37 @@
11
{
22
"name": "eslint-config-ezhome",
3-
"version": "0.5.0-beta",
4-
"description": "Ezhome's ESLint config",
5-
"main": "index.js",
6-
"license": "BSD-3-Clause",
3+
"version": "0.5.0",
4+
75
"author": "Igor Davydenko",
86
"authorEmail": "igor@ezhome.com",
97
"bugs": {
108
"url": "https://github.com/ezhome/eslint-config-ezhome/issues"
119
},
10+
"description": "Ezhome's ESLint config",
11+
"keywords": [
12+
"config",
13+
"eslint",
14+
"eslintconfig",
15+
"ezhome",
16+
"styleguide"
17+
],
18+
"main": "index.js",
19+
"license": "BSD-3-Clause",
1220
"homepage": "https://github.com/ezhome/eslint-config-ezhome",
1321
"repository": {
1422
"type": "git",
1523
"url": "https://github.com/ezhome/eslint-config-ezhome"
1624
},
25+
1726
"devDependencies": {
1827
"babel-eslint": "4.1.6",
1928
"eslint": "1.10.3",
2029
"eslint-plugin-react": "3.11.2"
2130
},
22-
"keywords": [
23-
"config",
24-
"eslint",
25-
"eslintconfig",
26-
"ezhome",
27-
"styleguide"
28-
],
31+
"eslintConfig": {
32+
"extends": "ezhome/base"
33+
},
34+
2935
"scripts": {
3036
"lint": "eslint ."
3137
}

0 commit comments

Comments
 (0)