X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=web%2Fcore%2F.eslintrc.json;h=e3d505cadfd10132fd9bda514196aeef965b9225;hb=f8fc16ae6b862bef59baaad5d051dd37b7ff11b2;hp=369539d27fce8a90c81bfe33028f5a63fe48d511;hpb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;p=yaffs-website diff --git a/web/core/.eslintrc.json b/web/core/.eslintrc.json index 369539d27..e3d505cad 100644 --- a/web/core/.eslintrc.json +++ b/web/core/.eslintrc.json @@ -1,5 +1,8 @@ { - "extends": "eslint-config-airbnb", + "extends": [ + "airbnb", + "plugin:prettier/recommended" + ], "root": true, "env": { "browser": true, @@ -19,23 +22,24 @@ "CKEDITOR": true }, "rules": { - "consistent-return": [0], - "no-underscore-dangle": [0], - "max-nested-callbacks": [1, 3], - "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" } }] } }