Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Add eslintrc.json to project

Marcin Gębala862e55ada7c5
diff --git a/.eslintrc.json b/.eslintrc.json
new file mode 100644
index 0000000000..73c31526af
--- /dev/null
+++ b/.eslintrc.json
@@ -0,0 +1,18 @@
+{
+ "env": {
+ "browser": true
+ },
+ "plugins": [
+ "react"
+ ],
+ "extends": [
+ "eslint:recommended", "plugin:react/recommended"
+ ],
+ "parser": "babel-eslint",
+ "rules": {
+ "quotes": [1, "single"],
+ "strict": [2, "never"],
+ "comma-dangle": ["error", "only-multiline"],
+ "react/jsx-no-bind": ["error"]
+ }
+}
\ No newline at end of file
diff --git a/.gitignore b/.gitignore
index c372e6db78..c2d2d1a7e4 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,6 +8,7 @@
!.nvmrc
!.pylintrc
!.travis*
+!.eslintrc.json
*.css
*.log
*.pot