mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-12-18 00:30:40 +00:00
Use alphabetic order for eslintrc rules
Change-Id: Ic7afff052c004ba179a8814f79e7722fb66bdbbc
This commit is contained in:
parent
8df385d08f
commit
dfa61af611
|
@ -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"
|
||||||
}
|
}
|
||||||
|
|
|
@ -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,
|
||||||
|
|
|
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue