summaryrefslogtreecommitdiff
path: root/.eslintrc.json
diff options
context:
space:
mode:
authorDarius Jahandarie <djahandarie@gmail.com>2023-11-04 18:45:57 +0900
committerDarius Jahandarie <djahandarie@gmail.com>2023-11-04 18:45:57 +0900
commitef79eab44bfd000792c610b968b5ceefd41e76a0 (patch)
tree48b04f30f6248caedbd880801aa49402a9e8066a /.eslintrc.json
parent376151096431d4362e4baaacf0cef4a534e169f7 (diff)
Modernize codebase
- Use ES modules - Remove vendored libs and build them from npm using esbuild - Switch from JSZip to zip.js
Diffstat (limited to '.eslintrc.json')
-rw-r--r--.eslintrc.json33
1 files changed, 12 insertions, 21 deletions
diff --git a/.eslintrc.json b/.eslintrc.json
index a7fb842b..99c2383a 100644
--- a/.eslintrc.json
+++ b/.eslintrc.json
@@ -6,7 +6,7 @@
],
"parserOptions": {
"ecmaVersion": 11,
- "sourceType": "script",
+ "sourceType": "module",
"ecmaFeatures": {
"globalReturn": false,
"impliedStrict": true
@@ -50,6 +50,7 @@
"no-case-declarations": "error",
"no-const-assign": "error",
"no-constant-condition": "off",
+ "no-console": "warn",
"no-global-assign": "error",
"no-param-reassign": "off",
"no-prototype-builtins": "error",
@@ -250,6 +251,7 @@
"jsdoc/multiline-blocks": "error",
"jsdoc/no-bad-blocks": "error",
"jsdoc/no-multi-asterisks": "error",
+ "jsdoc/no-undefined-types": 1,
"jsdoc/require-asterisk-prefix": "error",
"jsdoc/require-hyphen-before-param-description": [
"error",
@@ -384,26 +386,7 @@
"ext/js/accessibility/google-docs.js",
"ext/js/**/sandbox/**/*.js"
],
- "globals": {
- "serializeError": "readonly",
- "deserializeError": "readonly",
- "isObject": "readonly",
- "stringReverse": "readonly",
- "promiseTimeout": "readonly",
- "escapeRegExp": "readonly",
- "deferPromise": "readonly",
- "clone": "readonly",
- "deepEqual": "readonly",
- "generateId": "readonly",
- "promiseAnimationFrame": "readonly",
- "invokeMessageHandler": "readonly",
- "log": "readonly",
- "DynamicProperty": "readonly",
- "EventDispatcher": "readonly",
- "EventListenerCollection": "readonly",
- "Logger": "readonly",
- "import": "readonly"
- }
+ "globals": {}
},
{
"files": [
@@ -448,6 +431,14 @@
},
{
"files": [
+ "ext/js/language/dictionary-worker-main.js"
+ ],
+ "parserOptions": {
+ "sourceType": "module"
+ }
+ },
+ {
+ "files": [
"playwright.config.js"
],
"env": {