Skip to content

Commit b81dae9

Browse files
committed
Fixed lint
1 parent 14a7010 commit b81dae9

File tree

5 files changed

+283
-3
lines changed

5 files changed

+283
-3
lines changed

.eslintignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules/*
2+
3+
# Ignore markdown files and examples
4+
content/*
5+
6+
# Ignore built files
7+
public/*

.eslintrc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"extends": [
3+
"fbjs"
4+
],
5+
"plugins": [
6+
"prettier",
7+
"react"
8+
],
9+
"parser": "babel-eslint",
10+
"rules": {
11+
"relay/graphql-naming": 0,
12+
"max-len": 0
13+
},
14+
"env": {
15+
"node": true,
16+
"browser": true
17+
}
18+
}

package.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
"devDependencies": {
2626
"babel-cli": "^6.24.1",
2727
"babel-core": "^6.25.0",
28+
"babel-eslint": "^8.0.1",
2829
"babel-loader": "^7.1.1",
2930
"babel-plugin-flow-react-proptypes": "^3.4.2",
3031
"babel-plugin-transform-react-remove-prop-types": "^0.4.6",
@@ -37,6 +38,13 @@
3738
"babel-runtime": "^6.23.0",
3839
"cross-env": "^5.0.1",
3940
"eslint": "^4.2.0",
41+
"eslint-config-fbjs": "^2.0.0",
42+
"eslint-plugin-babel": "^4.1.2",
43+
"eslint-plugin-flowtype": "^2.39.1",
44+
"eslint-plugin-jsx-a11y": "^6.0.2",
45+
"eslint-plugin-prettier": "^2.3.1",
46+
"eslint-plugin-react": "^7.4.0",
47+
"eslint-plugin-relay": "^0.0.19",
4048
"flow-bin": "^0.57.3",
4149
"prettier": "^1.7.4",
4250
"prop-types": "^15.5.10",

src/ErrorBoundary.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class ErrorBoundary extends Component<Props, State> {
3636
if (typeof onError === 'function') {
3737
try {
3838
onError(error, info ? info.componentStack : '');
39-
} catch (error) {}
39+
} catch (ignoredError) {}
4040
}
4141

4242
this.setState({error, info});

0 commit comments

Comments
 (0)