update JS code style to currently recommended conventions

ES5 support is still present to not introduce breaking changes (dropped
IE10 support) in minor updates.
This commit is contained in:
2019-08-28 11:10:39 +02:00
parent 2906d435d9
commit 0cab1a3580
3 changed files with 25 additions and 7 deletions

View File

@@ -1,3 +1,23 @@
{
"extends": "eslint-config-wordpress"
"env": {
"es6": false,
"browser": true
},
"globals": {
"sclivetickerAjax": "readonly"
},
"extends": [
"plugin:@wordpress/eslint-plugin/recommended",
"plugin:@wordpress/eslint-plugin/es5"
],
"overrides": [
{
"files": [
"*"
],
"rules": {
"no-var": "off"
}
}
]
}