mirror of
https://github.com/miniflux/v2.git
synced 2025-08-01 17:38:37 +00:00
feat: bump linter and minifier from ECMAScript 2017 to 2020 (ES11)
This commit is contained in:
parent
91f9a7650e
commit
c9c422b135
3 changed files with 7 additions and 8 deletions
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"env": {
|
||||
"browser": true,
|
||||
"es2017": true
|
||||
"es2020": true
|
||||
},
|
||||
"rules": {
|
||||
"indent": ["error", 4]
|
||||
|
|
|
@ -1,16 +1,15 @@
|
|||
{
|
||||
"esversion": 11,
|
||||
"bitwise": true,
|
||||
"browser": true,
|
||||
"eqeqeq": true,
|
||||
"esversion": 11,
|
||||
"freeze": true,
|
||||
"nonew": true,
|
||||
"latedef": "nofunc",
|
||||
"noarg": true,
|
||||
"nocomma": true,
|
||||
"nonbsp": true,
|
||||
"nonew": true,
|
||||
"browser": true,
|
||||
"noreturnawait": true,
|
||||
"shadow": true,
|
||||
"varstmt": true,
|
||||
"noreturnawait": true
|
||||
}
|
||||
"varstmt": true
|
||||
}
|
|
@ -139,7 +139,7 @@ func GenerateJavascriptBundles() error {
|
|||
JavascriptBundles = make(map[string][]byte)
|
||||
JavascriptBundleChecksums = make(map[string]string)
|
||||
|
||||
jsMinifier := js.Minifier{Version: 2017}
|
||||
jsMinifier := js.Minifier{Version: 2020}
|
||||
|
||||
minifier := minify.New()
|
||||
minifier.AddFunc("text/javascript", jsMinifier.Minify)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue