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
}
}
};
+1
View File
@@ -61,6 +61,7 @@
"eslint": "^3.9.1",
"eslint-config-standard": "^6.2.1",
"eslint-plugin-promise": "^3.3.1",
"eslint-plugin-react": "^7.4.0",
"eslint-plugin-standard": "^2.0.1",
"gulp": "^3.8.10",
"gulp-concat": "^2.4.1",