Skip to content

Commit b89d0f4

Browse files
committed
Add babel-eslint parser to eslint
1 parent 9900d1b commit b89d0f4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.eslintrc.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,6 @@
3232
"never"
3333
],
3434
"react/jsx-uses-vars": 2
35-
}
35+
},
36+
"parser": "babel-eslint"
3637
}

src/App.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class App extends React.Component {
2020
}
2121
render() {
2222
let lis = [],
23-
CurrentComponent
23+
CurrentComponent
2424

2525
CurrentComponent = this.components[this.state.currentComponent]
2626

0 commit comments

Comments
 (0)