eslint: comma-dangle for language files

This commit is contained in:
LouisLam 2021-09-13 00:58:45 +08:00
parent 8205f90f3d
commit 7df9698e5d
19 changed files with 28 additions and 19 deletions

View file

@ -82,4 +82,12 @@ module.exports = {
"one-var": ["error", "never"],
"max-statements-per-line": ["error", { "max": 1 }]
},
"overrides": [
{
"files": [ "src/languages/*.js" ],
"rules": {
"comma-dangle": ["error", "always-multiline"],
}
}
]
}

View file

@ -143,5 +143,5 @@ export default {
Inactive: "Inactive",
Token: "Token",
"Show URI": "Show URI",
"Clear all statistics": "Clear all Statistics"
"Clear all statistics": "Clear all Statistics",
}

View file

@ -114,8 +114,8 @@ export default {
"Repeat Password": "Wiederhole das Passwort",
"Resource Record Type": "Resource Record Type",
"Import/Export Backup": "Import/Export Backup",
"Export": "Export",
"Import": "Import",
Export: "Export",
Import: "Import",
respTime: "Antw. Zeit (ms)",
notAvailableShort: "N/A",
"Default enabled": "Standardmäßig aktiviert",
@ -142,5 +142,5 @@ export default {
Inactive: "Inaktiv",
Token: "Token",
"Show URI": "URI Anzeigen",
"Clear all statistics": "Lösche alle Statistiken"
"Clear all statistics": "Lösche alle Statistiken",
}

View file

@ -142,5 +142,5 @@ export default {
Inactive: "Inactive",
Token: "Token",
"Show URI": "Show URI",
"Clear all statistics": "Clear all Statistics"
"Clear all statistics": "Clear all Statistics",
}

View file

@ -143,5 +143,5 @@ export default {
Inactive: "Inactive",
Token: "Token",
"Show URI": "Show URI",
"Clear all statistics": "Clear all Statistics"
"Clear all statistics": "Clear all Statistics",
}

View file

@ -143,5 +143,5 @@ export default {
Inactive: "Inactive",
Token: "Token",
"Show URI": "Show URI",
"Clear all statistics": "Clear all Statistics"
"Clear all statistics": "Clear all Statistics",
}

View file

@ -143,5 +143,5 @@ export default {
Inactive: "Inactive",
Token: "Token",
"Show URI": "Show URI",
"Clear all statistics": "Clear all Statistics"
"Clear all statistics": "Clear all Statistics",
}

View file

@ -143,5 +143,5 @@ export default {
Inactive: "Inactive",
Token: "Token",
"Show URI": "Show URI",
"Clear all statistics": "Clear all Statistics"
"Clear all statistics": "Clear all Statistics",
}

View file

@ -143,5 +143,5 @@ export default {
Inactive: "Inactive",
Token: "Token",
"Show URI": "Show URI",
"Clear all statistics": "Clear all Statistics"
"Clear all statistics": "Clear all Statistics",
}

View file

@ -143,5 +143,5 @@ export default {
Inactive: "Inactive",
Token: "Token",
"Show URI": "Show URI",
"Clear all statistics": "Clear all Statistics"
"Clear all statistics": "Clear all Statistics",
}

View file

@ -143,5 +143,5 @@ export default {
Inactive: "Inactive",
Token: "Token",
"Show URI": "Show URI",
"Clear all statistics": "Clear all Statistics"
"Clear all statistics": "Clear all Statistics",
}

View file

@ -143,5 +143,5 @@ export default {
Inactive: "Inactive",
Token: "Token",
"Show URI": "Show URI",
"Clear all statistics": "Clear all Statistics"
"Clear all statistics": "Clear all Statistics",
}

View file

@ -143,5 +143,5 @@ export default {
Inactive: "Inactive",
Token: "Token",
"Show URI": "Show URI",
"Clear all statistics": "Clear all Statistics"
"Clear all statistics": "Clear all Statistics",
}

View file

@ -143,5 +143,5 @@ export default {
Inactive: "Inactive",
Token: "Token",
"Show URI": "Show URI",
"Clear all statistics": "Clear all Statistics"
"Clear all statistics": "Clear all Statistics",
}

View file

@ -143,5 +143,5 @@ export default {
Inactive: "Inactive",
Token: "Token",
"Show URI": "Show URI",
"Clear all statistics": "Clear all Statistics"
"Clear all statistics": "Clear all Statistics",
}

View file

@ -143,5 +143,5 @@ export default {
Inactive: "Inactive",
Token: "Token",
"Show URI": "Show URI",
"Clear all statistics": "Clear all Statistics"
"Clear all statistics": "Clear all Statistics",
}

View file

@ -142,5 +142,5 @@ export default {
Inactive: "Inactive",
Token: "Token",
"Show URI": "Show URI",
"Clear all statistics": "Clear all Statistics"
"Clear all statistics": "Clear all Statistics",
}

View file

@ -142,5 +142,5 @@ export default {
Inactive: "未生效",
Token: "Token",
"Show URI": "顯示 URI",
"Clear all statistics": "清除所有歷史記錄"
"Clear all statistics": "清除所有歷史記錄",
}

View file

@ -219,6 +219,7 @@ export default {
dnsresolvetypeOptions: [],
// Source: https://digitalfortress.tech/tips/top-15-commonly-used-regex/
// eslint-disable-next-line
ipRegexPattern: "((^\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\s*$)|(^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(%.+)?\s*$))",
}
},