updated eslint to work with React
This commit is contained in:
1 parent
55ebddeccc
commit
ae8790bd6c
2 files changed
+11
-2
No files matched your search
+10
-2
@@ -6,7 +6,8 @@ module.exports = {
|
|||||||
"extends": "standard",
|
"extends": "standard",
|
||||||
"plugins": [
|
"plugins": [
|
||||||
"standard",
|
"standard",
|
||||||
"promise"
|
"promise",
|
||||||
|
"react",
|
||||||
],
|
],
|
||||||
"globals": {
|
"globals": {
|
||||||
"angular": true,
|
"angular": true,
|
||||||
@@ -17,6 +18,13 @@ module.exports = {
|
|||||||
"space-before-function-paren": "off",
|
"space-before-function-paren": "off",
|
||||||
"comma-dangle": "off",
|
"comma-dangle": "off",
|
||||||
"no-tabs": "off",
|
"no-tabs": "off",
|
||||||
"indent": ["error", "tab"]
|
"indent": ["error", "tab"],
|
||||||
|
"react/jsx-uses-react": "error",
|
||||||
|
"react/jsx-uses-vars": "error",
|
||||||
|
},
|
||||||
|
"parserOptions": {
|
||||||
|
"ecmaFeatures": {
|
||||||
|
"jsx": true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
@@ -61,6 +61,7 @@
|
|||||||
"eslint": "^3.9.1",
|
"eslint": "^3.9.1",
|
||||||
"eslint-config-standard": "^6.2.1",
|
"eslint-config-standard": "^6.2.1",
|
||||||
"eslint-plugin-promise": "^3.3.1",
|
"eslint-plugin-promise": "^3.3.1",
|
||||||
|
"eslint-plugin-react": "^7.4.0",
|
||||||
"eslint-plugin-standard": "^2.0.1",
|
"eslint-plugin-standard": "^2.0.1",
|
||||||
"gulp": "^3.8.10",
|
"gulp": "^3.8.10",
|
||||||
"gulp-concat": "^2.4.1",
|
"gulp-concat": "^2.4.1",
|
||||||
|
|||||||
Reference in new issue
Block a user