updated eslint to work with React

This commit is contained in:
Roman Timashev committed 2017-10-14 11:27:20 +03:00
1 parent 55ebddeccc
commit ae8790bd6c
2 files changed
+11 -2

No files matched your search

+10 -2
View File
@@ -6,7 +6,8 @@ module.exports = {
"extends": "standard",
"plugins": [
"standard",
"promise"
"promise",
"react",
],
"globals": {
"angular": true,
@@ -17,6 +18,13 @@ module.exports = {
"space-before-function-paren": "off",
"comma-dangle": "off",
"no-tabs": "off",
"indent": ["error", "tab"]
"indent": ["error", "tab"],
"react/jsx-uses-react": "error",
"react/jsx-uses-vars": "error",
},
"parserOptions": {
"ecmaFeatures": {
"jsx": true
}
}
};