Upgrade eslint to 1.4.1
Paul O’Shannessy committed
Sep 12, 2015 at 17:22 UTC
20f0b0f46430030979696d9c3f82941bdb4470e6
4 files changed
+9
-5
.eslintrc
+5
-1
@@ -19,14 +19,19 @@ rules:
19
dot-notation: 2
20
eol-last: 2
21
indent: [2, 2, {SwitchCase: 1}]
22
+ jsx-quotes: [2, prefer-double]
23
no-bitwise: 0
24
+ no-dupe-class-members: 2
25
no-multi-spaces: 2
26
+ no-restricted-syntax: [2, WithStatement]
27
no-shadow: 2
28
no-unused-expressions: 2
29
no-unused-vars: [2, {args: none}]
30
quotes: [2, single, avoid-escape]
31
space-after-keywords: 2
32
space-before-blocks: 2
33
+ # TODO: enable this rule after https://github.com/eslint/eslint/pull/3768 lands
34
+ space-before-keywords: 0
35
strict: [2, global]
36
37
# JSX
@@ -34,7 +39,6 @@ rules:
39
react/display-name: 0
40
react/jsx-boolean-value: [2, always]
41
react/jsx-no-undef: 2
37
- react/jsx-quotes: [2, double]
42
# We don't care to do this
43
react/jsx-sort-prop-types: 0
44
react/jsx-sort-props: 0
package.json
+2
-2
@@ -12,8 +12,8 @@
12
"del": "^1.2.0",
13
"derequire": "^2.0.0",
14
"envify": "^3.0.0",
15
- "eslint": "^1.1.0",
16
- "eslint-plugin-react": "^3.2.1",
15
+ "eslint": "^1.4.3",
16
+ "eslint-plugin-react": "^3.4.0",
17
"eslint-plugin-react-internal": "file:eslint-rules",
18
"fbjs": "^0.2.0",
19
"fbjs-scripts": "^0.2.0",
src/renderers/dom/client/__tests__/ReactMount-test.js
+1
-1
@@ -25,7 +25,7 @@ describe('ReactMount', function() {
25
if (WebComponents === undefined && typeof jest !== 'undefined') {
26
WebComponents = require('WebComponents');
27
}
28
- } catch(e) {
28
+ } catch (e) {
29
// Parse error expected on engines that don't support setters
30
// or otherwise aren't supportable by the polyfill.
31
// Leave WebComponents undefined.
src/shared/utils/ReactErrorUtils.js
+1
-1
@@ -26,7 +26,7 @@ var ReactErrorUtils = {
26
invokeGuardedCallback: function(name, func, a, b) {
27
try {
28
return func(a, b);
29
- } catch(x) {
29
+ } catch (x) {
30
if (caughtError === null) {
31
caughtError = x;
32
}