@bonniernews/eslint-config 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.0.1
4
+
5
+ - Loosen react/jsx-max-props-per-line to allow as many props the developer wants on
6
+ a single line but enforce 1 prop per line if using multiple lines.
7
+
3
8
  ## 1.0.0
4
9
 
5
10
  - Renamed to @bonniernews/eslint-config
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bonniernews/eslint-config",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "ESLint config",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/react-rules.js CHANGED
@@ -28,7 +28,7 @@ module.exports = {
28
28
  ...eslintReactRecommendedRules,
29
29
  "react/prop-types": 0,
30
30
  "react/jsx-first-prop-new-line": [ 2, "multiline" ],
31
- "react/jsx-max-props-per-line": [ 2, { maximum: { single: 3, multi: 1 } } ],
31
+ "react/jsx-max-props-per-line": [ 2, { when: "multiline", maximum: 1 } ],
32
32
  "react/jsx-closing-bracket-location": [ 2, "tag-aligned" ],
33
33
  "react/destructuring-assignment": [ 2, "always" ],
34
34
  "react/prefer-stateless-function": [ 2, { ignorePureComponents: false } ],