Updated Drupal to 8.6. This goes with the following updates because it's possible...
[yaffs-website] / web / core / .eslintrc.json
index 659807751bec43f818ae7ce762fa2dd44548ea4e..e3d505cadfd10132fd9bda514196aeef965b9225 100644 (file)
@@ -1,5 +1,8 @@
 {
-  "extends": "eslint-config-airbnb",
+  "extends": [
+    "airbnb",
+    "plugin:prettier/recommended"
+  ],
   "root": true,
   "env": {
     "browser": true,
     "CKEDITOR": true
   },
   "rules": {
-    "consistent-return": [0],
-    "no-underscore-dangle": [0],
-    "max-nested-callbacks": [1, 3],
-    "import/no-mutable-exports": [1],
-    "no-plusplus": [1, {
+    "prettier/prettier": "error",
+    "consistent-return": ["off"],
+    "no-underscore-dangle": ["off"],
+    "max-nested-callbacks": ["warn", 3],
+    "import/no-mutable-exports": ["warn"],
+    "no-plusplus": ["warn", {
       "allowForLoopAfterthoughts": true
     }],
-    "no-param-reassign": [0],
-    "no-prototype-builtins": [0],
-    "valid-jsdoc": [1, {
+    "no-param-reassign": ["off"],
+    "no-prototype-builtins": ["off"],
+    "valid-jsdoc": ["warn", {
       "prefer": {
         "returns": "return",
         "property": "prop"
       },
       "requireReturn": false
     }],
-    "brace-style": ["error", "stroustrup"],
-    "no-unused-vars": [1]
+    "no-unused-vars": ["warn"],
+    "operator-linebreak": ["error", "after", { "overrides": { "?": "ignore", ":": "ignore" } }]
   }
 }