aboutsummaryrefslogtreecommitdiffstats
path: root/workflow-designer-ui/src/main/frontend/.eslintrc.json
diff options
context:
space:
mode:
authorOren Kleks <orenkle@amdocs.com>2018-08-28 06:31:24 +0000
committerGerrit Code Review <gerrit@onap.org>2018-08-28 06:31:24 +0000
commit7b771d212127f74a6bd5f6d1a85c39a0b71416d3 (patch)
tree6a9935d73dbd7d2f8cf577e67d65dae80ed5170a /workflow-designer-ui/src/main/frontend/.eslintrc.json
parenta569d865b2ce198c6331f1a97ccace3e752b225f (diff)
parentf09952f74e5288f1b1cac14f4eceff09d1edf6da (diff)
Merge "Upgrade Eslint & Prettier"
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
+ }
+}