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:
@@ -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"
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
Reference in New Issue
Block a user