aboutsummaryrefslogtreecommitdiffstats
path: root/workflow-designer-ui/src/main/frontend/.eslintrc.json
diff options
context:
space:
mode:
authorMalek <malek.zoabi@amdocs.com>2018-08-28 09:19:25 +0300
committerMalek <malek.zoabi@amdocs.com>2018-08-28 09:19:31 +0300
commitf09952f74e5288f1b1cac14f4eceff09d1edf6da (patch)
tree9f5e29848ebc8ebaebe54413637fb3f22ce1b244 /workflow-designer-ui/src/main/frontend/.eslintrc.json
parenta69951b9f9319f8e25d63384b2dbee851df24694 (diff)
Upgrade Eslint & Prettier
Issue-ID: SDC-1679 Change-Id: I1204fa01a6da038946c38fa215c5bc3e7ffda804 Signed-off-by: Malek <malek.zoabi@amdocs.com>
Diffstat (limited to 'workflow-designer-ui/src/main/frontend/.eslintrc.json')
-rw-r--r--workflow-designer-ui/src/main/frontend/.eslintrc.json48
1 files changed, 48 insertions, 0 deletions
diff --git a/workflow-designer-ui/src/main/frontend/.eslintrc.json b/workflow-designer-ui/src/main/frontend/.eslintrc.json
new file mode 100644
index 00000000..0ce8aa4c
--- /dev/null
+++ b/workflow-designer-ui/src/main/frontend/.eslintrc.json
@@ -0,0 +1,48 @@
+{
+ "root": true,
+
+ "parser": "babel-eslint",
+
+ "extends": [
+ "eslint:recommended",
+ "plugin:react/recommended",
+ "plugin:jest/recommended",
+ "prettier"
+ ],
+
+ "plugins": ["prettier", "react"],
+
+ "env": {
+ "browser": true,
+ "commonjs": true,
+ "es6": true,
+ "jest": true,
+ "node": true
+ },
+
+ "parserOptions": {
+ "ecmaVersion": 6,
+ "sourceType": "module",
+ "ecmaFeatures": {
+ "jsx": true,
+ "generators": true,
+ "experimentalObjectRestSpread": true
+ }
+ },
+
+ "rules": {
+ "no-console": 0,
+ "prettier/prettier": [
+ "error",
+ {
+ "singleQuote": true,
+ "jsxBracketSameLine": true,
+ "tabWidth": 4
+ }
+ ]
+ },
+
+ "globals": {
+ "DEBUG": false
+ }
+}