Add eslint config

This commit is contained in:
Lukas Hirt
2020-11-26 11:22:49 +01:00
parent 22067eb855
commit 90e9a75b07
2 changed files with 21 additions and 5 deletions

17
onlyoffice/.eslintrc.json Normal file
View File

@@ -0,0 +1,17 @@
{
"env": {
"browser": true,
"es6": true,
"amd": true
},
"extends": [
"standard",
"plugin:vue/essential"
],
"parserOptions": {
"sourceType": "module"
},
"rules": {
}
}

View File

@@ -5,14 +5,14 @@ const appInfo = {
extensions: [
{
extension: 'docx',
handler: function({ extensionConfig, filePath, fileId }) {
handler: function ({ extensionConfig, filePath, fileId }) {
window.open(
`${extensionConfig.server}/apps/onlyoffice/${fileId}?filePath=${encodeURIComponent(filePath)}`,
'_blank'
)
},
newFileMenu: {
menuTitle($gettext) {
menuTitle ($gettext) {
return $gettext('New OnlyOffice document')
},
icon: 'x-office-document'
@@ -20,7 +20,7 @@ const appInfo = {
},
{
extension: 'xlsx',
handler: function({ extensionConfig, filePath, fileId }) {
handler: function ({ extensionConfig, filePath, fileId }) {
window.open(
`${extensionConfig.server}/apps/onlyoffice/${fileId}?filePath=${encodeURIComponent(filePath)}`,
'_blank'
@@ -29,7 +29,7 @@ const appInfo = {
},
{
extension: 'pptx',
handler: function({ extensionConfig, filePath, fileId }) {
handler: function ({ extensionConfig, filePath, fileId }) {
window.open(
`${extensionConfig.server}/apps/onlyoffice/${fileId}?filePath=${encodeURIComponent(filePath)}`,
'_blank'
@@ -42,4 +42,3 @@ const appInfo = {
export default {
appInfo
}