X-Git-Url: https://yaffs.net/gitweb/?a=blobdiff_plain;f=web%2Fcore%2F.eslintrc.json;h=e3d505cadfd10132fd9bda514196aeef965b9225;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hp=659807751bec43f818ae7ce762fa2dd44548ea4e;hpb=af6d1fb995500ae68849458ee10d66abbdcfb252;p=yaffs-website diff --git a/web/core/.eslintrc.json b/web/core/.eslintrc.json index 659807751..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], - "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" } }] } }