mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-22 11:05:03 +01:00
Add global to eslint
This commit is contained in:
parent
8f7d94eb75
commit
2263200561
35
.eslintrc.js
35
.eslintrc.js
@ -1,26 +1,27 @@
|
|||||||
module.exports = {
|
module.exports = {
|
||||||
"env": {
|
env: {
|
||||||
"browser": true,
|
browser: true,
|
||||||
"es6": true
|
es6: true,
|
||||||
},
|
},
|
||||||
"extends": "eslint:recommended",
|
extends: "eslint:recommended",
|
||||||
"parserOptions": {
|
parserOptions: {
|
||||||
"ecmaVersion": 2020,
|
ecmaVersion: 2020,
|
||||||
"sourceType": "module"
|
sourceType: "module",
|
||||||
},
|
},
|
||||||
"rules": {
|
rules: {
|
||||||
"no-console": "off",
|
"no-console": "off",
|
||||||
"no-empty": "off",
|
"no-empty": "off",
|
||||||
"no-prototype-builtins": "off",
|
"no-prototype-builtins": "off",
|
||||||
"no-unused-vars": "warn"
|
"no-unused-vars": "warn",
|
||||||
},
|
},
|
||||||
"globals": {
|
globals: {
|
||||||
"DEFINE_VERSION": "readonly",
|
DEFINE_VERSION: "readonly",
|
||||||
"DEFINE_GLOBAL_HASH": "readonly",
|
DEFINE_GLOBAL_HASH: "readonly",
|
||||||
"DEFINE_PROJECT_DIR": "readonly",
|
DEFINE_IS_SDK: "readonly",
|
||||||
|
DEFINE_PROJECT_DIR: "readonly",
|
||||||
// only available in sw.js
|
// only available in sw.js
|
||||||
"DEFINE_UNHASHED_PRECACHED_ASSETS": "readonly",
|
DEFINE_UNHASHED_PRECACHED_ASSETS: "readonly",
|
||||||
"DEFINE_HASHED_PRECACHED_ASSETS": "readonly",
|
DEFINE_HASHED_PRECACHED_ASSETS: "readonly",
|
||||||
"DEFINE_HASHED_CACHED_ON_REQUEST_ASSETS": "readonly"
|
DEFINE_HASHED_CACHED_ON_REQUEST_ASSETS: "readonly",
|
||||||
}
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user