Use alphabetic order for eslintrc rules

Change-Id: Ic7afff052c004ba179a8814f79e7722fb66bdbbc
This commit is contained in:
Fomafix 2024-03-24 18:45:54 +00:00
parent 8df385d08f
commit dfa61af611
3 changed files with 9 additions and 9 deletions

View file

@ -12,6 +12,8 @@
"require": "readonly" "require": "readonly"
}, },
"rules": { "rules": {
"jsdoc/no-undefined-types": "off",
"mediawiki/class-doc": "off",
"no-restricted-properties": [ "no-restricted-properties": [
"error", "error",
{ {
@ -31,17 +33,15 @@
"message": "The method `always` if used with Deferred objects is incompatible with ES6 Promises. Please use `then`." "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", "no-underscore-dangle": "off",
"jsdoc/no-undefined-types": "off", "no-var": "off",
"no-var": "off" "object-property-newline": "error",
"unit-disallowed-list": "off"
}, },
"overrides": [ "overrides": [
{ {
"files": [ ".eslintrc.json" ],
"extends": "wikimedia/server", "extends": "wikimedia/server",
"files": [ ".eslintrc.json" ],
"rules": { "rules": {
"compat/compat": "off" "compat/compat": "off"
} }

View file

@ -7,8 +7,8 @@
"ecmaVersion": 2018 "ecmaVersion": 2018
}, },
"rules": { "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": { "env": {
"es6": true, "es6": true,

View file

@ -5,8 +5,8 @@
"wikimedia/qunit" "wikimedia/qunit"
], ],
"rules": { "rules": {
"no-restricted-properties": "off",
"no-jquery/no-parse-html-literal": "off", "no-jquery/no-parse-html-literal": "off",
"no-restricted-properties": "off",
"no-var": "off" "no-var": "off"
} }
} }