mirror of
https://github.com/StarCitizenTools/mediawiki-skins-Citizen.git
synced 2024-11-11 16:48:54 +00:00
chore(eslint): 🔧 use wikimedia/server for root folder eslint config
This commit is contained in:
parent
0eb9a8a7d1
commit
4762102d61
|
@ -1,31 +1,6 @@
|
|||
{
|
||||
"root": true,
|
||||
"extends": [
|
||||
"wikimedia/client-es6",
|
||||
"wikimedia/mediawiki"
|
||||
],
|
||||
"env": {
|
||||
"browser": true
|
||||
},
|
||||
"globals": {
|
||||
"exports": true
|
||||
},
|
||||
"rules": {
|
||||
"no-implicit-globals": "warn",
|
||||
"es-x/no-async-functions": "warn",
|
||||
"es-x/no-object-fromentries": "warn",
|
||||
"es-x/no-object-entries": "warn",
|
||||
"es-x/no-object-values": "warn",
|
||||
"es-x/no-array-prototype-includes": "warn",
|
||||
"es-x/no-optional-chaining": "warn",
|
||||
"es-x/no-nullish-coalescing-operators": "warn",
|
||||
"es-x/no-rest-spread-properties": "warn",
|
||||
"es-x/no-symbol-prototype-description": "warn",
|
||||
"compat/compat": "warn",
|
||||
"mediawiki/class-doc": "off"
|
||||
},
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 11,
|
||||
"sourceType": "module"
|
||||
}
|
||||
"wikimedia/server"
|
||||
]
|
||||
}
|
||||
|
|
31
resources/.eslintrc.json
Normal file
31
resources/.eslintrc.json
Normal file
|
@ -0,0 +1,31 @@
|
|||
{
|
||||
"root": true,
|
||||
"extends": [
|
||||
"wikimedia/client-es6",
|
||||
"wikimedia/mediawiki"
|
||||
],
|
||||
"env": {
|
||||
"browser": true
|
||||
},
|
||||
"globals": {
|
||||
"exports": true
|
||||
},
|
||||
"rules": {
|
||||
"no-implicit-globals": "warn",
|
||||
"es-x/no-async-functions": "warn",
|
||||
"es-x/no-object-fromentries": "warn",
|
||||
"es-x/no-object-entries": "warn",
|
||||
"es-x/no-object-values": "warn",
|
||||
"es-x/no-array-prototype-includes": "warn",
|
||||
"es-x/no-optional-chaining": "warn",
|
||||
"es-x/no-nullish-coalescing-operators": "warn",
|
||||
"es-x/no-rest-spread-properties": "warn",
|
||||
"es-x/no-symbol-prototype-description": "warn",
|
||||
"compat/compat": "warn",
|
||||
"mediawiki/class-doc": "off"
|
||||
},
|
||||
"parserOptions": {
|
||||
"ecmaVersion": 11,
|
||||
"sourceType": "module"
|
||||
}
|
||||
}
|
Loading…
Reference in a new issue