summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2021-06-29 02:42:39 -0400
committerDaniel Micay <danielmicay@gmail.com>2021-06-29 02:42:39 -0400
commit3ff0ac70970fa1065c1c1d3f770b07b80a7a20c4 (patch)
tree2ab51d5cf906a1e23241f4b3ce0864756c7ec0b7
parentc695733306873d75e8bb7f8d1d4a90fda7dca4aa (diff)
use ECMAScript 2021
-rw-r--r--.eslintrc.json2
-rwxr-xr-xprocess_static2
2 files changed, 2 insertions, 2 deletions
diff --git a/.eslintrc.json b/.eslintrc.json
index 97ac8e54..6010be67 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -5,7 +5,7 @@
},
"extends": "eslint:recommended",
"parserOptions": {
- "ecmaVersion": 12,
+ "ecmaVersion": 2021,
"sourceType": "module"
},
"rules": {
diff --git a/process_static b/process_static
index 1edd56d1..25917aa4 100755
--- a/process_static
+++ b/process_static
@@ -15,7 +15,7 @@ for file in static_tmp/**/*.@(json|webmanifest); do
done
find static_tmp -name '*.css' -exec csso {} -o {} \;
-find static_tmp -name '*.js' -exec terser --module -cmo {} {} \;
+find static_tmp -name '*.js' -exec terser --ecma 2021 --module -cmo {} {} \;
replace=""
for file in static_tmp/**/*.css static_tmp/js/*.js static_tmp/mask-icon.svg; do