From dfa61af611246e0017149ab530bb439f7f08a4bc Mon Sep 17 00:00:00 2001 From: Fomafix Date: Sun, 24 Mar 2024 18:45:54 +0000 Subject: [PATCH] Use alphabetic order for eslintrc rules Change-Id: Ic7afff052c004ba179a8814f79e7722fb66bdbbc --- resources/.eslintrc.json | 12 ++++++------ tests/jest/.eslintrc.json | 4 ++-- tests/qunit/.eslintrc.json | 2 +- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/resources/.eslintrc.json b/resources/.eslintrc.json index 26805d995..b100707db 100644 --- a/resources/.eslintrc.json +++ b/resources/.eslintrc.json @@ -12,6 +12,8 @@ "require": "readonly" }, "rules": { + "jsdoc/no-undefined-types": "off", + "mediawiki/class-doc": "off", "no-restricted-properties": [ "error", { @@ -31,17 +33,15 @@ "message": "The method `always` if used with Deferred objects is incompatible with ES6 Promises. Please use `then`." } ], - "unit-disallowed-list": "off", - "object-property-newline": "error", - "mediawiki/class-doc": "off", "no-underscore-dangle": "off", - "jsdoc/no-undefined-types": "off", - "no-var": "off" + "no-var": "off", + "object-property-newline": "error", + "unit-disallowed-list": "off" }, "overrides": [ { - "files": [ ".eslintrc.json" ], "extends": "wikimedia/server", + "files": [ ".eslintrc.json" ], "rules": { "compat/compat": "off" } diff --git a/tests/jest/.eslintrc.json b/tests/jest/.eslintrc.json index dbfdbc799..7eea3244d 100644 --- a/tests/jest/.eslintrc.json +++ b/tests/jest/.eslintrc.json @@ -7,8 +7,8 @@ "ecmaVersion": 2018 }, "rules": { - "es-x/no-rest-spread-properties": "off", - "es-x/no-async-functions": "off" + "es-x/no-async-functions": "off", + "es-x/no-rest-spread-properties": "off" }, "env": { "es6": true, diff --git a/tests/qunit/.eslintrc.json b/tests/qunit/.eslintrc.json index 4ae88ca04..622666632 100644 --- a/tests/qunit/.eslintrc.json +++ b/tests/qunit/.eslintrc.json @@ -5,8 +5,8 @@ "wikimedia/qunit" ], "rules": { - "no-restricted-properties": "off", "no-jquery/no-parse-html-literal": "off", + "no-restricted-properties": "off", "no-var": "off" } }