2019-02-10 21:25:29 +01:00
|
|
|
module.exports = {
|
2024-08-16 12:16:00 +02:00
|
|
|
env: {
|
|
|
|
browser: true,
|
|
|
|
es6: true,
|
2019-02-10 21:25:29 +01:00
|
|
|
},
|
2024-08-16 12:16:00 +02:00
|
|
|
extends: "eslint:recommended",
|
|
|
|
parserOptions: {
|
|
|
|
ecmaVersion: 2020,
|
|
|
|
sourceType: "module",
|
2019-02-10 21:25:29 +01:00
|
|
|
},
|
2024-08-16 12:16:00 +02:00
|
|
|
rules: {
|
2021-02-11 21:08:43 +01:00
|
|
|
"no-console": "off",
|
2021-05-20 11:11:57 +02:00
|
|
|
"no-empty": "off",
|
|
|
|
"no-prototype-builtins": "off",
|
2024-08-16 12:16:00 +02:00
|
|
|
"no-unused-vars": "warn",
|
2021-12-01 17:27:13 +01:00
|
|
|
},
|
2024-08-16 12:16:00 +02:00
|
|
|
globals: {
|
|
|
|
DEFINE_VERSION: "readonly",
|
|
|
|
DEFINE_GLOBAL_HASH: "readonly",
|
|
|
|
DEFINE_IS_SDK: "readonly",
|
|
|
|
DEFINE_PROJECT_DIR: "readonly",
|
2021-12-09 16:37:31 +01:00
|
|
|
// only available in sw.js
|
2024-08-16 12:16:00 +02:00
|
|
|
DEFINE_UNHASHED_PRECACHED_ASSETS: "readonly",
|
|
|
|
DEFINE_HASHED_PRECACHED_ASSETS: "readonly",
|
|
|
|
DEFINE_HASHED_CACHED_ON_REQUEST_ASSETS: "readonly",
|
|
|
|
},
|
2020-08-19 11:50:26 +02:00
|
|
|
};
|