Skip to content

Commit dc0e1bb

Browse files
author
Balthazar Gronon
committed
Remove duplication and minor reorg
1 parent 09144f2 commit dc0e1bb

File tree

2 files changed

+22
-23
lines changed

2 files changed

+22
-23
lines changed

index.js

+21-22
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,13 @@ module.exports = {
55
'react'
66
],
77
rules: {
8+
'react/boolean-prop-naming': 0,
9+
'react/default-props-match-prop-types': 2,
10+
'react/display-name': 0,
11+
'react/forbid-component-props': 0,
12+
'react/forbid-elements': 0,
13+
'react/forbid-foreign-prop-types': 2,
14+
'react/forbid-prop-types': 0,
815
'react/jsx-equals-spacing': 2,
916
'react/jsx-filename-extension': 0,
1017
'react/jsx-first-prop-new-line': [2, 'multiline'],
@@ -20,8 +27,6 @@ module.exports = {
2027
beforeSelfClosing: 'always',
2128
afterOpening: 'never',
2229
}],
23-
'react/display-name': 0,
24-
'react/forbid-prop-types': 0,
2530
'react/jsx-boolean-value': 2,
2631
'react/jsx-closing-bracket-location': 0,
2732
'react/jsx-curly-spacing': 2,
@@ -35,45 +40,39 @@ module.exports = {
3540
'react/jsx-uses-react': 2,
3641
'react/jsx-uses-vars': 2,
3742
'react/jsx-wrap-multilines': 2,
43+
'react/jsx-closing-tag-location': 2,
3844
'react/no-danger': 0,
45+
'react/no-deprecated': 2,
3946
'react/no-did-mount-set-state': 2,
4047
'react/no-did-update-set-state': 2,
4148
'react/no-direct-mutation-state': 2,
4249
'react/no-find-dom-node': 2,
4350
'react/no-multi-comp': 0,
4451
'react/no-set-state': 0,
4552
'react/no-unknown-property': 2,
46-
'react/prop-types': 0,
47-
'react/react-in-jsx-scope': 2,
48-
'react/self-closing-comp': 2,
49-
'react/sort-comp': 2,
50-
'react/jsx-wrap-multilines': 2,
51-
'react/no-deprecated': 2,
5253
'react/no-is-mounted': 2,
5354
'react/no-render-return-value': 2,
5455
'react/no-string-refs': 0,
55-
'react/prefer-es6-class': 2,
56-
'react/prefer-stateless-function': 0,
57-
'react/require-optimization': 0,
58-
'react/require-render-return': 2,
59-
'react/sort-prop-types': 0,
60-
'react/forbid-component-props': 0,
61-
'react/forbid-foreign-prop-types': 2,
6256
'react/no-children-prop': 2,
6357
'react/no-unescaped-entities': 2,
6458
'react/no-will-update-set-state': 2,
65-
'react/style-prop-object': 2,
66-
'react/forbid-elements': 0,
6759
'react/no-danger-with-children': 2,
68-
'react/require-default-props': 0,
6960
'react/no-array-index-key': 2,
7061
'react/no-unused-prop-types': 2,
71-
'react/void-dom-elements-no-children': 2,
72-
'react/boolean-prop-naming': 0,
73-
'react/default-props-match-prop-types': 2,
74-
'react/jsx-closing-tag-location': 2,
7562
'react/no-redundant-should-component-update': 2,
7663
'react/no-typos': 2,
7764
'react/no-unused-state': 2,
65+
'react/prefer-es6-class': 2,
66+
'react/prefer-stateless-function': 0,
67+
'react/prop-types': 0,
68+
'react/react-in-jsx-scope': 2,
69+
'react/require-optimization': 0,
70+
'react/require-render-return': 2,
71+
'react/require-default-props': 0,
72+
'react/self-closing-comp': 2,
73+
'react/sort-comp': 2,
74+
'react/sort-prop-types': 0,
75+
'react/style-prop-object': 2,
76+
'react/void-dom-elements-no-children': 2,
7877
}
7978
}

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "eslint-config-zavatta-react",
3-
"version": "2.3.0",
3+
"version": "2.3.1",
44
"description": "ESLint config for esling-plugin-react",
55
"main": "index.js",
66
"scripts": {

0 commit comments

Comments
 (0)