Skip to content

Commit 48bad85

Browse files
author
Rick Harrison
committed
Upgrades eslint-plugin-react to 7.10.0
1 parent dbc61e2 commit 48bad85

File tree

2 files changed

+56
-54
lines changed

2 files changed

+56
-54
lines changed

index.js

Lines changed: 54 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ module.exports = {
166166
"no-path-concat": 2,
167167
"no-process-env": 2,
168168
"no-process-exit": 2,
169-
"no-restricted-modules": 0
169+
"no-restricted-modules": 0,
170170
"no-sync": 2,
171171

172172
/*
@@ -294,78 +294,80 @@ module.exports = {
294294
* React Plugin
295295
*/
296296

297+
"react/boolean-prop-naming": 0,
298+
"react/button-has-type": 2,
299+
"react/default-props-match-prop-types": 2,
300+
"react/destructuring-assignment": 0,
297301
"react/display-name": [2, { "ignoreTranspilerName": false }],
298302
"react/forbid-prop-types": [2, { "forbid": ["any"] }],
303+
"react/forbid-foreign-prop-types": 2,
304+
"react/no-access-state-in-setstate": 2,
305+
"react/no-array-index-key": 2,
306+
"react/no-children-prop": 2,
307+
"react/no-danger": 2,
308+
"react/no-danger-with-children": 2,
309+
"react/no-deprecated": 2,
310+
"react/no-did-mount-set-state": [2],
311+
"react/no-did-update-set-state": [2],
312+
"react/no-direct-mutation-state": 2,
313+
"react/no-find-dom-node": 2,
314+
"react/no-is-mounted": 2,
315+
"react/no-multi-comp": [2, { "ignoreStateless": true }],
316+
"react/no-redundant-should-component-update": 2,
317+
"react/no-render-return-value": 2,
318+
"react/no-set-state": 0,
319+
"react/no-typos": 2,
320+
"react/no-string-refs": 0,
321+
"react/no-this-in-sfc": 2,
322+
"react/no-unescaped-entities": 2,
323+
"react/no-unknown-property": 2,
324+
"react/no-unsafe": 2,
325+
"react/no-unused-prop-types": 2,
326+
"react/no-unused-state": 2,
327+
"react/no-will-update-set-state": 2,
328+
"react/prefer-es6-class": 0,
329+
"react/prefer-stateless-function": 1,
330+
"react/prop-types": 2,
331+
"react/react-in-jsx-scope": 2,
332+
"react/require-default-props": 2,
333+
"react/require-optimization": 0,
334+
"react/require-render-return": 2,
335+
"react/self-closing-comp": 2,
336+
"react/sort-comp": 2,
337+
"react/sort-prop-types": 0,
338+
"react/style-prop-object": 2,
339+
"react/void-dom-elements-no-children": 2,
340+
299341
"react/jsx-boolean-value": [2, "always"],
342+
"react/jsx-child-element-spacing": 2,
300343
"react/jsx-closing-bracket-location": [2, { "selfClosing": "after-props", "nonEmpty": "after-props"}],
344+
"react/jsx-closing-tag-location": 2,
301345
"react/jsx-curly-spacing": [2, "never"],
302346
"react/jsx-equals-spacing": [2, "never"],
303-
"react/jsx-filename-extension": [2, { "extensions": [".jsx"] }],
347+
"react/jsx-filename-extension": [2, { "extensions": [".js", ".jsx"] }],
304348
"react/jsx-first-prop-new-line": 0,
305349
"react/jsx-handler-names": 2,
306350
"react/jsx-indent": [2, 2],
307351
"react/jsx-indent-props": [2, 2],
308352
"react/jsx-key": 2,
353+
"react/jsx-max-depth": 0,
309354
"react/jsx-max-props-per-line": [2, { "maximum": 5 }],
310355
"react/jsx-no-bind": 2,
356+
"react/jsx-no-comment-textnodes": 2,
311357
"react/jsx-no-duplicate-props": 2,
312358
"react/jsx-no-literals": 0,
313359
"react/jsx-no-target-blank": 1,
314360
"react/jsx-no-undef": 2,
361+
"react/jsx-one-expression-per-line": 2,
362+
"react/jsx-curly-brace-presence": [2, "never"],
315363
"react/jsx-pascal-case": 2,
364+
"react/jsx-props-no-multi-spaces": 2,
365+
"react/jsx-sort-default-props": 0,
316366
"react/jsx-sort-props": 0,
317367
"react/jsx-space-before-closing": 0,
368+
"react/jsx-tag-spacing": [2, { "closingSlash": "never", "beforeSelfClosing": "always", "afterOpening": "never", "beforeClosing": "never" }],
318369
"react/jsx-uses-react": 2,
319370
"react/jsx-uses-vars": 2,
320-
"react/no-comment-textnodes": 2,
321-
"react/no-danger": 2,
322-
"react/no-deprecated": 2,
323-
"react/no-did-mount-set-state": [2],
324-
"react/no-did-update-set-state": [2],
325-
"react/no-direct-mutation-state": 2,
326-
"react/no-is-mounted": 2,
327-
"react/no-multi-comp": [2, { "ignoreStateless": true }],
328-
"react/no-render-return-value": 2,
329-
"react/no-set-state": 0,
330-
"react/no-string-refs": 0,
331-
"react/no-unknown-property": 2,
332-
"react/prefer-es6-class": 0,
333-
"react/prefer-stateless-function": 1,
334-
"react/prop-types": 2,
335-
"react/react-in-jsx-scope": 2,
336-
"react/require-extension": 0,
337-
"react/require-optimization": 0,
338-
"react/require-render-return": 2,
339-
"react/self-closing-comp": 2,
340-
"react/sort-comp": [2, {
341-
order: [
342-
'lifecycle',
343-
'everything-else',
344-
'render'
345-
],
346-
groups: {
347-
lifecycle: [
348-
'displayName',
349-
'propTypes',
350-
'contextTypes',
351-
'childContextTypes',
352-
'mixins',
353-
'statics',
354-
'getDefaultProps',
355-
'getInitialState',
356-
'getStateFromStores',
357-
'getChildContext',
358-
'componentWillMount',
359-
'componentDidMount',
360-
'componentWillReceiveProps',
361-
'shouldComponentUpdate',
362-
'componentWillUpdate',
363-
'componentDidUpdate',
364-
'componentWillUnmount'
365-
]
366-
}
367-
}],
368-
"react/sort-prop-types": 0,
369-
"react/wrap-multilines": 2
371+
"react/jsx-wrap-multilines": 2
370372
}
371373
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@meadow/eslint-config",
3-
"version": "5.0.0",
3+
"version": "5.0.1",
44
"description": "Extendable ESLint configuration by Meadow",
55
"main": "index.js",
66
"repository": {
@@ -22,6 +22,6 @@
2222
},
2323
"homepage": "https://github.com/meadow/eslint-config",
2424
"dependencies": {
25-
"eslint-plugin-react": "^5.2.2"
25+
"eslint-plugin-react": "^7.10.0"
2626
}
2727
}

0 commit comments

Comments
 (0)