|
1 | 1 | { |
2 | 2 | "parser": "babel-eslint", |
3 | | - "plugins": [ |
4 | | - "react" |
5 | | - ], |
6 | 3 | "env": { |
7 | 4 | "browser": true, |
8 | 5 | "node": true |
|
171 | 168 | "space-infix-ops": 2, // http://eslint.org/docs/rules/space-infix-ops |
172 | 169 | "space-return-throw-case": 2, // http://eslint.org/docs/rules/space-return-throw-case |
173 | 170 | "spaced-line-comment": 2, // http://eslint.org/docs/rules/spaced-line-comment |
174 | | - |
175 | | -/** |
176 | | - * JSX style |
177 | | - */ |
178 | | - "react/display-name": 0, |
179 | | - "react/jsx-boolean-value": 2, |
180 | | - "react/jsx-quotes": [2, "double"], |
181 | | - "react/jsx-no-undef": 2, |
182 | | - "react/jsx-sort-props": 0, |
183 | | - "react/jsx-sort-prop-types": 0, |
184 | | - "react/jsx-uses-react": 2, |
185 | | - "react/jsx-uses-vars": 2, |
186 | | - "react/no-did-mount-set-state": [2, "allow-in-func"], |
187 | | - "react/no-did-update-set-state": 2, |
188 | | - "react/no-multi-comp": 2, |
189 | | - "react/no-unknown-property": 2, |
190 | | - "react/prop-types": 2, |
191 | | - "react/react-in-jsx-scope": 2, |
192 | | - "react/self-closing-comp": 2, |
193 | | - "react/wrap-multilines": 2, |
194 | | - "react/sort-comp": [2, { |
195 | | - "order": [ |
196 | | - "displayName", |
197 | | - "propTypes", |
198 | | - "contextTypes", |
199 | | - "childContextTypes", |
200 | | - "mixins", |
201 | | - "statics", |
202 | | - "defaultProps", |
203 | | - "getDefaultProps", |
204 | | - "getInitialState", |
205 | | - "getChildContext", |
206 | | - "componentWillMount", |
207 | | - "componentDidMount", |
208 | | - "componentWillReceiveProps", |
209 | | - "shouldComponentUpdate", |
210 | | - "componentWillUpdate", |
211 | | - "componentDidUpdate", |
212 | | - "componentWillUnmount", |
213 | | - "/^on.+$/", |
214 | | - "/^get.+$/", |
215 | | - "/^render.+$/", |
216 | | - "render" |
217 | | - ] |
218 | | - }] |
219 | 171 | } |
220 | 172 | } |
0 commit comments